aws-quickstart / quickstart-ibm-cloud-pak-for-security
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 81 units with 1,070 lines of code in units (19.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (262 lines of code)
    • 15 simple units (291 lines of code)
    • 62 very simple units (517 lines of code)
0% | 0% | 24% | 27% | 48%
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% | 24% | 27% | 48%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 0% | 32% | 20% | 47%
scripts/yapl0% | 0% | 19% | 34% | 45%
scripts/pyca0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def installOCP()
in scripts/cp4s_install.py
155 16 2
def getInputArgs()
in scripts/yapl/Utilities.py
41 15 2
def _exceptionStackTTB()
in scripts/yapl/Trace.py
42 13 4
def listFilesOfType()
in scripts/yapl/Utilities.py
24 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 main()
in scripts/cp4s_install.py
87 9 2
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/cp4s_install.py
11 6 4
def isLoggable()
in scripts/yapl/Trace.py
12 5 2