aws / aws-lambda-builders
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 315 units with 2,053 lines of code in units (70.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (173 lines of code)
    • 15 simple units (308 lines of code)
    • 294 very simple units (1,572 lines of code)
0% | 0% | 8% | 15% | 76%
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% | 8% | 15% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws_lambda_builders/workflows/python_pip0% | 0% | 18% | 7% | 74%
aws_lambda_builders0% | 0% | 10% | 31% | 57%
aws_lambda_builders/workflows/nodejs_npm0% | 0% | 12% | 10% | 77%
aws_lambda_builders/workflows/ruby_bundler0% | 0% | 0% | 43% | 56%
aws_lambda_builders/workflows/custom_make0% | 0% | 0% | 24% | 75%
aws_lambda_builders/workflows/dotnet_clipackage0% | 0% | 0% | 19% | 80%
aws_lambda_builders/workflows/java_gradle0% | 0% | 0% | 8% | 91%
aws_lambda_builders/workflows/java_maven0% | 0% | 0% | 0% | 100%
aws_lambda_builders/workflows/go_dep0% | 0% | 0% | 0% | 100%
aws_lambda_builders/workflows/go_modules0% | 0% | 0% | 0% | 100%
aws_lambda_builders/workflows/java0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _download_dependencies()
in aws_lambda_builders/workflows/python_pip/packager.py
33 17 3
def _is_compatible_wheel_filename()
in aws_lambda_builders/workflows/python_pip/packager.py
16 15 2
def actions_without_bundler()
in aws_lambda_builders/workflows/nodejs_npm/workflow.py
33 15 7
def sanitize()
in aws_lambda_builders/workflow.py
47 14 1
def __init__()
in aws_lambda_builders/workflows/python_pip/workflow.py
33 11 8
def _is_compatible_platform_tag()
in aws_lambda_builders/workflows/python_pip/packager.py
11 11 3
def _install_purelib_and_platlib()
in aws_lambda_builders/workflows/python_pip/packager.py
11 10 3
def download_all_dependencies()
in aws_lambda_builders/workflows/python_pip/packager.py
19 10 3
def execute()
in aws_lambda_builders/workflows/nodejs_npm/actions.py
27 10 1
def execute()
in aws_lambda_builders/workflows/dotnet_clipackage/actions.py
25 9 1
def __init__()
in aws_lambda_builders/workflows/ruby_bundler/workflow.py
24 8 8
def __new__()
in aws_lambda_builders/workflow.py
11 7 4
def copytree()
in aws_lambda_builders/utils.py
24 7 3
def which()
in aws_lambda_builders/utils.py
34 7 3
def execute()
in aws_lambda_builders/workflows/custom_make/actions.py
22 7 1
def build()
in aws_lambda_builders/workflows/java_gradle/gradle.py
13 7 6
def __init__()
in aws_lambda_builders/builder.py
10 7 5
def main()
in aws_lambda_builders/__main__.py
56 6 0
def artifact_dir_path()
in aws_lambda_builders/workflows/custom_make/actions.py
5 6 1
def _has_at_least_one_package()
in aws_lambda_builders/workflows/python_pip/packager.py
9 6 2