microsoft / fabric8-maven-plugin
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 1,457 units with 13,448 lines of code in units (73.6% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (258 lines of code)
    • 32 medium complex units (1,689 lines of code)
    • 99 simple units (2,589 lines of code)
    • 1,324 very simple units (8,912 lines of code)
0% | 1% | 12% | 19% | 66%
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% | 1% | 12% | 19% | 66%
groovy0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
plugin/src0% | 3% | 14% | 23% | 58%
enricher/fabric80% | 9% | 15% | 20% | 54%
core/src0% | 0% | 9% | 16% | 73%
enricher/standard0% | 0% | 17% | 26% | 55%
enricher/api0% | 0% | 15% | <1% | 83%
generator/api0% | 0% | 10% | 6% | 82%
watcher/standard0% | 0% | 12% | 46% | 40%
generator/java-exec0% | 0% | 18% | 11% | 70%
generator/spring-boot0% | 0% | 0% | 20% | 79%
generator/webapp0% | 0% | 0% | 0% | 100%
watcher/api0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
generator/vertx0% | 0% | 0% | 0% | 100%
doc/src0% | 0% | 0% | 0% | 100%
generator/karaf0% | 0% | 0% | 0% | 100%
generator/wildfly-swarm0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected String embeddedIconsInConsole()
in enricher/fabric8/src/main/java/io/fabric8/maven/enricher/fabric8/IconEnricher.java
101 49 2
public void executeInternal()
in plugin/src/main/java/io/fabric8/maven/plugin/mojo/build/AppCatalogMojo.java
157 30 0
public void adapt()
in enricher/standard/src/main/java/io/fabric8/maven/enricher/standard/VolumePermissionEnricher.java
105 21 1
public HasMetadata convert()
in plugin/src/main/java/io/fabric8/maven/plugin/converter/DeploymentOpenShiftConverter.java
78 20 1
private void waitAndLogPods()
in core/src/main/java/io/fabric8/maven/core/service/PodLogService.java
66 19 8
private boolean createOrUpdateFabric8MavenPlugin()
in plugin/src/main/java/io/fabric8/maven/plugin/mojo/infra/SetupMojo.java
81 19 1
public static List translateCommandline()
in core/src/main/java/io/fabric8/maven/core/util/Commandline.java
56 17 1
protected void applyEntities()
in plugin/src/main/java/io/fabric8/maven/plugin/mojo/develop/DebugMojo.java
58 17 5
public void addMissingResources()
in enricher/standard/src/main/java/io/fabric8/maven/enricher/standard/DefaultControllerEnricher.java
73 16 1
protected void applyEntities()
in plugin/src/main/java/io/fabric8/maven/plugin/mojo/build/ApplyMojo.java
47 16 5
public static void mergePodSpec()
in core/src/main/java/io/fabric8/maven/core/util/KubernetesResourceUtil.java
51 15 3
public static LabelSelector getPodLabelSelector()
in core/src/main/java/io/fabric8/maven/core/util/KubernetesResourceUtil.java
47 15 1
public Closeable forwardPortAsync()
in core/src/main/java/io/fabric8/maven/core/service/PortForwardService.java
102 14 4
private void updateImageName()
in watcher/standard/src/main/java/io/fabric8/maven/watcher/standard/DockerImageWatcher.java
40 14 5
private String findTagSha()
in core/src/main/java/io/fabric8/maven/core/service/openshift/ImageStreamService.java
44 13 3
protected static HasMetadata mergeDeployments()
in core/src/main/java/io/fabric8/maven/core/util/KubernetesResourceUtil.java
63 13 4
private void chooseSshKeyPairs()
in plugin/src/main/java/io/fabric8/maven/plugin/mojo/internal/ImportMojo.java
44 13 2
protected void generateHTML()
in plugin/src/main/java/io/fabric8/maven/plugin/mojo/internal/ManifestIndexMojo.java
83 13 6
protected String getIconUrl()
in enricher/fabric8/src/main/java/io/fabric8/maven/enricher/fabric8/IconEnricher.java
37 12 1
private File copyIconToFolder()
in enricher/fabric8/src/main/java/io/fabric8/maven/enricher/fabric8/IconEnricher.java
42 12 2