microsoft / vscode-maven
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 410 units with 4,681 lines of code in units (81.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (583 lines of code)
    • 34 simple units (931 lines of code)
    • 365 very simple units (3,167 lines of code)
0% | 0% | 12% | 19% | 67%
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% | 12% | 20% | 66%
java0% | 0% | 9% | 16% | 74%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/handlers0% | 0% | 36% | 26% | 36%
src/utils0% | 0% | 13% | 25% | 61%
src/completion0% | 0% | 26% | 0% | 73%
jdtls.ext/com.microsoft.java.maven.plugin0% | 0% | 9% | 16% | 74%
src/definition0% | 0% | 100% | 0% | 0%
src/hover0% | 0% | 100% | 0% | 0%
src0% | 0% | 0% | 39% | 60%
src/archetype0% | 0% | 0% | 24% | 75%
src/explorer0% | 0% | 0% | 5% | 94%
src/jdtls0% | 0% | 0% | 14% | 85%
src/codeAction0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function getElementHierarchy()
in src/utils/lexerUtils.ts
71 25 3
async function insertDependencyManagement()
in src/handlers/setDependencyVersionHandler.ts
63 23 6
public async provideCompletionItems()
in src/completion/completionProvider.ts
89 22 4
export async function setDependencyVersionHandler()
in src/handlers/setDependencyVersionHandler.ts
47 17 1
export async function addDependencyHandler()
in src/handlers/addDependencyHandler.ts
46 16 1
public provideDefinition()
in src/definition/definitionProvider.ts
37 15 3
async function parseTreeNodes()
in src/handlers/parseRawDependencyDataHandler.ts
87 15 5
public List searchByClassName()
in jdtls.ext/com.microsoft.java.maven.plugin/src/main/java/com/microsoft/java/maven/ArtifactSearcher.java
45 13 1
public async provideHover()
in src/hover/hoverProvider.ts
34 13 3
public int compare()
in jdtls.ext/com.microsoft.java.maven.plugin/src/main/java/com/microsoft/java/maven/ArtifactSearcher.java
14 11 2
async function executeInBackground()
in src/utils/mavenUtils.ts
50 11 2
public async findConflictRange()
in src/DiagnosticProvider.ts
22 10 3
export async function createMavenProject()
in src/archetype/ArchetypeModule.ts
27 10 2
export async function listArchetypeFromXml()
in src/archetype/ArchetypeModule.ts
26 10 1
39 10 1
public void endElement()
in jdtls.ext/com.microsoft.java.maven.plugin/src/main/java/com/microsoft/java/maven/GetPosHandler.java
25 9 3
async function executeInTerminalHandler()
in src/archetype/ArchetypeModule.ts
47 9 1
21 9 1
44 9 1
async function insertExcludeDependency()
in src/handlers/excludeDependencyHandler.ts
29 9 4