GerritCodeReview / plugins_supermanifest
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 144 units with 2,192 lines of code in units (77.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (117 lines of code)
    • 3 medium complex units (203 lines of code)
    • 8 simple units (231 lines of code)
    • 132 very simple units (1,641 lines of code)
0% | 5% | 9% | 10% | 74%
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% | 5% | 9% | 10% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
java/com/googlesource/gerrit/plugins/supermanifest0% | 12% | 20% | 23% | 43%
javatests/com/googlesource/gerrit/plugins/supermanifest0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void updateSubmodules()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriUpdater.java
117 27 5
public static JiriProjects getProjects()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriManifestParser.java
88 16 4
static URI relativize()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriUpdater.java
49 15 2
public ConfigEntry()
in java/com/googlesource/gerrit/plugins/supermanifest/ConfigEntry.java
66 15 2
private Set parseConfiguration()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
37 9 2
private List findRelevantConfigs()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
23 9 2
public ObjectId sha1()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
29 8 2
public void onGitReferenceUpdated()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
31 7 1
private void updateForConfig()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
36 7 2
public Response apply()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
38 6 2
public boolean equals()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriProjects.java
19 6 1
private URI getLocalURI()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriUpdater.java
18 6 1
public boolean equals()
in java/com/googlesource/gerrit/plugins/supermanifest/ConfigEntry.java
7 5 1
private void updateConfiguration()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
14 4 0
public RemoteFile readFileWithMode()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
18 4 3
public Repository openByUri()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
20 4 1
public String toSubmodules()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriProjects.java
17 4 0
public String toString()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriManifest.java
13 4 0
private String configurationToString()
in java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
13 3 0
public String toString()
in java/com/googlesource/gerrit/plugins/supermanifest/JiriProjects.java
10 3 0