microsoft / artifacts-keyring
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 14 units with 140 lines of code in units (59.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (67 lines of code)
    • 2 small units (30 lines of code)
    • 10 very small units (43 lines of code)
0% | 0% | 47% | 21% | 30%
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% | 47% | 21% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/artifacts_keyring0% | 0% | 57% | 12% | 30%
ROOT0% | 0% | 0% | 66% | 33%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
def _get_credentials_from_credential_provider()
in src/artifacts_keyring/plugin.py
34 9 3
def __init__()
in src/artifacts_keyring/plugin.py
33 5 1
16 1 1
def get_credential()
in src/artifacts_keyring/__init__.py
14 6 3
def get_credentials()
in src/artifacts_keyring/plugin.py
9 10 2
8 2 1
def get_password()
in src/artifacts_keyring/__init__.py
8 4 3
def _can_authenticate()
in src/artifacts_keyring/plugin.py
5 3 3
def _is_upload_endpoint()
in src/artifacts_keyring/plugin.py
3 2 2
def __init__()
in src/artifacts_keyring/__init__.py
2 3 1
def set_password()
in src/artifacts_keyring/__init__.py
2 1 4
def delete_password()
in src/artifacts_keyring/__init__.py
2 1 3
def __enter__()
in src/artifacts_keyring/support.py
2 1 1
def __exit__()
in src/artifacts_keyring/support.py
2 1 4