microsoft / vscode-generator-code
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 58 units with 987 lines of code in units (65.7% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (86 lines of code)
    • 3 medium complex units (151 lines of code)
    • 5 simple units (168 lines of code)
    • 49 very simple units (582 lines of code)
0% | 8% | 15% | 17% | 58%
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
js0% | 9% | 15% | 17% | 57%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
app0% | 9% | 16% | 17% | 56%
app/templates/ext-notebook-renderer/src/client0% | 0% | 0% | 0% | 100%
app/templates/ext-command-js0% | 0% | 0% | 0% | 100%
app/templates/ext-command-ts/src0% | 0% | 0% | 0% | 100%
app/templates/ext-command-web/src/web0% | 0% | 0% | 0% | 100%
app/templates/ext-notebook-renderer/src/extension0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async end()
in generators/app/index.js
86 26 0
function processContent()
in generators/app/generate-language.js
55 18 3
function convertTheme()
in generators/app/generate-colortheme.js
48 13 4
function migrate()
in generators/app/generate-colortheme.js
48 13 3
function convertGrammar()
in generators/app/generate-language.js
40 9 2
function askForSnippetsInfo()
in generators/app/generate-snippets.js
36 8 2
function convert()
in generators/app/generate-snippets.js
30 8 1
function getLatestVSCodeVersion()
in generators/app/env.js
28 7 0
async prompting()
in generators/app/index.js
34 7 0
function processContent()
in generators/app/generate-colortheme.js
19 5 4
async function askForThemeInfo()
in generators/app/generate-colortheme.js
36 4 2
function askForExtensionPackInfo()
in generators/app/generate-extensionpack.js
32 4 2
function processSnippetFolder()
in generators/app/generate-snippets.js
14 4 2
function guessLanguage()
in generators/app/generate-snippets.js
8 4 1
function convertTextMate()
in generators/app/generate-snippets.js
23 4 1
async initializing()
in generators/app/index.js
18 4 0
writing()
in generators/app/index.js
13 4 0
function askForLanguageName()
in generators/app/generate-localization.js
18 3 2
function askForSnippetLanguage()
in generators/app/generate-snippets.js
16 3 2
function getId()
in generators/app/generate-snippets.js
10 3 1