aws / aws-ops-wheel
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 55 units with 784 lines of code in units (20.9% of code).
    • 1 very long units (160 lines of code)
    • 2 long units (128 lines of code)
    • 5 medium size units (151 lines of code)
    • 12 small units (169 lines of code)
    • 35 very small units (176 lines of code)
20% | 16% | 19% | 21% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py20% | 16% | 19% | 21% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT61% | 0% | 29% | 4% | 5%
utils0% | 44% | 16% | 7% | 31%
api0% | 15% | 13% | 40% | 30%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def main()
in _compile_cloudformation_template.py
160 1 0
def main()
in utils/wheel_feeder.py
72 8 0
def mock_dynamodb()
in api/conftest.py
56 1 0
def __exit__()
in _compile_cloudformation_template.py
47 14 4
def make_api_path_config()
in _compile_cloudformation_template.py
29 4 2
def __call__()
in api/base.py
27 9 2
def _upload_participant()
in utils/wheel_feeder.py
27 3 3
def select_participant()
in api/choice_algorithm.py
21 6 2
def on_participant_deletion()
in api/choice_algorithm.py
19 6 2
def create_participant()
in api/wheel_participant.py
18 5 1
16 6 1
def create_wheel()
in api/wheel.py
16 3 1
def to_response()
in api/base.py
15 5 1
def update_participant()
in api/wheel_participant.py
15 7 1
def _initalize_tokens()
in utils/wheel_feeder.py
13 2 1
def suggest_participant()
in api/choice_algorithm.py
12 6 1
def find_refs()
in _compile_cloudformation_template.py
12 5 1
def wrap_participant_creation()
in api/choice_algorithm.py
11 2 2
def suggest_participant()
in api/wheel_participant.py
11 5 1
def update_wheel()
in api/wheel.py
11 3 1