awslabs / amazon-kinesis-client-python
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 105 units with 357 lines of code in units (66.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 5 small units (70 lines of code)
    • 100 very small units (287 lines of code)
0% | 0% | 0% | 19% | 80%
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% | 0% | 19% | 80%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 0% | 59% | 40%
amazon_kclpy0% | 0% | 0% | 5% | 94%
amazon_kclpy/v30% | 0% | 0% | 0% | 100%
amazon_kclpy/v20% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
17 6 1
def run()
in setup.py
16 1 1
13 2 3
12 1 4
def message_decode()
in amazon_kclpy/dispatch.py
12 3 1
def format_dependency()
in scripts/build_deps.py
10 2 1
def checkpoint()
in amazon_kclpy/kcl.py
9 4 3
def __init__()
in amazon_kclpy/kcl.py
9 3 5
def _perform_action()
in amazon_kclpy/kcl.py
9 4 2
8 3 1
def __init__()
in amazon_kclpy/messages.py
8 1 2
def build_deps()
in scripts/build_deps.py
8 2 0
def run()
in setup.py
7 1 1
6 2 1
def run()
in amazon_kclpy/kcl.py
6 3 1
def __init__()
in setup.py
5 1 4
def __init__()
in amazon_kclpy/messages.py
5 1 2
def __init__()
in amazon_kclpy/messages.py
5 1 2
def __init__()
in amazon_kclpy/kcl.py
4 1 4
def _get_action()
in amazon_kclpy/kcl.py
4 1 1