aws / efs-utils
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 191 units with 2,807 lines of code in units (68.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (485 lines of code)
    • 32 simple units (924 lines of code)
    • 148 very simple units (1,398 lines of code)
0% | 0% | 17% | 32% | 49%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 17% | 32% | 49%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/mount_efs0% | 0% | 21% | 32% | 46%
src/watchdog0% | 0% | 8% | 34% | 57%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def check_options_validity()
in src/mount_efs/__init__.py
30 19 1
def get_nfs_mount_options()
in src/mount_efs/__init__.py
29 18 1
def parse_arguments()
in src/mount_efs/__init__.py
27 16 2
def get_mount_target_in_az()
in src/mount_efs/__init__.py
71 16 4
def url_request_helper()
in src/mount_efs/__init__.py
37 14 5
72 14 3
def url_request_helper()
in src/watchdog/__init__.py
37 14 5
def get_current_local_nfs_mounts()
in src/watchdog/__init__.py
41 14 1
def publish_cloudwatch_log()
in src/mount_efs/__init__.py
48 12 2
def match_device()
in src/mount_efs/__init__.py
50 11 3
def get_az_id_by_az_name_helper()
in src/mount_efs/__init__.py
43 11 3
def get_aws_ec2_metadata_token()
in src/mount_efs/__init__.py
35 10 1
def get_aws_ec2_metadata_token()
in src/watchdog/__init__.py
35 10 1
def get_aws_profile()
in src/mount_efs/__init__.py
12 9 2
def start_watchdog()
in src/mount_efs/__init__.py
58 9 1
def create_cloudwatch_log_group()
in src/mount_efs/__init__.py
41 9 2
19 8 2
def is_nfs_mount()
in src/mount_efs/__init__.py
24 8 1
def create_cloudwatch_log_stream()
in src/mount_efs/__init__.py
37 8 3
def get_log_stream_next_token()
in src/mount_efs/__init__.py
41 8 1