aws-samples / multi-environment-chatops-bot-for-controltower
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 24 units with 494 lines of code in units (24.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (42 lines of code)
    • 2 simple units (81 lines of code)
    • 21 very simple units (371 lines of code)
0% | 0% | 8% | 16% | 75%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
java0% | 0% | 8% | 16% | 74%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/main/java/software/aws/chatops_lex_api/resource0% | 0% | 10% | 20% | 68%
chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/main/java/software/aws/chatops_lex_api0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public AccountVendor()
in src/main/java/software/aws/chatops_lex_api/resource/AccountVendor.java
42 11 0
public Response vend()
in src/main/java/software/aws/chatops_lex_api/resource/AccountVendor.java
43 9 1
public static String sendGet()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
38 6 2
private static String post()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
34 5 3
public static void getUserInfoSlack()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
22 5 4
public static String processResponse()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
36 5 3
public static void putItemDynamo()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
19 4 1
public static Map getItemDynamo()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
24 4 1
public static void vendAccount()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
51 4 1
public Object handleRequest()
in chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot/App.java
23 4 2
public static String postLex()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
29 3 3
public Response confirm()
in src/main/java/software/aws/chatops_lex_api/resource/AccountVendor.java
18 3 1
public static List getEmails()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
10 2 1
public static final void configure()
in src/main/java/software/aws/chatops_lex_api/resource/LoggingConfigurator.java
16 2 0
def day_to_hour()
in locust-script.py
9 2 1
public void handleRequest()
in src/main/java/software/aws/chatops_lex_api/StreamLambdaHandler.java
4 1 3
public static String postSlack()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
6 1 3
private LoggingConfigurator()
in src/main/java/software/aws/chatops_lex_api/resource/LoggingConfigurator.java
1 1 0
static
in src/main/java/software/aws/chatops_lex_api/resource/AccountVendor.java
3 1 0
private DependencyFactory()
in chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot/DependencyFactory.java
1 1 0