microsoft / mu
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 38 units with 421 lines of code in units (63.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (51 lines of code)
    • 7 simple units (141 lines of code)
    • 30 very simple units (229 lines of code)
0% | 0% | 12% | 33% | 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% | 0% | 12% | 33% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 12% | 33% | 54%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __init__()
in DocBuild.py
51 16 4
def ProcessRootDir()
in DocBuild.py
23 10 1
def main()
in Utf8Test.py
30 9 0
def Clean()
in DocBuild.py
16 7 1
def main()
in DocBuild.py
34 7 0
def AddToTree()
in DocBuild.py
12 6 3
def GetNavYml()
in DocBuild.py
13 6 3
def Collapse()
in DocBuild.py
13 6 1
def MakeFriendly()
in DocBuild.py
15 4 2
def MakeYml()
in DocBuild.py
15 4 1
def MakeNav()
in DocBuild.py
15 4 1
def MakeRepoInfo()
in DocBuild.py
12 4 1
def __str__()
in DocBuild.py
8 3 1
10 3 3
def _CleanChars()
in DocBuild.py
8 3 2
def Valid_Dir()
in Utf8Test.py
8 3 1
def make_commit_url()
in DocBuild.py
5 2 3
def CloseYml()
in DocBuild.py
6 2 1
def WriteExtra()
in DocBuild.py
7 2 1
def _MakeNavTree()
in DocBuild.py
9 2 1