aws-quickstart / quickstart-ibm-integration
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 78 units with 1,039 lines of code in units (14.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (452 lines of code)
    • 14 simple units (204 lines of code)
    • 58 very simple units (383 lines of code)
0% | 0% | 43% | 19% | 36%
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% | 43% | 19% | 36%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 0% | 71% | 2% | 26%
scripts/yapl0% | 0% | 19% | 34% | 45%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def installOCP()
in scripts/cp4i_install.py
154 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/cp4i_install.py
117 13 2
def listFilesOfType()
in scripts/yapl/Utilities.py
24 11 2
def configureOCS()
in scripts/cp4i_install.py
74 11 2
def _coerceLevel()
in scripts/yapl/Trace.py
15 10 2
def _log()
in scripts/yapl/Trace.py
27 10 5
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 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
def _isTraceLevel()
in scripts/yapl/Trace.py
10 6 2
def setTraceLevel()
in scripts/yapl/Trace.py
12 6 2
def invokeCommands()
in scripts/yapl/S3Helper.py
12 6 4
def _getArg()
in scripts/cp4i_install.py
11 6 4