awslabs / aws-glue-libs
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 366 units with 2,640 lines of code in units (87.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (54 lines of code)
    • 2 medium complex units (81 lines of code)
    • 16 simple units (288 lines of code)
    • 347 very simple units (2,217 lines of code)
0% | 2% | 3% | 10% | 83%
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% | 2% | 3% | 10% | 83%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
awsglue0% | 4% | 6% | 15% | 73%
awsglue/scripts0% | 0% | 0% | 14% | 85%
awsglue/dataframe_transforms0% | 0% | 0% | 54% | 45%
awsglue/transforms0% | 0% | 0% | 1% | 98%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def getResolvedOptions()
in awsglue/utils.py
54 35 2
def mergeDataTypes()
in awsglue/gluetypes.py
34 17 2
def _glue_job_response_to_job()
in awsglue/devutils.py
47 11 2
def download_jars_per_connection()
in awsglue/scripts/activate_etl_connector.py
40 9 4
def main()
in awsglue/scripts/activate_etl_connector.py
16 9 0
def getSource()
in awsglue/context.py
17 8 6
def getStreamingSource()
in awsglue/context.py
17 8 6
def write_from_options()
in awsglue/context.py
18 8 8
def resolveChoice()
in awsglue/dynamicframe.py
24 8 10
18 7 9
18 7 9
15 7 9
def apply()
in awsglue/dataframe_transforms/apply_mapping.py
23 7 2
def apply_mapping()
in awsglue/dynamicframe.py
27 7 7
def from_catalog()
in awsglue/dynamicframe.py
12 7 9
def from_catalog()
in awsglue/dynamicframe.py
12 7 9
def from_catalog()
in awsglue/dataframereader.py
12 7 9
def _find_null_fields()
in awsglue/transforms/drop_nulls.py
10 7 5
def __call__()
in awsglue/transforms/relationalize.py
9 6 9
def _make_choice()
in awsglue/gluetypes.py
16 5 2