aws-samples / mainframe-data-utilities
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 27 units with 298 lines of code in units (43.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (77 lines of code)
    • 6 simple units (113 lines of code)
    • 18 very simple units (108 lines of code)
0% | 0% | 25% | 37% | 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% | 25% | 37% | 36%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 25% | 37% | 36%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def getLenType()
in copybook.py
28 15 1
def unpack()
in ebcdic.py
15 15 3
def CreateExtraction()
in parse_copybook_to_json.py
34 11 3
def fileconvertion()
in extract_ebcdic_to_ascii.py
20 8 1
def toDict()
in copybook.py
13 8 1
def __init__()
in utils.py
30 8 2
def Write()
in datasource.py
13 7 2
def add2dict()
in copybook.py
24 6 5
def addField()
in datasource.py
13 6 6
def GetLayout()
in utils.py
6 4 2
def fRemStack()
in copybook.py
5 3 2
def __init__()
in datasource.py
10 3 2
def __init__()
in datasource.py
11 3 2
def get()
in datasource.py
8 3 1
def DisParam()
in parse_copybook_to_json.py
18 3 1
def lambda_handler()
in extract_ebcdic_to_ascii.py
9 2 2
def fGetSetack()
in copybook.py
6 2 0
def getPicSize()
in copybook.py
5 2 1
def __init__()
in datasource.py
4 2 2
3 2 3