microsoft / extension-manifest-editor
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 67 units with 628 lines of code in units (44.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (19 lines of code)
    • 66 very simple units (609 lines of code)
0% | 0% | 0% | 3% | 96%
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% | 0% | 0% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 3% | 96%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
constructor()
in src/PreviewManagerController.ts
19 10 3
public deserialize()
in src/BaseDataProvider.ts
15 5 1
private getManifest()
in src/BasePreviewManager.ts
19 5 0
private getResources()
in src/VscHtmlGenerator.ts
29 5 0
private getResources()
in src/VstsHtmlGenerator.ts
29 5 0
public getReadMe()
in src/BasePreviewManager.ts
25 4 0
private getInstallOptions()
in src/VstsHtmlGenerator.ts
12 4 0
private readHTML()
in src/BaseHTMLGenerator.ts
20 3 0
public getCustomStyles()
in src/BaseHTMLGenerator.ts
23 3 0
private getCategories()
in src/BaseHTMLGenerator.ts
15 3 0
private getTags()
in src/BaseHTMLGenerator.ts
15 3 0
private writeHTML()
in src/BaseHTMLGenerator.ts
9 3 0
private isVscManifest()
in src/BasePreviewManager.ts
3 3 0
protected updateHTML()
in src/BaseHTMLGenerator.ts
26 2 0
private getItemImage()
in src/BaseHTMLGenerator.ts
7 2 0
private getProjectDetails()
in src/BaseHTMLGenerator.ts
27 2 0
private getPreviewDetails()
in src/BaseHTMLGenerator.ts
6 2 0
private getManifestFromActiveEditor()
in src/BasePreviewManager.ts
16 2 0
public parseManifestFromActiveEditor()
in src/BasePreviewManager.ts
19 2 1
private isVstsManifest()
in src/BasePreviewManager.ts
3 2 0