aws-samples / eks-bootstrap-scripts
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 41 units with 435 lines of code in units (23.1% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (119 lines of code)
    • 5 medium size units (129 lines of code)
    • 5 small units (73 lines of code)
    • 29 very small units (114 lines of code)
0% | 27% | 29% | 16% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 27% | 29% | 16% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
02_bootstrap-scripts-python/bootstrap0% | 27% | 29% | 16% | 26%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def addHelmValues()
in 02_bootstrap-scripts-python/bootstrap/macros.py
67 16 3
def main()
in 02_bootstrap-scripts-python/bootstrap/bootstrap.py
52 13 0
def init_argparse()
in 02_bootstrap-scripts-python/bootstrap/bootstrap.py
30 1 0
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
27 6 1
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
26 6 1
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
23 9 1
def add_context_from_string()
in 02_bootstrap-scripts-python/bootstrap/context.py
23 8 2
def stringToNestedObject()
in 02_bootstrap-scripts-python/bootstrap/context.py
18 7 4
def run()
in 02_bootstrap-scripts-python/bootstrap/helm.py
16 6 2
def __init__()
in 02_bootstrap-scripts-python/bootstrap/context.py
16 3 3
def get_helm_image()
in 02_bootstrap-scripts-python/bootstrap/helm.py
12 1 3
def evaluate_mapping()
in 02_bootstrap-scripts-python/bootstrap/context.py
11 3 2
def pullHelmChart()
in 02_bootstrap-scripts-python/bootstrap/helm.py
10 1 2
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
10 2 1
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
10 2 1
def __init__()
in 02_bootstrap-scripts-python/bootstrap/helm.py
8 1 6
def generate_values_file()
in 02_bootstrap-scripts-python/bootstrap/helm.py
6 1 2
def GetContent()
in 02_bootstrap-scripts-python/bootstrap/context.py
6 2 2
def GetValues()
in 02_bootstrap-scripts-python/bootstrap/context.py
6 1 1
def print_values_yaml()
in 02_bootstrap-scripts-python/bootstrap/bootstrap.py
5 2 1