microsoft / vscode-emmet-helper
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 36 units with 829 lines of code in units (91.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (115 lines of code)
    • 9 medium complex units (464 lines of code)
    • 3 simple units (73 lines of code)
    • 23 very simple units (177 lines of code)
0% | 13% | 55% | 8% | 21%
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% | 13% | 55% | 8% | 21%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 13% | 55% | 8% | 21%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function doComplete()
in src/emmetHelper.ts
115 42 4
function addFinalTabStop()
in src/emmetHelper.ts
60 25 1
function getFormatters()
in src/emmetHelper.ts
71 22 2
function getProfile()
in src/emmetHelper.ts
51 21 2
75 21 4
function isExpandedTextNoise()
in src/emmetHelper.ts
37 18 4
30 16 2
87 14 3
function updateSnippets()
in src/emmetHelper.ts
34 12 1
export function normalizePath()
in src/fileService.ts
19 11 1
35 8 7
function getFilters()
in src/emmetHelper.ts
21 8 2
export function getEmmetMode()
in src/emmetHelper.ts
17 8 2
function getCurrentLine()
in src/emmetHelper.ts
19 5 2
17 5 2
function getClosingStyle()
in src/emmetHelper.ts
9 5 1
18 4 2
function getCurrentWord()
in src/emmetHelper.ts
8 3 1
16 3 3
function tryParseFile()
in src/emmetHelper.ts
8 3 2