aws-samples / aws-audit-manager-custom-frameworks
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 18 units with 424 lines of code in units (27.9% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (258 lines of code)
    • 2 medium size units (74 lines of code)
    • 3 small units (42 lines of code)
    • 9 very small units (50 lines of code)
0% | 60% | 17% | 9% | 11%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 60% | 17% | 9% | 11%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 60% | 17% | 9% | 11%
Alternative Visuals
Longest Units
Top 18 longest units
Unit# linesMcCabe index# params
def deploy_to_all_regions()
in customFramework.py
71 23 1
def create_custom_controls()
in createCustomStandard.py
70 22 3
60 1 0
def open_input()
in utils.py
57 14 1
def create_generate_yaml_automated_controls()
in createYamlAutomatedFramework.py
39 9 4
def create_yaml_controls()
in generateYAMLFramework.py
35 1 3
def list_controls()
in createCustomStandard.py
17 5 2
14 2 1
def main()
in customFramework.py
11 3 0
9 3 1
8 5 2
7 2 1
def create_custom_framework()
in createCustomStandard.py
6 1 0
def open_yaml()
in utils.py
5 1 1
def open_json()
in utils.py
5 1 1
def merge_multiple_framework()
in mergeMultiFramework.py
4 1 0
def create_automated_custom_framework()
in createAutomaticFramework.py
4 1 0
def main()
in cli.py
2 1 0