aws-samples / cdk-amazon-mwaa-cicd
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 19 units with 347 lines of code in units (26.0% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (136 lines of code)
    • 1 medium size units (46 lines of code)
    • 8 small units (112 lines of code)
    • 8 very small units (53 lines of code)
0% | 39% | 13% | 32% | 15%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 39% | 13% | 32% | 15%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
mwaairflow/assets/plugins/operators0% | 67% | 0% | 27% | 4%
mwaairflow0% | 0% | 100% | 0% | 0%
mwaairflow/nested_stacks0% | 0% | 0% | 54% | 45%
mwaairflow/project/src0% | 0% | 0% | 62% | 37%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
def execute()
in mwaairflow/assets/plugins/operators/azure_blob_list_to_s3.py
76 5 2
def execute()
in mwaairflow/assets/plugins/operators/salesforce_to_s3_operator.py
60 10 2
def __init__()
in mwaairflow/mwaairflow_stack.py
46 8 4
def main()
in mwaairflow/project/src/__main__.py
18 1 2
def __init__()
in mwaairflow/assets/plugins/operators/salesforce_to_s3_operator.py
17 1 0
def __init__()
in mwaairflow/assets/plugins/operators/azure_blob_list_to_s3.py
14 1 0
def __init__()
in mwaairflow/nested_stacks/environment.py
14 1 0
def get_subnet_ids()
in mwaairflow/nested_stacks/environment.py
13 4 3
def execute()
in mwaairflow/assets/plugins/operators/salesforce_to_s3_operator.py
12 2 2
def special_query()
in mwaairflow/assets/plugins/operators/salesforce_to_s3_operator.py
12 5 4
def zip_directory()
in mwaairflow/nested_stacks/provisioning.py
12 2 1
def __init__()
in mwaairflow/assets/plugins/operators/salesforce_to_s3_operator.py
10 1 0
def __init__()
in mwaairflow/nested_stacks/provisioning.py
9 1 0
def _zip_dir()
in mwaairflow/nested_stacks/environment.py
8 3 3
def hello()
in mwaairflow/project/src/example.py
7 2 1
def __init__()
in mwaairflow/nested_stacks/project.py
7 1 0
def zip_directory()
in mwaairflow/nested_stacks/project.py
6 2 1
def version_callback()
in mwaairflow/project/src/__main__.py
4 2 1
def __init__()
in mwaairflow/nested_stacks/vpc.py
2 1 0