microsoft / vscode-lsif-extension
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 133 units with 2,033 lines of code in units (75.4% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (196 lines of code)
    • 9 medium complex units (369 lines of code)
    • 25 simple units (545 lines of code)
    • 97 very simple units (923 lines of code)
0% | 9% | 18% | 26% | 45%
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% | 9% | 18% | 26% | 45%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
server/src0% | 10% | 18% | 28% | 42%
client/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public decompress()
in server/src/graphStore.ts
105 45 1
private doProcessEdge()
in server/src/jsonStore.ts
91 27 4
private readMetaData()
in server/src/graphStore.ts
51 18 0
private findTargets()
in server/src/jsonStore.ts
52 14 3
public hover()
in server/src/graphStore.ts
47 13 2
private resolveReferenceResult()
in server/src/graphStore.ts
26 13 5
public references()
in server/src/jsonStore.ts
46 13 3
public documentSymbols()
in server/src/graphStore.ts
47 12 1
private processVertex()
in server/src/jsonStore.ts
41 12 1
private findRangesFromPosition()
in server/src/jsonStore.ts
33 12 2
public references()
in server/src/blobStore.ts
26 11 3
public load()
in server/src/jsonStore.ts
51 10 2
private resolveReferenceResult()
in server/src/jsonStore.ts
19 10 5
public static containsRange()
in server/src/blobStore.ts
15 9 2
public references()
in server/src/graphStore.ts
38 9 3
private toDocumentSymbol()
in server/src/jsonStore.ts
21 9 1
public static containsRange()
in server/src/jsonStore.ts
15 9 2
async function createDatabase()
in server/src/lsifServer.ts
43 9 1
public hover()
in server/src/blobStore.ts
23 8 2
private lookup()
in server/src/files.ts
22 8 2