aws-samples / aws-cloudformation-parameter-table-generator
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 11 units with 125 lines of code in units (22.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (51 lines of code)
    • 3 small units (48 lines of code)
    • 6 very small units (26 lines of code)
0% | 0% | 40% | 38% | 20%
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% | 40% | 38% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source0% | 0% | 40% | 38% | 20%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
def htmlData()
in functions/source/table-generator-lambda.py
29 4 2
def buildGroupedParameters()
in functions/source/table-generator-lambda.py
22 6 6
def buildGroupedTable()
in functions/source/table-generator-lambda.py
19 4 2
def getTemplateText()
in functions/source/table-generator-lambda.py
18 4 1
def buildTable()
in functions/source/table-generator-lambda.py
11 3 2
def lambda_handler()
in functions/source/table-generator-lambda.py
8 1 2
def hasInterface()
in functions/source/table-generator-lambda.py
5 4 1
def checkRequiredParam()
in functions/source/table-generator-lambda.py
4 2 2
def checkEmptyDescription()
in functions/source/table-generator-lambda.py
4 2 2
def buildSimpleTable()
in functions/source/table-generator-lambda.py
3 1 1
def hasParameters()
in functions/source/table-generator-lambda.py
2 2 1