aws-quickstart / quickstart-eks-cdk-python
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 8 units with 1,853 lines of code in units (20.1% of code).
    • 2 very long units (1,739 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (81 lines of code)
    • 1 small units (19 lines of code)
    • 2 very small units (14 lines of code)
93% | 0% | 4% | 1% | <1%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py93% | 0% | 4% | 1% | <1%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cluster-bootstrap95% | 0% | 3% | 1% | <1%
demo-apps/ghost-cdk100% | 0% | 0% | 0% | 0%
cluster-codebuild0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 8 longest units
Unit# linesMcCabe index# params
def __init__()
in cluster-bootstrap/eks_cluster.py
1578 45 4
def __init__()
in demo-apps/ghost-cdk/ghost_example.py
161 12 4
def __init__()
in cluster-codebuild/eks_codebuild.py
31 3 4
def __init__()
in cluster-bootstrap/amp_custom_resource.py
26 1 3
def __init__()
in cluster-bootstrap/ekslogs_custom_resource.py
24 1 6
def get_on_create_update()
in cluster-bootstrap/ekslogs_custom_resource.py
19 1 2
def create()
in cluster-bootstrap/amp_custom_resource.py
7 1 1
def delete()
in cluster-bootstrap/amp_custom_resource.py
7 1 1