aws / amazon-ssm-document-language-service
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 23 units with 313 lines of code in units (11.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (112 lines of code)
    • 10 small units (137 lines of code)
    • 9 very small units (64 lines of code)
0% | 0% | 35% | 43% | 20%
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% | 35% | 43% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/util0% | 0% | 37% | 35% | 26%
src0% | 0% | 31% | 60% | 7%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function getSsmLanguageService()
in src/ssmLanguageService.ts
33 1 3
export function runSafeAsync()
in src/util/runner.ts
28 3 1
export function runSafe()
in src/util/runner.ts
27 4 1
public onResultLimitExceeded()
in src/util/limitExceededWarnings.ts
24 3 3
function fixYamlSnippetCompletionItem()
in src/util/yamlCompletionUtils.ts
20 7 2
private readonly parseFn:()
in src/util/languageModelCache.ts
16 4 1
async doComplete()
in src/ssmLanguageService.ts
16 2 3
public async validateTextDocument()
in src/util/delayedValidationService.ts
15 3 1
async doValidation()
in src/ssmLanguageService.ts
15 2 4
11 4 2
function fixIndentation()
in src/util/yamlCompletionUtils.ts
11 2 1
export function formatError()
in src/util/runner.ts
11 4 2
async doHover()
in src/ssmLanguageService.ts
11 2 3
async findDocumentColors()
in src/ssmLanguageService.ts
11 2 3
export function fixYamlCompletionList()
in src/util/yamlCompletionUtils.ts
8 2 2
function fixYamlArrayItemIndentation()
in src/util/yamlCompletionUtils.ts
8 3 1
public dispose()
in src/util/languageModelCache.ts
8 2 0
async doResolve()
in src/ssmLanguageService.ts
8 3 1
public cancel()
in src/util/limitExceededWarnings.ts
7 3 1
public cleanPendingValidation()
in src/util/delayedValidationService.ts
7 2 1