aws-quickstart / quickstart-ibm-icp-for-data
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 89 units with 1,482 lines of code in units (21.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (606 lines of code)
    • 17 simple units (370 lines of code)
    • 65 very simple units (506 lines of code)
0% | 0% | 40% | 24% | 34%
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% | 40% | 24% | 34%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 0% | 53% | 19% | 27%
scripts/yapl0% | 0% | 19% | 34% | 45%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def installOCP()
in scripts/cpd_install.py
206 18 2
def installCPD()
in scripts/cpd_install.py
115 16 2
def getInputArgs()
in scripts/yapl/Utilities.py
41 15 2
def _exceptionStackTTB()
in scripts/yapl/Trace.py
42 13 4
def main()
in scripts/cpd_install.py
109 12 2
def listFilesOfType()
in scripts/yapl/Utilities.py
24 11 2
def preparePXInstall()
in scripts/cpd_install.py
69 11 2
def _coerceLevel()
in scripts/yapl/Trace.py
15 10 2
def _log()
in scripts/yapl/Trace.py
27 10 5
def configureOCS()
in scripts/cpd_install.py
70 10 2
def splitString()
in scripts/yapl/Utilities.py
11 9 2
def _exceptionStackBTT()
in scripts/yapl/Trace.py
36 9 4
def __init__()
in scripts/yapl/Trace.py
10 8 3
def exportLogs()
in scripts/yapl/LogExporter.py
19 8 2
def _coerceLevel()
in scripts/yapl/Trace.py
8 7 2
def configureEFS()
in scripts/cpd_install.py
40 7 1
def configurePx()
in scripts/cpd_install.py
56 7 2
def toBoolean()
in scripts/yapl/Utilities.py
7 6 1
def getValue()
in scripts/yapl/Utilities.py
11 6 3
def _patternToRegEx()
in scripts/yapl/Trace.py
15 6 2