aws-quickstart / quickstart-eks-rafay-systems
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 9 units with 98 lines of code in units (22.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (63 lines of code)
    • 0 small units (0 lines of code)
    • 7 very small units (35 lines of code)
0% | 0% | 64% | 0% | 35%
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% | 64% | 0% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/aws_qs_create_org0% | 0% | 61% | 0% | 38%
functions/source/aws_qs_create_cluster0% | 0% | 68% | 0% | 31%
Alternative Visuals
Longest Units
Top 9 longest units
Unit# linesMcCabe index# params
def create_rafay_org()
in functions/source/aws_qs_create_org/aws_qs_create_org.py
35 3 4
def create_rafay_cluster()
in functions/source/aws_qs_create_cluster/aws_qs_create_cluster.py
28 5 6
def assert_request()
in functions/source/aws_qs_create_org/aws_qs_create_org.py
9 3 2
def create()
in functions/source/aws_qs_create_org/aws_qs_create_org.py
8 1 2
def create()
in functions/source/aws_qs_create_cluster/aws_qs_create_cluster.py
8 1 2
def generate_password()
in functions/source/aws_qs_create_org/aws_qs_create_org.py
3 2 0
def delete()
in functions/source/aws_qs_create_cluster/aws_qs_create_cluster.py
3 1 2
def lambda_handler()
in functions/source/aws_qs_create_org/aws_qs_create_org.py
2 1 2
def lambda_handler()
in functions/source/aws_qs_create_cluster/aws_qs_create_cluster.py
2 1 2