aws / amazon-redshift-python-driver
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 292 units with 2,855 lines of code in units (48.4% of code).
    • 2 very long units (232 lines of code)
    • 9 long units (669 lines of code)
    • 18 medium size units (584 lines of code)
    • 34 small units (504 lines of code)
    • 229 very small units (866 lines of code)
8% | 23% | 20% | 17% | 30%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py8% | 23% | 20% | 17% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
redshift_connector15% | 19% | 14% | 17% | 33%
redshift_connector/plugin0% | 43% | 21% | 14% | 20%
redshift_connector/utils0% | 0% | 37% | 26% | 35%
redshift_connector/auth0% | 0% | 56% | 0% | 43%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def set_iam_properties()
in redshift_connector/iam_helper.py
118 42 1
def convert_paramstyle()
in redshift_connector/core.py
114 28 2
def get_saml_assertion()
in redshift_connector/plugin/ping_credentials_provider.py
99 33 1
def execute()
in redshift_connector/core.py
96 28 4
def refresh()
in redshift_connector/plugin/saml_credentials_provider.py
81 23 1
def form_based_authentication()
in redshift_connector/plugin/adfs_credentials_provider.py
79 22 1
def array_inspect()
in redshift_connector/core.py
76 13 2
def azure_oauth_based_authentication()
in redshift_connector/plugin/azure_credentials_provider.py
67 13 1
def set_iam_credentials()
in redshift_connector/iam_helper.py
62 19 1
def __init__()
in redshift_connector/redshift_property.py
56 29 2
def fetch_saml_response()
in redshift_connector/plugin/browser_azure_credentials_provider.py
53 11 2
def connect()
in redshift_connector/__init__.py
49 1 0
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 okta_authentication()
in redshift_connector/plugin/okta_credentials_provider.py
42 12 1
def read_metadata()
in redshift_connector/plugin/saml_credentials_provider.py
38 16 2
def handle_AUTHENTICATION_REQUEST()
in redshift_connector/core.py
35 11 3
def hexencoding_lookup_no_case()
in redshift_connector/utils/type_utils.py
35 23 1
def make_params()
in redshift_connector/core.py
34 13 2
def handle_saml_assertion()
in redshift_connector/plugin/okta_credentials_provider.py
33 6 2