aws-quickstart / quickstart-aws-fintech-blueprint
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 32 units with 1,064 lines of code in units (25.5% of code).
    • 2 very long units (239 lines of code)
    • 5 long units (407 lines of code)
    • 6 medium size units (215 lines of code)
    • 9 small units (134 lines of code)
    • 10 very small units (69 lines of code)
22% | 38% | 20% | 12% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts30% | 52% | 12% | 1% | 2%
py0% | 0% | 54% | 34% | 11%
js0% | 0% | 0% | 64% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib30% | 52% | 12% | 1% | 2%
scripts0% | 0% | 40% | 41% | 17%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
constructor()
in lib/aws-service-catalog.ts
132 6 3
constructor()
in lib/aws-vpn.ts
107 1 3
constructor()
in lib/aws-config-packs.ts
100 3 3
constructor()
in lib/aws-vpcs.ts
99 1 3
constructor()
in lib/aws-region-restriction.ts
74 1 3
constructor()
in lib/aws-servicecontrolpolicy.ts
74 1 3
private createBoundaryRemediationAutomationDoc()
in lib/aws-region-restriction.ts
60 3 0
def create_endpoint()
in scripts/enableorgscp-customlambdaresource.py
47 2 2
constructor()
in lib/aws-startup-blueprint-stack.ts
44 3 3
def createCert()
in scripts/vpn-endpoint-security-resource-handler.py
42 2 2
constructor()
in lib/aws-service-catalog.ts
32 5 3
constructor()
in lib/aws-servicecontrolpolicy.ts
25 1 3
def send()
in scripts/cfnresponse.py
25 4 7
def deleteCert()
in scripts/vpn-endpoint-security-resource-handler.py
19 3 3
function evaluateChangeNotificationCompliance()
in scripts/config-enforcepermissionboundary.js
18 5 2
def create_scp()
in scripts/applyscp-customlambda-resource.py
16 1 2
function getConfigurationItem()
in scripts/config-enforcepermissionboundary.js
16 3 2
constructor()
in lib/aws-config-packs.ts
15 3 3
def runCommandSet()
in scripts/vpn-endpoint-security-resource-handler.py
14 2 2
function convertApiConfiguration()
in scripts/config-enforcepermissionboundary.js
13 3 1