awslabs / amazon-emr-on-eks-custom-image-cli
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 71 units with 411 lines of code in units (30.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (50 lines of code)
    • 7 small units (103 lines of code)
    • 62 very small units (258 lines of code)
0% | 0% | 12% | 25% | 62%
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% | 12% | 25% | 62%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
custom_image_cli/validation_tool/validation_tests0% | 0% | 22% | 24% | 52%
custom_image_cli/commands0% | 0% | 47% | 0% | 52%
custom_image_cli/helper0% | 0% | 0% | 64% | 35%
custom_image_cli/validation_tool0% | 0% | 0% | 78% | 21%
custom_image_cli/validation_tool/validation_models0% | 0% | 0% | 0% | 100%
custom_image_cli/helper/docker_util0% | 0% | 0% | 0% | 100%
custom_image_cli/cli0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def check()
in custom_image_cli/validation_tool/validation_tests/check_manifest.py
27 4 1
def initiate()
in custom_image_cli/commands/validate_image.py
23 5 4
def __init__()
in custom_image_cli/helper/logging.py
17 1 1
def match()
in custom_image_cli/validation_tool/validation_tests/check_files.py
16 6 4
def parse_validate_image()
in custom_image_cli/helper/argument_parser.py
15 1 1
def validate_all()
in custom_image_cli/validation_tool/validation_helper.py
15 2 7
def load_validation_info()
in custom_image_cli/validation_tool/validation_helper.py
15 5 4
def check()
in custom_image_cli/validation_tool/validation_tests/check_local_job_run.py
13 2 1
def parse_commandline_arguments()
in custom_image_cli/helper/argument_parser.py
12 2 1
def run()
in custom_image_cli/commands/validate_image.py
10 1 1
def check()
in custom_image_cli/validation_tool/validation_tests/check_files.py
10 5 1
def match()
in custom_image_cli/validation_tool/validation_tests/check_envs.py
10 6 2
def run()
in custom_image_cli/cli/cli.py
8 2 0
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
8 2 3
def print_validate_completion_message()
in custom_image_cli/helper/print_message.py
7 2 1
def __init__()
in custom_image_cli/commands/validate_image.py
7 1 1
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
7 2 3
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
7 2 3
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
7 2 3
def from_yaml()
in custom_image_cli/validation_tool/validation_models/validation_models.py
7 2 3