aws-samples / multi-environment-chatops-bot-for-controltower
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 24 units with 494 lines of code in units (24.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (51 lines of code)
    • 10 medium size units (338 lines of code)
    • 4 small units (64 lines of code)
    • 9 very small units (41 lines of code)
0% | 10% | 68% | 12% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 10% | 69% | 13% | 6%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/main/java/software/aws/chatops_lex_api/resource0% | 13% | 68% | 13% | 5%
chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot0% | 0% | 78% | 12% | 8%
ROOT0% | 0% | 0% | 0% | 100%
src/main/java/software/aws/chatops_lex_api0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static void vendAccount()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
51 4 1
private void createLexBot()
in chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot/App.java
47 1 0
public Response vend()
in src/main/java/software/aws/chatops_lex_api/resource/AccountVendor.java
43 9 1
public AccountVendor()
in src/main/java/software/aws/chatops_lex_api/resource/AccountVendor.java
42 11 0
public static String sendGet()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
38 6 2
public static String processResponse()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
36 5 3
private static String post()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
34 5 3
public static String postLex()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
29 3 3
public static Map getItemDynamo()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
24 4 1
public Object handleRequest()
in chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot/App.java
23 4 2
public static void getUserInfoSlack()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
22 5 4
public static void putItemDynamo()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
19 4 1
public Response confirm()
in src/main/java/software/aws/chatops_lex_api/resource/AccountVendor.java
18 3 1
public static final void configure()
in src/main/java/software/aws/chatops_lex_api/resource/LoggingConfigurator.java
16 2 0
public void deleteLexBot()
in chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot/App.java
11 1 0
public static List getEmails()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
10 2 1
def day_to_hour()
in locust-script.py
9 2 1
public static String postSlack()
in src/main/java/software/aws/chatops_lex_api/resource/Util.java
6 1 3
public void handleRequest()
in src/main/java/software/aws/chatops_lex_api/StreamLambdaHandler.java
4 1 3
public static LexModelBuildingClient lexBuilderClient()
in chatops-lex-bot/src/main/java/software/aws/chatops_lex_bot/DependencyFactory.java
4 1 0