aws / git-remote-codecommit
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 7 units with 79 lines of code in units (56.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (43 lines of code)
    • 1 small units (12 lines of code)
    • 5 very small units (24 lines of code)
0% | 0% | 54% | 15% | 30%
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% | 54% | 15% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
git_remote_codecommit0% | 0% | 55% | 15% | 28%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 7 longest units
Unit# linesMcCabe index# params
def from_url()
in git_remote_codecommit/__init__.py
43 14 1
def main()
in git_remote_codecommit/__init__.py
12 4 0
def sign()
in git_remote_codecommit/__init__.py
8 1 4
def git_url()
in git_remote_codecommit/__init__.py
7 2 4
def website_domain_mapping()
in git_remote_codecommit/__init__.py
4 2 1
def error()
in git_remote_codecommit/__init__.py
3 1 1
def read()
in setup.py
2 1 1