aws-quickstart / quickstart-grid-connect-connectsense
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 13 units with 120 lines of code in units (22.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (28 lines of code)
    • 4 small units (58 lines of code)
    • 8 very small units (34 lines of code)
0% | 0% | 23% | 48% | 28%
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% | 23% | 48% | 28%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/api0% | 0% | 25% | 52% | 22%
functions/source/alerts0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
def run()
in functions/source/api/manifest.py
28 7 1
def _invoke_import_manifest()
in functions/source/api/api.py
16 3 3
def __init__()
in functions/source/api/manifest.py
15 1 3
def upload_manifest()
in functions/source/api/api.py
14 2 2
def _make_thing()
in functions/source/api/api.py
13 1 2
def process_alerts()
in functions/source/alerts/alerts.py
9 1 2
def __next__()
in functions/source/api/manifest.py
6 2 1
def _import_certificate()
in functions/source/api/api.py
5 1 2
def load_verify_cert_by_file()
in functions/source/api/api.py
4 1 1
def __init__()
in functions/source/api/manifest.py
4 1 2
def __iter__()
in functions/source/api/manifest.py
2 1 1
def get_identifier()
in functions/source/api/manifest.py
2 1 1
def get_certificate_chain()
in functions/source/api/manifest.py
2 1 1