aws / efs-utils
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 191 units with 2,807 lines of code in units (68.0% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (201 lines of code)
    • 47 medium size units (1,510 lines of code)
    • 37 small units (511 lines of code)
    • 104 very small units (585 lines of code)
0% | 7% | 53% | 18% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 7% | 53% | 18% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/mount_efs0% | 10% | 51% | 17% | 20%
src/watchdog0% | 0% | 58% | 19% | 22%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
72 14 3
def get_mount_target_in_az()
in src/mount_efs/__init__.py
71 16 4
def start_watchdog()
in src/mount_efs/__init__.py
58 9 1
def match_device()
in src/mount_efs/__init__.py
50 11 3
def publish_cloudwatch_log()
in src/mount_efs/__init__.py
48 12 2
48 5 4
def mount_nfs()
in src/mount_efs/__init__.py
43 6 6
def get_az_id_by_az_name_helper()
in src/mount_efs/__init__.py
43 11 3
def create_cloudwatch_log_group()
in src/mount_efs/__init__.py
41 9 2
def get_log_stream_next_token()
in src/mount_efs/__init__.py
41 8 1
def get_mount_targets_info()
in src/mount_efs/__init__.py
41 8 2
def get_current_local_nfs_mounts()
in src/watchdog/__init__.py
41 14 1
def main()
in src/mount_efs/__init__.py
40 6 0
def check_and_create_private_key()
in src/mount_efs/__init__.py
38 6 1
def get_nfs_mount_options_on_macos()
in src/watchdog/__init__.py
38 6 2
def check_and_create_private_key()
in src/watchdog/__init__.py
38 7 1
def url_request_helper()
in src/mount_efs/__init__.py
37 14 5
def create_cloudwatch_log_stream()
in src/mount_efs/__init__.py
37 8 3
def url_request_helper()
in src/watchdog/__init__.py
37 14 5
def main()
in src/watchdog/__init__.py
36 4 0