microsoft / vscode-eslint
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 280 units with 3,686 lines of code in units (71.6% of code).
    • 3 very complex units (652 lines of code)
    • 2 complex units (225 lines of code)
    • 11 medium complex units (480 lines of code)
    • 35 simple units (716 lines of code)
    • 229 very simple units (1,613 lines of code)
17% | 6% | 13% | 19% | 43%
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
ts18% | 6% | 13% | 19% | 42%
js0% | 0% | 0% | 0% | 100%
tsx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
client/src35% | 0% | 2% | 18% | 42%
server/src7% | 10% | 20% | 20% | 41%
playgrounds/7.00% | 0% | 0% | 0% | 100%
playgrounds/8.00% | 0% | 0% | 0% | 100%
playgrounds/ts0% | 0% | 0% | 0% | 100%
playgrounds/7.0/build0% | 0% | 0% | 0% | 100%
playgrounds/7.0/subDir0% | 0% | 0% | 0% | 100%
playgrounds/8.0/build0% | 0% | 0% | 0% | 100%
playgrounds/8.0/subDir0% | 0% | 0% | 0% | 100%
playgrounds/noLib0% | 0% | 0% | 0% | 100%
playgrounds/noWD/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function resolveSettings()
in server/src/eslintServer.ts
171 65 1
function realActivate()
in client/src/extension.ts
319 58 1
configuration: async()
in client/src/extension.ts
162 53 3
private ComputeRecursionPoint()
in server/src/diff.ts
152 39 7
async function computeAllFixes()
in server/src/eslintServer.ts
73 28 2
private PrettifyChanges()
in server/src/diff.ts
62 24 1
private WALKTRACE()
in server/src/diff.ts
95 18 18
await withESLintClass()
in server/src/eslintServer.ts
30 16 1
async function getSaveRuleConfig()
in server/src/eslintServer.ts
41 15 2
private ComputeDiffRecursive()
in server/src/diff.ts
52 14 5
function adjustSeverityForOverride()
in server/src/eslintServer.ts
27 13 2
private processQueue()
in server/src/eslintServer.ts
41 13 0
function computeValidate()
in client/src/extension.ts
30 12 1
function makeDiagnostic()
in server/src/eslintServer.ts
24 12 2
function isUNC()
in server/src/eslintServer.ts
32 11 1
private touch()
in server/src/linkedMap.ts
46 11 2
function record()
in client/src/extension.ts
21 10 3
export function capture()
in server/src/eslintServer.ts
24 10 2
function record()
in client/src/extension.ts
14 9 2
function convertNode()
in client/src/utils.ts
27 9 1