GerritCodeReview / plugins_find-owners
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 181 units with 1,956 lines of code in units (66.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (128 lines of code)
    • 19 simple units (492 lines of code)
    • 159 very simple units (1,336 lines of code)
0% | 0% | 6% | 25% | 68%
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% | 5% | 25% | 68%
js0% | 0% | 8% | 23% | 68%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
java/com/googlesource/gerrit/plugins/findowners0% | 0% | 5% | 26% | 67%
resources/static0% | 0% | 8% | 23% | 68%
java/find_owners0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void parseLine()
in src/main/java/com/googlesource/gerrit/plugins/findowners/Parser.java
45 14 4
function createGroups()
in src/main/resources/static/find-owners.js
47 12 0
void checkEmails()
in src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java
36 11 1
function setupReviewersMap()
in src/main/resources/static/find-owners.js
21 10 1
void checkIncludeOrFile()
in src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java
52 10 4
public static String getRepoFile()
in src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersDb.java
38 10 9
void checkLine()
in src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java
20 9 4
void addPreferredEmails()
in src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersDb.java
43 9 1
Map getVotes()
in src/main/java/com/googlesource/gerrit/plugins/findowners/Checker.java
18 8 1
void append()
in src/main/java/com/googlesource/gerrit/plugins/findowners/Parser.java
17 8 3
function checkAddRemoveLists()
in src/main/resources/static/find-owners.js
30 7 0
function prepareElements()
in src/main/resources/static/find-owners.js
15 7 0
function onShowChangePolyGerrit()
in src/main/resources/static/find-owners.js
29 7 2
static String gitRepoFilePath()
in src/main/java/com/googlesource/gerrit/plugins/findowners/Util.java
18 7 1
boolean findOwnersInVotes()
in src/main/java/com/googlesource/gerrit/plugins/findowners/Checker.java
20 7 2
public Description getDescription()
in src/main/java/com/googlesource/gerrit/plugins/findowners/Action.java
26 7 1
private static void visitChangedEntries()
in src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java
25 7 3
void addFile()
in src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersDb.java
33 7 6
function onSubmit()
in src/main/resources/static/find-owners.js
28 6 2
function onClick()
in src/main/resources/static/find-owners.js
11 6 1