aws-ia / taskcat
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 360 units with 3,465 lines of code in units (53.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (187 lines of code)
    • 36 simple units (831 lines of code)
    • 317 very simple units (2,447 lines of code)
0% | 0% | 5% | 23% | 70%
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% | 5% | 23% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
taskcat0% | 0% | 4% | 28% | 66%
taskcat/_cfn0% | 0% | 10% | 15% | 74%
taskcat/_cli_modules0% | 0% | 0% | 20% | 79%
taskcat/iam_policy0% | 0% | 0% | 0% | 100%
taskcat/testing0% | 0% | 0% | 0% | 100%
taskcat_plugin_testhook0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _import_stacks_per_client()
in taskcat/_cfn/threaded.py
28 14 4
def _find_children()
in taskcat/_cfn/template.py
34 12 1
def output_results()
in taskcat/_cfn_lint.py
29 12 1
def _get_params()
in taskcat/_cli_core.py
27 11 2
def set_stack_properties()
in taskcat/_cfn/stack.py
25 11 2
def _s3_upload_file()
in taskcat/_s3_sync.py
30 11 5
def _gen_password_wrapper()
in taskcat/_template_params.py
14 11 4
def _build_usage()
in taskcat/_cli_core.py
17 10 2
def evaluate_expression_controller()
in taskcat/_cfn/stack_url_helper.py
19 10 2
def s3_url_maker()
in taskcat/_common_utils.py
27 10 4
def genpassword()
in taskcat/_template_params.py
25 10 2
def _recurse_submodules()
in taskcat/_cli_modules/deploy.py
35 10 3
def _bucket_matches_existing()
in taskcat/_dataclasses.py
27 10 1
def _get_log_level()
in taskcat/_cli_core.py
9 9 2
def find_local_child_template()
in taskcat/_cfn/stack_url_helper.py
23 9 3
def neglect_submodule_templates()
in taskcat/_common_utils.py
24 9 2
def _lint()
in taskcat/_cfn_lint.py
25 9 1
def _get_taskcat_stacks()
in taskcat/_cfn/threaded.py
30 8 3
43 8 4
def build_codenames()
in taskcat/_amiupdater.py
26 8 2