awslabs / aws-glue-blueprint-libs
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 31 units with 345 lines of code in units (89.6% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (77 lines of code)
    • 2 medium size units (77 lines of code)
    • 4 small units (53 lines of code)
    • 24 very small units (138 lines of code)
0% | 22% | 22% | 15% | 40%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 22% | 22% | 15% | 40%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
blueprint0% | 22% | 22% | 15% | 40%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _extract_triggers()
in awsglue/blueprint/workflow.py
77 14 6
def __init__()
in awsglue/blueprint/job.py
46 1 2
def __init__()
in awsglue/blueprint/crawler.py
31 1 2
def to_json()
in awsglue/blueprint/workflow.py
16 5 4
def __init__()
in awsglue/blueprint/workflow.py
15 1 2
def validate()
in awsglue/blueprint/workflow.py
11 5 1
def __init__()
in awsglue/blueprint/crawler.py
11 1 2
def __setattr__()
in awsglue/blueprint/job.py
10 7 3
def to_json()
in awsglue/blueprint/workflow.py
9 5 2
def __init__()
in awsglue/blueprint/job.py
9 1 2
def __init__()
in awsglue/blueprint/crawler.py
9 1 2
def validate()
in awsglue/blueprint/crawler.py
9 9 1
def validate()
in awsglue/blueprint/workflow.py
8 6 1
def __setattr__()
in awsglue/blueprint/crawler.py
8 7 3
def __setattr__()
in awsglue/blueprint/crawler.py
8 5 3
def __init__()
in awsglue/blueprint/crawler.py
7 1 2
def __init__()
in awsglue/blueprint/crawler.py
7 1 2
def __init__()
in awsglue/blueprint/crawler.py
7 1 2
def __setattr__()
in awsglue/blueprint/job.py
6 5 3
def __init__()
in awsglue/blueprint/job.py
5 1 2