aws-quickstart / quickstart-kubernetes-resource-provider
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 41 units with 373 lines of code in units (23.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (132 lines of code)
    • 9 small units (123 lines of code)
    • 28 very small units (118 lines of code)
0% | 0% | 35% | 32% | 31%
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% | 35% | 32% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
apply/src/awsqs_kubernetes_resource0% | 0% | 39% | 32% | 27%
get/src/awsqs_kubernetes_get0% | 0% | 0% | 33% | 66%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def put_function()
in apply/src/awsqs_kubernetes_resource/vpc.py
49 6 2
def run_command()
in apply/src/awsqs_kubernetes_resource/utils.py
33 10 3
def handler_init()
in apply/src/awsqs_kubernetes_resource/utils.py
29 11 4
def stabilize_job()
in apply/src/awsqs_kubernetes_resource/utils.py
21 11 4
def this_invoke_is_inside_vpc()
in apply/src/awsqs_kubernetes_resource/vpc.py
17 5 2
def update_function_config()
in apply/src/awsqs_kubernetes_resource/vpc.py
16 5 2
def create_kubeconfig()
in apply/src/awsqs_kubernetes_resource/utils.py
15 2 2
def invoke_function()
in apply/src/awsqs_kubernetes_resource/vpc.py
15 4 3
def kubectl_get()
in get/src/awsqs_kubernetes_get/handlers.py
14 2 2
def get_model()
in apply/src/awsqs_kubernetes_resource/utils.py
13 4 2
def s3_get()
in apply/src/awsqs_kubernetes_resource/utils.py
11 2 2
def http_get()
in apply/src/awsqs_kubernetes_resource/utils.py
11 3 1
def generate_name()
in apply/src/awsqs_kubernetes_resource/utils.py
11 5 3
def proxy_call()
in apply/src/awsqs_kubernetes_resource/vpc.py
10 2 4
def proxy_wrap()
in apply/src/awsqs_kubernetes_resource/utils.py
9 2 2
def build_model()
in apply/src/awsqs_kubernetes_resource/utils.py
7 4 2
def add_idempotency_token()
in apply/src/awsqs_kubernetes_resource/utils.py
6 3 2
def delete_function()
in apply/src/awsqs_kubernetes_resource/vpc.py
6 2 2
def log_output()
in apply/src/awsqs_kubernetes_resource/utils.py
5 3 1
def create_handler()
in apply/src/awsqs_kubernetes_resource/handlers.py
4 1 0