android / cose-lib
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 30 units with 243 lines of code in units (45.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (59 lines of code)
    • 6 small units (89 lines of code)
    • 22 very small units (95 lines of code)
0% | 0% | 24% | 36% | 39%
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% | 24% | 36% | 39%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cose0% | 0% | 24% | 36% | 39%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
37 9 7
public static CoseEncrypt decode()
in java/cose/CoseEncrypt.java
22 3 1
public static CoseKdfContext decode()
in java/cose/CoseKdfContext.java
17 2 1
public static CoseRecipient decode()
in java/cose/CoseRecipient.java
17 2 1
public static CoseKey decode()
in java/cose/CoseKey.java
16 2 1
public static CosePartyInfo decode()
in java/cose/CosePartyInfo.java
15 2 1
public static DataItem cborToDataItem()
in java/cose/CborUtil.java
12 3 1
public static CoseEllipticCurveKey decode()
in java/cose/CoseEllipticCurveKey.java
12 2 1
public static int asNumber()
in java/cose/CborUtil.java
9 3 1
public CoseEncrypt()
in java/cose/CoseEncrypt.java
7 1 4
public static Map asMap()
in java/cose/CborUtil.java
7 2 1
public static Array asArray()
in java/cose/CborUtil.java
7 2 1
public static ByteString asByteString()
in java/cose/CborUtil.java
7 2 1
public CoseKey()
in java/cose/CoseKey.java
7 1 5
public CoseKdfContext()
in java/cose/CoseKdfContext.java
6 1 4
public CoseRecipient()
in java/cose/CoseRecipient.java
5 1 3
public CosePartyInfo()
in java/cose/CosePartyInfo.java
5 1 3
public static CoseRecipient decode()
in java/cose/CoseRecipient.java
4 1 1
public CoseEllipticCurveKey()
in java/cose/CoseEllipticCurveKey.java
4 1 2
public int getAlg()
in java/cose/CoseKdfContext.java
3 1 0