GerritCodeReview / plugins_delete-project
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 84 units with 793 lines of code in units (57.2% 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)
    • 2 simple units (57 lines of code)
    • 82 very simple units (736 lines of code)
0% | 0% | 0% | 7% | 92%
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% | 8% | 91%
ts0% | 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/deleteproject0% | 0% | 0% | 12% | 87%
src/main/java/com/googlesource/gerrit/plugins/deleteproject/fs0% | 0% | 0% | 0% | 100%
web0% | 0% | 0% | 0% | 100%
src/main/java/com/googlesource/gerrit/plugins/deleteproject/database0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void onDelete()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeleteLog.java
34 6 4
public void doDelete()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeleteProject.java
23 6 2
private void assertIsNotSubmodule()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeletePreconditions.java
19 5 1
public void atomicDelete()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/database/DatabaseDeleteHandler.java
22 5 2
public void run()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeleteCommand.java
32 5 0
private void audit()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeleteLog.java
26 4 5
public void apply()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/HideProject.java
19 4 1
protected boolean canDelete()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeletePreconditions.java
9 4 1
void assertCanBeDeleted()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeletePreconditions.java
12 4 2
public void assertHasOpenChanges()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeletePreconditions.java
15 4 2
private List listOverdueFiles()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/fs/ArchiveRepositoryRemover.java
18 4 1
private void sendProjectDeletedEvent()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/fs/FilesystemDeleteHandler.java
23 4 1
override render()
in web/gr-delete-repo.ts
47 3 0
private deleteRepo()
in web/gr-delete-repo.ts
32 3 0
private void req()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeleteLogLayout.java
14 3 3
private void createProjectIfMissing()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/HideProject.java
10 3 1
private void assertHasNoChildProjects()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeletePreconditions.java
14 3 1
private void assertDeleteWithTags()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeletePreconditions.java
6 3 2
private void assertHasNoTags()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/DeletePreconditions.java
11 3 1
private void cleanUpOverdueRepositories()
in src/main/java/com/googlesource/gerrit/plugins/deleteproject/fs/ArchiveRepositoryRemover.java
10 3 0