aws / aws-ec2-instance-connect-cli
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 38 units with 471 lines of code in units (71.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (204 lines of code)
    • 11 small units (151 lines of code)
    • 21 very small units (116 lines of code)
0% | 0% | 43% | 32% | 24%
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% | 43% | 32% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ec2instanceconnectcli0% | 0% | 44% | 32% | 23%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def get_instance_data()
in ec2instanceconnectcli/ec2_util.py
44 7 2
def main()
in ec2instanceconnectcli/mputty.py
44 9 2
def serialize_key()
in ec2instanceconnectcli/key_utils.py
31 9 4
def _parse_command_flags()
in ec2instanceconnectcli/input_parser.py
29 4 3
def _parse_instance_bundles()
in ec2instanceconnectcli/input_parser.py
28 22 1
def main()
in ec2instanceconnectcli/mops.py
28 5 2
def parseargs()
in ec2instanceconnectcli/input_parser.py
17 2 2
def push_public_key()
in ec2instanceconnectcli/key_publisher.py
17 3 5
def call_ec2()
in ec2instanceconnectcli/EC2InstanceConnectCLI.py
15 8 1
def u()
in ec2instanceconnectcli/py2py3.py
15 4 2
def _is_valid_target()
in ec2instanceconnectcli/input_parser.py
14 10 1
def _get_botocore_session()
in ec2instanceconnectcli/EC2InstanceConnectCLI.py
14 4 2
def invoke_command()
in ec2instanceconnectcli/EC2InstanceConnectCLI.py
13 6 1
def _validate_custom_flags()
in ec2instanceconnectcli/input_parser.py
12 4 1
def _is_valid_ipv4_address()
in ec2instanceconnectcli/input_parser.py
12 4 1
def get_command()
in ec2instanceconnectcli/EC2InstanceConnectCommand.py
11 5 1
def __init__()
in ec2instanceconnectcli/EC2InstanceConnectLogger.py
11 2 2
def u()
in ec2instanceconnectcli/py2py3.py
10 3 2
def convert_pem_to_der()
in ec2instanceconnectcli/key_utils.py
10 2 1
def handle_keys()
in ec2instanceconnectcli/EC2InstanceConnectCLI.py
8 3 1