microsoft / keyper
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 26 units with 366 lines of code in units (52.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (176 lines of code)
    • 11 small units (140 lines of code)
    • 9 very small units (50 lines of code)
0% | 0% | 48% | 38% | 13%
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% | 48% | 38% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
keyper0% | 0% | 49% | 35% | 14%
ROOT0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _get_value()
in keyper/__init__.py
35 3 2
def _get_private_key_name()
in keyper/__init__.py
34 6 1
def add_to_user_search_list()
in keyper/__init__.py
30 5 1
def set_key_partition_list()
in keyper/__init__.py
27 4 2
def list_keychains()
in keyper/__init__.py
27 7 2
def install_cert()
in keyper/__init__.py
23 2 2
def default()
in keyper/__init__.py
17 2 1
def set_password()
in keyper/__init__.py
15 1 0
def set_password()
in keyper/__init__.py
15 1 0
def inline()
in inlinecss.py
13 5 1
def _get_common_name()
in keyper/__init__.py
13 3 1
def create_temporary()
in keyper/__init__.py
12 3 0
def get_password()
in keyper/__init__.py
11 1 0
def delete_password()
in keyper/__init__.py
11 1 0
def delete()
in keyper/__init__.py
11 3 1
def get_password()
in keyper/__init__.py
11 1 0
def delete_password()
in keyper/__init__.py
11 1 0
def unlock()
in keyper/__init__.py
10 2 1
def _get_p12_sha1_hash()
in keyper/__init__.py
7 2 1
def _create_keychain()
in keyper/__init__.py
7 1 0