awslabs / aws-crypto-policy-compliance-checker
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 10 units with 143 lines of code in units (48.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (61 lines of code)
    • 4 small units (65 lines of code)
    • 4 very small units (17 lines of code)
0% | 0% | 42% | 45% | 11%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 42% | 45% | 11%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cryptopolicy0% | 0% | 42% | 45% | 11%
Alternative Visuals
Longest Units
Top 10 longest units
Unit# linesMcCabe index# params
public void commonAssignmentCheck()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceVisitor.java
40 11 3
private boolean shouldSuppressWarnings()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceVisitor.java
21 6 2
private List matchCiphersFromAnnotation()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceVisitor.java
19 4 3
public boolean isSubtype()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceAnnotatedTypeFactory.java
17 9 2
private boolean hasSuppresssCryptoAnnotation()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceVisitor.java
16 3 2
private List getLowerCasedStringValAnnotations()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceVisitor.java
13 2 1
private boolean compareCryptoListTypes()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceAnnotatedTypeFactory.java
7 1 2
public CryptoPolicyComplianceAnnotatedTypeFactory()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceAnnotatedTypeFactory.java
4 1 1
public MultiGraphQualifierHierarchy createQualifierHierarchy()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceAnnotatedTypeFactory.java
3 1 1
public CryptoPolicyComplianceVisitor()
in src/main/java/com/amazon/checkerframework/cryptopolicy/CryptoPolicyComplianceVisitor.java
3 1 1