GerritCodeReview / git-repo
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 667 units with 9,617 lines of code in units (89.3% of code).
    • 1 very complex units (147 lines of code)
    • 10 complex units (1,136 lines of code)
    • 43 medium complex units (2,157 lines of code)
    • 84 simple units (2,045 lines of code)
    • 529 very simple units (4,132 lines of code)
1% | 11% | 22% | 21% | 42%
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
py1% | 11% | 22% | 21% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT2% | 12% | 18% | 21% | 45%
subcmds0% | 11% | 31% | 21% | 35%
release0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _ParseManifest()
in manifest_xml.py
147 58 2
def _RemoteFetch()
in project.py
189 49 18
def ToXml()
in manifest_xml.py
165 39 5
def _SyncManifest()
in subcmds/init.py
177 36 2
def _InitGitDir()
in project.py
70 34 4
def _Run()
in main.py
121 33 4
def Execute()
in subcmds/sync.py
150 32 3
70 27 3
def _FetchBundle()
in project.py
52 27 6
def Execute()
in subcmds/rebase.py
74 26 3
68 26 4
def Execute()
in subcmds/branches.py
77 25 3
def _ParseProject()
in manifest_xml.py
84 24 4
def _SmartSyncSetup()
in subcmds/sync.py
80 22 3
81 22 1
def _MultipleBranches()
in subcmds/upload.py
63 21 4
def _CheckLocalPath()
in manifest_xml.py
43 21 3
33 21 3
def _GCProjects()
in subcmds/sync.py
70 20 4
146 20 4