awslabs / aws-icons-for-plantuml
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 15 units with 373 lines of code in units (13.5% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (106 lines of code)
    • 4 medium size units (172 lines of code)
    • 5 small units (74 lines of code)
    • 4 very small units (21 lines of code)
0% | 28% | 46% | 19% | 5%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 28% | 46% | 19% | 5%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts0% | 28% | 49% | 15% | 6%
scripts/awsicons0% | 28% | 42% | 24% | 4%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
def create_config_template()
in scripts/icon-builder.py
54 15 0
def generate_image()
in scripts/awsicons/icon.py
52 7 5
def _set_values()
in scripts/awsicons/icon.py
49 11 3
def main()
in scripts/icon-builder.py
47 15 0
def verify_environment()
in scripts/icon-builder.py
46 14 0
def generate_puml()
in scripts/awsicons/icon.py
30 3 2
def worker()
in scripts/icon-builder.py
16 2 1
def _make_name()
in scripts/awsicons/icon.py
15 4 4
def _make_category()
in scripts/awsicons/icon.py
15 4 4
def _color_name()
in scripts/awsicons/icon.py
15 4 2
def create_category_all_file()
in scripts/icon-builder.py
13 5 1
def __init__()
in scripts/awsicons/icon.py
8 1 0
def clean_dist()
in scripts/icon-builder.py
5 2 0
def build_file_list()
in scripts/icon-builder.py
5 1 2
def copy_puml()
in scripts/icon-builder.py
3 2 0