aws-samples / amazon-keyspaces-toolkit
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 461 units with 3,607 lines of code in units (75.1% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (233 lines of code)
    • 13 medium complex units (447 lines of code)
    • 39 simple units (738 lines of code)
    • 406 very simple units (2,189 lines of code)
0% | 6% | 12% | 20% | 60%
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% | 6% | 12% | 20% | 60%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cqlsh-expansion/pylib/cqlshlib0% | 6% | 12% | 20% | 60%
cqlsh-expansion/config0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _get_converter()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
149 45 2
def get_ranges()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
63 31 1
def mk_wcwidth()
in cqlsh-expansion/pylib/cqlshlib/wcwidth.py
21 31 1
def read_rule_tokens_until()
in cqlsh-expansion/pylib/cqlshlib/pylexotron.py
53 23 3
def import_records()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
39 19 1
def cql_complete_single()
in cqlsh-expansion/pylib/cqlshlib/cqlhandling.py
56 18 6
def cql_complete_multiple()
in cqlsh-expansion/pylib/cqlshlib/cqlhandling.py
34 16 5
def ssl_settings()
in cqlsh-expansion/pylib/cqlshlib/sslhandling.py
43 15 3
def export_records()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
42 14 2
def __init__()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
25 14 4
def convert_row()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
17 13 2
def cf_prop_val_mapkey_completer()
in cqlsh-expansion/pylib/cqlshlib/cql3handling.py
43 11 2
def want_space_between()
in cqlsh-expansion/pylib/cqlshlib/cqlhandling.py
14 11 2
def inner_run()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
36 11 1
def maybe_inject_failures()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
14 11 4
def split_into_batches()
in cqlsh-expansion/pylib/cqlshlib/copyutil.py
31 11 4
def cql_split_statements()
in cqlsh-expansion/pylib/cqlshlib/cqlhandling.py
18 10 2
def format_floating_point_type()
in cqlsh-expansion/pylib/cqlshlib/formatting.py
20 10 6
def strftime()
in cqlsh-expansion/pylib/cqlshlib/formatting.py
9 10 4
def cf_prop_val_completer()
in cqlsh-expansion/pylib/cqlshlib/cql3handling.py
20 9 2