bazelbuild / eclipse
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 184 units with 1,561 lines of code in units (55.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (104 lines of code)
    • 6 simple units (148 lines of code)
    • 176 very simple units (1,309 lines of code)
0% | 0% | 6% | 9% | 83%
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% | 7% | 10% | 82%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
java/com/google/devtools/bazel/e4b/projectviews0% | 0% | 38% | 0% | 61%
java/com/google/devtools/bazel/e4b/command0% | 0% | 10% | 6% | 83%
java/com/google/devtools/bazel/e4b0% | 0% | 0% | 23% | 76%
java/com/google/devtools/bazel/e4b/wizard0% | 0% | 0% | 15% | 84%
java/com/google/devtools/bazel/e4b/classpath0% | 0% | 0% | 24% | 75%
tools/build_defs0% | 0% | 0% | 0% | 100%
javatests/com/google/devtools/bazel/e4b/integration0% | 0% | 0% | 0% | 100%
javatests/com/google/devtools/bazel/e4b/command0% | 0% | 0% | 0% | 100%
java/com/google/devtools/bazel/e4b/preferences0% | 0% | 0% | 0% | 100%
javatests/com/google/devtools/bazel/e4b/projectviews0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public List complete()
in java/com/google/devtools/bazel/e4b/command/BazelCommand.java
51 22 1
private void parseLine()
in java/com/google/devtools/bazel/e4b/projectviews/Builder.java
53 19 4
public void checkVersion()
in java/com/google/devtools/bazel/e4b/command/BazelCommand.java
31 10 1
private boolean isSourcePath()
in java/com/google/devtools/bazel/e4b/classpath/BazelClasspathContainer.java
20 10 1
private static void setGrayed()
in java/com/google/devtools/bazel/e4b/wizard/DirectoryTreeContentProvider.java
22 9 2
public static ProjectView getProjectView()
in java/com/google/devtools/bazel/e4b/BazelProjectSupport.java
32 9 1
static ImmutableList getSelectPathsRelativeToRoot()
in java/com/google/devtools/bazel/e4b/wizard/DirectoryTreeContentProvider.java
21 7 1
private static IProject createBaseProject()
in java/com/google/devtools/bazel/e4b/BazelProjectSupport.java
22 6 2
def generate_metadata()
in tools/build_defs/site_builder.py
23 5 1
public void testCommandWithStream()
in javatests/com/google/devtools/bazel/e4b/command/CommandTest.java
33 5 0
private void createWorkspaceSelectionControls()
in java/com/google/devtools/bazel/e4b/wizard/WorkspaceWizardPage.java
33 5 0
private void updateControls()
in java/com/google/devtools/bazel/e4b/wizard/WorkspaceWizardPage.java
10 5 0
private void select()
in java/com/google/devtools/bazel/e4b/command/SelectOutputStream.java
15 5 1
def _features()
in tools/build_defs/site_builder.py
12 4 1
def zip_all()
in tools/build_defs/site_builder.py
9 4 1
private void createTargetTextField()
in java/com/google/devtools/bazel/e4b/wizard/WorkspaceWizardPage.java
13 4 0
static void setFileTreeRoot()
in java/com/google/devtools/bazel/e4b/wizard/DirectoryTreeContentProvider.java
7 4 2
private Command()
in java/com/google/devtools/bazel/e4b/command/Command.java
16 4 7
private String getBazelPath()
in java/com/google/devtools/bazel/e4b/command/BazelCommand.java
6 4 0
private static int compareVersion()
in java/com/google/devtools/bazel/e4b/command/BazelCommand.java
10 4 2