aws-samples / amazon-kinesis-data-processor-aws-fargate
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 22 units with 138 lines of code in units (46.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (21 lines of code)
    • 4 small units (56 lines of code)
    • 17 very small units (61 lines of code)
0% | 0% | 15% | 40% | 44%
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% | 15% | 40% | 44%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
consumer0% | 0% | 15% | 40% | 44%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def checkpoint()
in consumer/record_processor.py
21 8 4
def run()
in consumer/setup.py
16 1 1
def process_records()
in consumer/record_processor.py
15 5 2
def download_file()
in consumer/setup.py
13 2 3
def package_url()
in consumer/setup.py
12 1 4
def download_files()
in consumer/setup.py
8 3 1
def run()
in consumer/setup.py
7 1 1
def __init__()
in consumer/record_processor.py
7 1 1
def download_and_check()
in consumer/setup.py
6 2 1
def __init__()
in consumer/setup.py
4 1 4
def missing_jars()
in consumer/setup.py
3 4 1
def initialize()
in consumer/record_processor.py
3 1 2
def should_update_sequence()
in consumer/record_processor.py
3 4 3
def shard_ended()
in consumer/record_processor.py
3 1 2
def shutdown_requested()
in consumer/record_processor.py
3 1 2
def warning_string()
in consumer/setup.py
2 1 2
def package_destination()
in consumer/setup.py
2 1 3
def initialize_options()
in consumer/setup.py
2 1 1
def finalize_options()
in consumer/setup.py
2 1 1
def do_install()
in consumer/setup.py
2 1 1