microsoft / vscode-azurecli
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 101 units with 1,057 lines of code in units (76.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (39 lines of code)
    • 5 medium complex units (187 lines of code)
    • 15 simple units (253 lines of code)
    • 80 very simple units (578 lines of code)
0% | 3% | 17% | 23% | 54%
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
py0% | 7% | 25% | 21% | 46%
ts0% | 0% | 9% | 26% | 63%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
service/azservice0% | 7% | 25% | 21% | 46%
src0% | 0% | 9% | 26% | 63%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def get_hover_text()
in service/azservice/__main__.py
39 33 3
def main()
in service/azservice/__main__.py
51 18 0
def get_group_index()
in service/azservice/__main__.py
50 16 1
export function parse()
in src/parser.ts
51 14 1
def get_argument_value_list()
in service/azservice/__main__.py
18 13 3
def get_argument_name_completions()
in service/azservice/__main__.py
17 12 2
private async getProcess()
in src/azService.ts
28 10 0
private getSelectedCommand()
in src/extension.ts
46 10 1
private updateResult()
in src/extension.ts
15 9 0
def get_configured_defaults()
in service/azservice/tooling2.py
21 8 0
def get_global_argument_name_completions()
in service/azservice/__main__.py
11 7 1
def _install_modules()
in service/azservice/tooling1.py
19 7 1
public update()
in src/extension.ts
13 7 0
def add_command_documentation()
in service/azservice/__main__.py
13 6 2
def get_completions()
in service/azservice/__main__.py
13 6 5
def with_snippet()
in service/azservice/__main__.py
12 6 4
def get_global_argument_value_list()
in service/azservice/__main__.py
8 6 2
def get_options()
in service/azservice/__main__.py
6 6 1
def load_command_table()
in service/azservice/tooling2.py
9 6 0
23 6 0