awslabs / aws-greengrass-labs-database-influxdb
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 12 units with 144 lines of code in units (47.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (97 lines of code)
    • 1 small units (12 lines of code)
    • 7 very small units (35 lines of code)
0% | 0% | 67% | 8% | 24%
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% | 67% | 8% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 67% | 8% | 24%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
def listen_to_token_requests()
in src/influxDBTokenPublisher.py
30 4 2
def get_secret_over_ipc()
in src/retrieveInfluxDBSecrets.py
23 5 1
def publish_response()
in src/influxDBTokenStreamHandler.py
22 4 1
def retrieve_influxDB_token()
in src/influxDBTokenPublisher.py
22 8 1
def parse_arguments()
in src/influxDBTokenPublisher.py
12 1 0
def handle_stream_event()
in src/influxDBTokenStreamHandler.py
10 3 2
def retrieve_secret()
in src/retrieveInfluxDBSecrets.py
8 2 1
def __init__()
in src/influxDBTokenStreamHandler.py
6 2 3
def parse_arguments()
in src/retrieveInfluxDBSecrets.py
4 1 0
def on_stream_error()
in src/influxDBTokenStreamHandler.py
3 1 2
def on_stream_event()
in src/influxDBTokenStreamHandler.py
2 1 2
def on_stream_closed()
in src/influxDBTokenStreamHandler.py
2 1 1