GerritCodeReview / plugins_healthcheck
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 71 units with 581 lines of code in units (51.6% 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 (40 lines of code)
    • 70 very simple units (541 lines of code)
0% | 0% | 0% | 6% | 93%
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% | 6% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
healthcheck/check0% | 0% | 0% | 9% | 90%
healthcheck0% | 0% | 0% | 0% | 100%
healthcheck/filter0% | 0% | 0% | 0% | 100%
healthcheck/api0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public StatusSummary run()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/AbstractHealthCheck.java
40 6 0
public boolean equals()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
10 5 1
public void doFilter()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java
14 4 3
protected Result doCheck()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/ProjectsListHealthCheck.java
19 4 0
static Collection getConfig()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
27 4 1
private static Optional getSpec()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
16 4 1
void collect()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsSubCheck.java
9 4 1
private void doStatusCheck()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java
16 3 1
protected Result doCheck()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/AuthHealthCheck.java
15 3 0
protected Result doCheck()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/QueryChangesHealthCheck.java
21 3 0
public boolean healthCheckEnabled()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckConfig.java
7 3 1
void collect()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsCheck.java
6 2 1
void check()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsCheck.java
3 2 0
protected Result doCheck()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/JGitHealthCheck.java
8 2 0
private static CollectorProvider collectorProvider()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
6 2 2
private static Collection deduplicateGlobal()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
8 2 1
private static Collection deduplicatePrefixes()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
11 2 1
private static Optional isThresholdDefined()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsConfigurator.java
7 2 1
protected Result doCheck()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/DeadlockCheck.java
8 2 0
void check()
in src/main/java/com/googlesource/gerrit/plugins/healthcheck/check/BlockedThreadsSubCheck.java
6 2 0