microsoft / vscode-java-pack
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 242 units with 3,419 lines of code in units (45.4% of code).
    • 2 very complex units (154 lines of code)
    • 1 complex units (57 lines of code)
    • 9 medium complex units (879 lines of code)
    • 18 simple units (483 lines of code)
    • 212 very simple units (1,846 lines of code)
4% | 1% | 25% | 14% | 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
ts4% | 1% | 27% | 15% | 50%
tsx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/formatter-settings19% | 7% | 31% | 6% | 35%
src/ext-guide0% | 0% | 71% | 0% | 28%
src/overview0% | 0% | 58% | 0% | 41%
src/java-runtime0% | 0% | 33% | 25% | 41%
src/classpath0% | 0% | 0% | 41% | 58%
src/welcome0% | 0% | 0% | 19% | 80%
src/install-jdk0% | 0% | 0% | 28% | 71%
src/commands0% | 0% | 0% | 22% | 77%
src/utils0% | 0% | 0% | 11% | 88%
src/beginner-tips0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
src/recommendation0% | 0% | 0% | 0% | 100%
src/exp0% | 0% | 0% | 0% | 100%
src/misc0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function profile2WebViewConvert()
in src/formatter-settings/FormatterConverter.ts
81 61 2
export function getDefaultValue()
in src/formatter-settings/FormatterConstants.ts
73 57 1
export function webView2ProfileConvert()
in src/formatter-settings/FormatterConverter.ts
57 38 2
export function parseProfile()
in src/formatter-settings/utils.ts
88 23 1
public async resolveCustomTextEditor()
in src/formatter-settings/index.ts
73 18 3
async function initializeJavaRuntimeView()
in src/java-runtime/index.ts
106 17 3
export async function resolveRequirements()
in src/java-runtime/utils/upstreamApi.ts
73 17 0
constructor()
in src/formatter-settings/index.ts
25 13 1
function getHtmlForWebview()
in src/ext-guide/index.ts
252 12 1
function getHtmlForWebview()
in src/overview/index.ts
203 12 1
export function getExample()
in src/formatter-settings/FormatterConstants.ts
26 11 1
function replace()
in src/formatter-settings/assets/whitespace.ts
33 11 1
async function initializeWebview()
in src/classpath/classpathConfigurationView.ts
44 10 1
async function getProjectRuntimesFromPM()
in src/java-runtime/index.ts
25 9 0
async function findDefaultRuntimeFromSettings()
in src/java-runtime/utils/upstreamApi.ts
20 9 0
async function getProjectClasspathFromLS()
in src/classpath/classpathConfigurationView.ts
42 8 1
private async parseProfileAndUpdate()
in src/formatter-settings/index.ts
27 8 1
39 7 0
async function checkRequirement()
in src/classpath/classpathConfigurationView.ts
42 6 0
27 6 3