angular / vscode-ng-language-service
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 163 units with 2,176 lines of code in units (48.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (147 lines of code)
    • 17 simple units (492 lines of code)
    • 142 very simple units (1,537 lines of code)
0% | 0% | 6% | 22% | 70%
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% | 6% | 22% | 70%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
client/src0% | 0% | 12% | 7% | 79%
server/src0% | 0% | 4% | 31% | 64%
integration/lsp0% | 0% | 0% | 0% | 100%
common0% | 0% | 0% | 0% | 100%
syntaxes/src0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
42 19 3
26 15 1
function getServerOptions()
in client/src/client.ts
43 14 2
private onDidOpenTextDocument()
in server/src/session.ts
36 11 1
private handleProjectServiceEvent()
in server/src/session.ts
36 9 1
export function isInsideStringLiteral()
in client/src/embedded_support.ts
21 8 2
40 8 2
private onDidChangeTextDocument()
in server/src/session.ts
26 8 1
private getLSAndScriptInfo()
in server/src/session.ts
28 8 1
private onHover()
in server/src/session.ts
32 8 1
private findAngularCore()
in server/src/session.ts
20 8 1
private async runNgcc()
in server/src/session.ts
36 8 1
18 7 1
23 7 2
private onRenameRequest()
in server/src/session.ts
32 7 1
private onCompletion()
in server/src/session.ts
30 7 1
private onCompletionResolve()
in server/src/session.ts
29 7 1
31 6 1
22 6 2
private onSignatureHelp()
in server/src/session.ts
40 6 1