aws / amazon-redshift-python-driver
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 292 units with 2,855 lines of code in units (48.4% of code).
    • 0 very complex units (0 lines of code)
    • 5 complex units (483 lines of code)
    • 14 medium complex units (709 lines of code)
    • 21 simple units (373 lines of code)
    • 252 very simple units (1,290 lines of code)
0% | 16% | 24% | 13% | 45%
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% | 16% | 24% | 13% | 45%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
redshift_connector0% | 25% | 13% | 10% | 50%
redshift_connector/plugin0% | 11% | 48% | 11% | 29%
redshift_connector/utils0% | 0% | 20% | 30% | 48%
redshift_connector/auth0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def set_iam_properties()
in redshift_connector/iam_helper.py
118 42 1
def get_saml_assertion()
in redshift_connector/plugin/ping_credentials_provider.py
99 33 1
def __init__()
in redshift_connector/redshift_property.py
56 29 2
def convert_paramstyle()
in redshift_connector/core.py
114 28 2
def execute()
in redshift_connector/core.py
96 28 4
def refresh()
in redshift_connector/plugin/saml_credentials_provider.py
81 23 1
def hexencoding_lookup_no_case()
in redshift_connector/utils/type_utils.py
35 23 1
def form_based_authentication()
in redshift_connector/plugin/adfs_credentials_provider.py
79 22 1
def set_iam_credentials()
in redshift_connector/iam_helper.py
62 19 1
def read_metadata()
in redshift_connector/plugin/saml_credentials_provider.py
38 16 2
def get_saml_assertion()
in redshift_connector/plugin/azure_credentials_provider.py
12 15 1
def refresh()
in redshift_connector/plugin/jwt_credentials_provider.py
48 15 1
def _parse_array()
in redshift_connector/utils/type_utils.py
47 14 4
def azure_oauth_based_authentication()
in redshift_connector/plugin/azure_credentials_provider.py
67 13 1
def make_params()
in redshift_connector/core.py
34 13 2
def array_inspect()
in redshift_connector/core.py
76 13 2
def okta_authentication()
in redshift_connector/plugin/okta_credentials_provider.py
42 12 1
def fetch_saml_response()
in redshift_connector/plugin/browser_azure_credentials_provider.py
53 11 2
def handle_AUTHENTICATION_REQUEST()
in redshift_connector/core.py
35 11 3
def fetch_dataframe()
in redshift_connector/cursor.py
24 9 2