android / cose-lib
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 30 units with 243 lines of code in units (45.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (37 lines of code)
    • 29 very simple units (206 lines of code)
0% | 0% | 0% | 15% | 84%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
java0% | 0% | 0% | 15% | 84%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cose0% | 0% | 0% | 15% | 84%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
37 9 7
public static CoseEncrypt decode()
in java/cose/CoseEncrypt.java
22 3 1
public static DataItem cborToDataItem()
in java/cose/CborUtil.java
12 3 1
public static int asNumber()
in java/cose/CborUtil.java
9 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 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 static CoseEllipticCurveKey decode()
in java/cose/CoseEllipticCurveKey.java
12 2 1
public static CosePartyInfo decode()
in java/cose/CosePartyInfo.java
15 2 1
public static CoseKey decode()
in java/cose/CoseKey.java
16 2 1
public CoseKdfContext()
in java/cose/CoseKdfContext.java
6 1 4
public int getAlg()
in java/cose/CoseKdfContext.java
3 1 0
public CoseEncrypt()
in java/cose/CoseEncrypt.java
7 1 4
public Map getUnprotectedHeaders()
in java/cose/CoseEncrypt.java
3 1 0
public ImmutableList getRecipients()
in java/cose/CoseEncrypt.java
3 1 0
public CoseRecipient()
in java/cose/CoseRecipient.java
5 1 3
public static CoseRecipient decode()
in java/cose/CoseRecipient.java
4 1 1
public Map getUnprotectedHeaders()
in java/cose/CoseRecipient.java
3 1 0