GerritCodeReview / plugins_task
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 154 units with 1,212 lines of code in units (67.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (68 lines of code)
    • 7 simple units (150 lines of code)
    • 145 very simple units (994 lines of code)
0% | 0% | 5% | 12% | 82%
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% | 6% | 9% | 83%
js0% | 0% | 0% | 29% | 70%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/main/java/com/googlesource/gerrit/plugins/task0% | 0% | 7% | 8% | 83%
gr-task-plugin0% | 0% | 0% | 29% | 70%
src/main/java/com/google/gerrit/common0% | 0% | 0% | 42% | 57%
src/main/java/com/googlesource/gerrit/plugins/task/cli0% | 0% | 0% | 0% | 100%
src/main/java/com/google/gerrit/server/git/meta0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public Optional create()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskAttributeFactory.java
43 21 0
protected Status getStatusWithExceptions()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskAttributeFactory.java
25 12 0
protected void copyDeclaredFields()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskConfig.java
28 10 2
protected void addSubTasksFactoryDefinitions()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskTree.java
20 7 0
public boolean equals()
in src/main/java/com/google/gerrit/common/Container.java
19 7 1
_getTasks()
in gr-task-plugin/gr-task-plugin.js
19 6 0
_computeIcon()
in gr-task-plugin/gr-task-plugin.js
31 6 1
protected static void preloadFrom()
in src/main/java/com/googlesource/gerrit/plugins/task/Preloader.java
14 6 2
protected void expandFieldValues()
in src/main/java/com/googlesource/gerrit/plugins/task/Properties.java
19 6 2
public Map createPluginDefinedInfos()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskAttributeFactory.java
12 5 3
protected PluginDefinedInfo createWithExceptions()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskAttributeFactory.java
18 5 1
protected static void preloadField()
in src/main/java/com/googlesource/gerrit/plugins/task/Preloader.java
19 5 4
protected void addChangesTypeTaskDefinitions()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskTree.java
22 5 2
public Task getTaskOptional()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskConfig.java
20 5 1
_isFailOrReadyOrInvalid()
in gr-task-plugin/gr-task-plugin.js
9 4 1
protected List getSubTasks()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskAttributeFactory.java
14 4 0
public TaskConfig getTaskConfig()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskConfigFactory.java
22 4 3
public PatchSetArgument createForArgument()
in src/main/java/com/googlesource/gerrit/plugins/task/cli/PatchSetArgument.java
14 4 1
protected void addSubDefinition()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskTree.java
7 4 2
protected void addSubTaskDefinitions()
in src/main/java/com/googlesource/gerrit/plugins/task/TaskTree.java
12 4 0