aws-samples / aws-games-sa-kr
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 11 units with 153 lines of code in units (49.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (28 lines of code)
    • 7 small units (105 lines of code)
    • 3 very small units (20 lines of code)
0% | 0% | 18% | 68% | 13%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 18% | 68% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
optimize-serverless-application-on-aws/module3/src0% | 0% | 36% | 63% | 0%
optimize-serverless-application-on-aws/module2/src0% | 0% | 0% | 100% | 0%
optimize-serverless-application-on-aws/module4/src0% | 0% | 0% | 60% | 40%
optimize-serverless-application-on-aws0% | 0% | 0% | 100% | 0%
optimize-serverless-application-on-aws/module1/src0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
def get_secret()
in contributor/anhyobin/optimize-serverless-application-on-aws/module3/src/module3_lambda.py
28 6 0
def lambda_handler()
in contributor/anhyobin/optimize-serverless-application-on-aws/module3/src/module3_lambda.py
17 1 2
def lambda_handler()
in contributor/anhyobin/optimize-serverless-application-on-aws/module3/src/module3_lambda_function.py
16 1 2
def lambda_handler()
in contributor/anhyobin/optimize-serverless-application-on-aws/module2/src/module2_lambda.py
15 1 2
def lambda_handler()
in contributor/anhyobin/optimize-serverless-application-on-aws/module2/src/lambda_function.py
15 1 2
def get_secret()
in contributor/anhyobin/optimize-serverless-application-on-aws/module4/src/lambda_function.py
15 2 0
def get_secret()
in contributor/anhyobin/optimize-serverless-application-on-aws/module3/src/module3_lambda_function.py
15 2 0
def longestPalindrome()
in contributor/anhyobin/optimize-serverless-application-on-aws/test.py
12 6 2
def lambda_handler()
in contributor/anhyobin/optimize-serverless-application-on-aws/module1/src/lambda_function.py
10 1 2
def lambda_handler()
in contributor/anhyobin/optimize-serverless-application-on-aws/module4/src/lambda_function.py
8 1 2
def hello_world()
in contributor/anhyobin/optimize-serverless-application-on-aws/module4/src/locustfile.py
2 1 1