microsoft / vscode-java-dependency
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 382 units with 4,178 lines of code in units (77.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 15 medium complex units (887 lines of code)
    • 41 simple units (1,059 lines of code)
    • 326 very simple units (2,232 lines of code)
0% | 0% | 21% | 25% | 53%
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
ts0% | 0% | 18% | 27% | 53%
java0% | 0% | 28% | 19% | 51%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
jdtls.ext/com.microsoft.jdtls.ext.core0% | 0% | 28% | 20% | 50%
src/exportJarSteps0% | 0% | 38% | 35% | 25%
src/views0% | 0% | 10% | 16% | 72%
src/languageServerApi0% | 0% | 70% | 0% | 29%
src/explorerCommands0% | 0% | 12% | 35% | 51%
src0% | 0% | 0% | 44% | 55%
src/controllers0% | 0% | 0% | 30% | 69%
src/java0% | 0% | 0% | 0% | 100%
jdtls.ext/com.microsoft.jdtls.ext.activator0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
templates/invisible-project0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private async resolveClasspaths()
in src/exportJarSteps/ExportJarTaskProvider.ts
81 21 4
public static List resolvePath()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/PackageCommand.java
83 20 2
private async generateClasspaths()
in src/exportJarSteps/GenerateJarExecutor.ts
107 19 1
async function inferPackageFsPath()
in src/explorerCommands/new.ts
41 16 0
private async generateJar()
in src/exportJarSteps/GenerateJarExecutor.ts
68 15 1
public async initializeJavaLanguageServerApi()
in src/languageServerApi/languageServerApiManager.ts
55 14 1
private async resolveJavaProject()
in src/exportJarSteps/ResolveJavaProjectExecutor.ts
68 13 1
constructor()
in src/views/dependencyExplorer.ts
85 13 1
public static JarEntryFile findJarEntryFile()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/ExtUtils.java
33 12 2
private static List getPackageFragmentRoots()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/PackageCommand.java
55 12 2
private static List getFolderChildren()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/PackageCommand.java
37 12 2
public static List getMainClasses()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/ProjectCommand.java
48 12 2
protected createChildNodeList()
in src/views/projectNode.ts
33 12 0
private static List getRootTypes()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/PackageCommand.java
44 11 2
private static List convertToPackageNode()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/PackageCommand.java
49 11 3
private static boolean exportJarExecution()
in jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/ProjectCommand.java
45 10 5
async function getPackageFsPath()
in src/explorerCommands/new.ts
37 10 1
public async provideTasks()
in src/exportJarSteps/ExportJarTaskProvider.ts
48 10 0
22 10 1
public async revealPaths()
in src/views/projectNode.ts
23 10 1