aws-samples / aws-refarch-shibboleth
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 16 units with 213 lines of code in units (9.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (119 lines of code)
    • 4 small units (58 lines of code)
    • 8 very small units (36 lines of code)
0% | 0% | 55% | 27% | 16%
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% | 63% | 27% | 8%
java0% | 0% | 48% | 26% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/rotate_sealer_key_secret0% | 0% | 63% | 27% | 8%
src0% | 0% | 48% | 26% | 24%
Alternative Visuals
Longest Units
Top 16 longest units
Unit# linesMcCabe index# params
def finish_secret()
in functions/source/rotate_sealer_key_secret/lambda_function.py
37 11 3
public void doInitialize()
in src/AWSSecretsManagerKeyStrategy.java
31 6 0
def lambda_handler()
in functions/source/rotate_sealer_key_secret/lambda_function.py
29 9 2
private void updateDefaultKey()
in src/AWSSecretsManagerKeyStrategy.java
22 4 0
private GetSecretValueResult getSecretValueResult()
in src/AWSSecretsManagerKeyStrategy.java
18 5 1
def create_secret()
in functions/source/rotate_sealer_key_secret/lambda_function.py
18 4 3
protected void doDestroy()
in src/AWSSecretsManagerKeyStrategy.java
11 3 0
def sort_by_tag()
in functions/source/rotate_sealer_key_secret/lambda_function.py
11 7 1
private SecretKey getSecretKeyFromGetSecretValueResult()
in src/AWSSecretsManagerKeyStrategy.java
10 4 1
public void setUpdateInterval()
in src/AWSSecretsManagerKeyStrategy.java
6 1 1
def test_secret()
in functions/source/rotate_sealer_key_secret/lambda_function.py
6 2 3
public void setSecretId()
in src/AWSSecretsManagerKeyStrategy.java
4 1 1
public void setUpdateTaskTimer()
in src/AWSSecretsManagerKeyStrategy.java
4 1 1
private AWSSecretsManager getClient()
in src/AWSSecretsManagerKeyStrategy.java
3 1 0
def reversed_enumerate()
in functions/source/rotate_sealer_key_secret/lambda_function.py
2 1 2
def set_secret()
in functions/source/rotate_sealer_key_secret/lambda_function.py
1 1 3