aws-samples / keycloak-on-aws
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 176 lines of code in units (52.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (100 lines of code)
    • 0 medium size units (0 lines of code)
    • 2 small units (31 lines of code)
    • 12 very small units (45 lines of code)
0% | 56% | 0% | 17% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 76% | 0% | 10% | 12%
py0% | 0% | 0% | 37% | 62%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source/src0% | 76% | 0% | 10% | 12%
deployment0% | 0% | 0% | 37% | 62%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
constructor()
in source/src/stack.ts
100 5 3
def main()
in deployment/helper.py
17 6 0
private _setParamGroups()
in source/src/stack.ts
14 3 0
def get_file_assets()
in deployment/helper.py
8 2 1
protected addGroupParam()
in source/src/stack.ts
7 2 1
function mkstack()
in source/src/main.ts
7 1 2
def c()
in deployment/helper.py
4 2 2
function newSynthesizer()
in source/src/main.ts
3 2 0
def zip()
in deployment/helper.py
3 1 2
def cp()
in deployment/helper.py
3 1 2
def red()
in deployment/helper.py
2 1 1
def green()
in deployment/helper.py
2 1 1
def yellow()
in deployment/helper.py
2 1 1
def blue()
in deployment/helper.py
2 1 1
def sh()
in deployment/helper.py
2 1 1