aws-quickstart / quickstart-ct-newrelic-one
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 23 units with 687 lines of code in units (31.3% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (398 lines of code)
    • 7 medium size units (194 lines of code)
    • 3 small units (43 lines of code)
    • 7 very small units (52 lines of code)
0% | 57% | 28% | 6% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 57% | 28% | 6% | 7%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/register0% | 63% | 26% | 4% | 5%
functions/source/onboarding0% | 95% | 0% | 0% | 4%
functions/source/cfct_register0% | 42% | 30% | 16% | 10%
functions/source/stackset0% | 37% | 52% | 0% | 9%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def newrelic_registration()
in functions/source/cfct_register/cfct_register.py
83 7 4
def newrelic_registration()
in functions/source/register/register.py
83 7 4
def create()
in functions/source/onboarding/onboarding.py
64 8 2
def stackset_check()
in functions/source/register/register.py
58 14 1
def delete()
in functions/source/onboarding/onboarding.py
56 10 2
def stackset_processing()
in functions/source/stackset/stackset.py
54 11 1
def newrelic_get_integration()
in functions/source/cfct_register/cfct_register.py
32 3 2
def newrelic_get_integration()
in functions/source/register/register.py
32 3 2
def lifecycle_processing()
in functions/source/stackset/stackset.py
27 7 1
def newrelic_get_schema()
in functions/source/cfct_register/cfct_register.py
27 5 1
def newrelic_get_schema()
in functions/source/register/register.py
27 5 1
def list_stack_instance_region()
in functions/source/stackset/stackset.py
26 6 2
def list_stack_instance_by_account()
in functions/source/stackset/stackset.py
23 5 3
def create()
in functions/source/cfct_register/cfct_register.py
20 4 2
def get_secret_value()
in functions/source/cfct_register/cfct_register.py
12 3 1
def get_secret_value()
in functions/source/register/register.py
11 3 1
def send_to_dlq()
in functions/source/cfct_register/cfct_register.py
10 2 1
def lambda_handler()
in functions/source/cfct_register/cfct_register.py
10 4 2
def lambda_handler()
in functions/source/stackset/stackset.py
9 5 2
def lambda_handler()
in functions/source/register/register.py
7 3 2