aws / aws-sigv4-auth-cassandra-python-driver-plugin
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 16 units with 89 lines of code in units (60.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 2 small units (26 lines of code)
    • 14 very small units (63 lines of code)
0% | 0% | 0% | 29% | 70%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 0% | 29% | 70%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cassandra_sigv40% | 0% | 0% | 29% | 70%
Alternative Visuals
Longest Units
Top 16 longest units
Unit# linesMcCabe index# params
def evaluate_challenge()
in cassandra_sigv4/auth.py
14 2 2
def _generate_signature()
in cassandra_sigv4/auth.py
12 1 4
def __init__()
in cassandra_sigv4/auth.py
8 2 6
def _generate_canonical_request()
in cassandra_sigv4/auth.py
8 1 4
def _extract_nonce()
in cassandra_sigv4/auth.py
7 2 1
def _generate_signing_key()
in cassandra_sigv4/auth.py
7 1 4
def _sha_256_hash()
in cassandra_sigv4/auth.py
7 2 1
def _sha_256_hmac()
in cassandra_sigv4/auth.py
6 2 3
def __init__()
in cassandra_sigv4/auth.py
5 2 2
def _format_timestamp()
in cassandra_sigv4/auth.py
3 1 1
def _ensure_b()
in cassandra_sigv4/auth.py
2 1 1
def new_authenticator()
in cassandra_sigv4/auth.py
2 1 2
def initial_response()
in cassandra_sigv4/auth.py
2 1 1
def _format_datestamp()
in cassandra_sigv4/auth.py
2 1 1
def _generate_scope()
in cassandra_sigv4/auth.py
2 1 2
def _create_credential_header()
in cassandra_sigv4/auth.py
2 1 2