microsoft / protool
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 18 units with 292 lines of code in units (61.3% 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)
    • 3 simple units (155 lines of code)
    • 15 very simple units (137 lines of code)
0% | 0% | 0% | 53% | 46%
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% | 0% | 0% | 53% | 46%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
protool0% | 0% | 0% | 55% | 44%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 18 most complex units
Unit# linesMcCabe index# params
def profile_type()
in protool/__init__.py
10 8 1
def _handle_read()
in protool/command_line.py
24 6 1
def _handle_arguments()
in protool/command_line.py
121 6 0
def inline()
in inlinecss.py
13 5 1
def profiles()
in protool/__init__.py
16 4 1
def _handle_diff()
in protool/command_line.py
18 3 1
def developer_certificates()
in protool/__init__.py
11 2 1
def load_from_disk()
in protool/__init__.py
6 2 3
def _get_xml()
in protool/__init__.py
7 2 1
def value_for_key()
in protool/__init__.py
7 2 2
def decode()
in protool/__init__.py
5 2 2
def _handle_git_diff()
in protool/command_line.py
15 2 1
def _handle_decode()
in protool/command_line.py
7 2 1
def __init__()
in protool/__init__.py
4 1 4
def contents()
in protool/__init__.py
2 1 1
def _parse_contents()
in protool/__init__.py
17 1 1
def diff()
in protool/__init__.py
7 1 0
def run()
in protool/command_line.py
2 1 0