aws-quickstart / quickstart-databricks-unified-data-analytics-platform
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 157 lines of code in units (3.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (123 lines of code)
    • 1 small units (20 lines of code)
    • 3 very small units (14 lines of code)
0% | 0% | 78% | 12% | 8%
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% | 78% | 12% | 8%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source0% | 0% | 78% | 12% | 8%
Alternative Visuals
Longest Units
Top 9 longest units
Unit# linesMcCabe index# params
def handler()
in functions/source/update_custommanagedvpc_iam_role.py
27 4 2
def handler()
in functions/source/utilities.py
26 7 2
def send()
in functions/source/cfnresponse.py
25 3 6
def put_role_policy_sg()
in functions/source/update_custommanagedvpc_iam_role.py
23 7 5
def update_key_policy()
in functions/source/update_custommanaged_cmk_policy.py
22 2 3
def handler()
in functions/source/update_custommanaged_cmk_policy.py
20 7 2
def get_key_policy()
in functions/source/update_custommanaged_cmk_policy.py
8 1 1
def timeout()
in functions/source/update_custommanagedvpc_iam_role.py
3 1 2
def timeout()
in functions/source/update_custommanaged_cmk_policy.py
3 1 2