microsoft / extension-manifest-editor
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 67 units with 628 lines of code in units (44.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 7 medium size units (180 lines of code)
    • 20 small units (288 lines of code)
    • 40 very small units (160 lines of code)
0% | 0% | 28% | 45% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 28% | 45% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 28% | 45% | 25%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private getResources()
in src/VscHtmlGenerator.ts
29 5 0
private getResources()
in src/VstsHtmlGenerator.ts
29 5 0
private getProjectDetails()
in src/BaseHTMLGenerator.ts
27 2 0
protected updateHTML()
in src/BaseHTMLGenerator.ts
26 2 0
public getReadMe()
in src/BasePreviewManager.ts
25 4 0
public getCustomStyles()
in src/BaseHTMLGenerator.ts
23 3 0
public getInstallOptions()
in src/VscHtmlGenerator.ts
21 2 0
private readHTML()
in src/BaseHTMLGenerator.ts
20 3 0
private getManifest()
in src/BasePreviewManager.ts
19 5 0
public parseManifestFromActiveEditor()
in src/BasePreviewManager.ts
19 2 1
constructor()
in src/PreviewManagerController.ts
19 10 3
private getManifestFromActiveEditor()
in src/BasePreviewManager.ts
16 2 0
constructor()
in src/BaseDataProvider.ts
15 1 0
public deserialize()
in src/BaseDataProvider.ts
15 5 1
private getCategories()
in src/BaseHTMLGenerator.ts
15 3 0
private getTags()
in src/BaseHTMLGenerator.ts
15 3 0
private returnOldPreview()
in src/BasePreviewManager.ts
15 2 1
protected updateHTML()
in src/VscHtmlGenerator.ts
14 2 0
protected updateHTML()
in src/VstsHtmlGenerator.ts
14 2 0
public generatePreview()
in src/PreviewManagerVSC.ts
12 1 0