amazon-connect / amazon-connect-salesforce-scv
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 25 units with 521 lines of code in units (26.2% of code).
    • 1 very long units (170 lines of code)
    • 1 long units (54 lines of code)
    • 5 medium size units (177 lines of code)
    • 5 small units (77 lines of code)
    • 13 very small units (43 lines of code)
32% | 10% | 33% | 14% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py34% | 10% | 30% | 15% | 8%
js0% | 0% | 100% | 0% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Solutions/AWSSCV-VoicemailExpress/Code51% | 16% | 31% | 0% | 0%
Solutions/AWSSCV-DashboardAlarms/Code0% | 0% | 71% | 25% | 3%
Common/AWSSCV-ContactFlowHelper/Code0% | 0% | 34% | 34% | 30%
Solutions/AWSSCV-AgentEventLogger/Code0% | 0% | 0% | 90% | 10%
Common/AWSSCV-SalesforceConfig/Code0% | 0% | 0% | 100% | 0%
Solutions/AWSSCV-CTRLogger/Code0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_packager/awsscv_vmx_packager.py
170 25 2
def lambda_handler()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_transcriber/awsscv_vmx_transcriber.py
54 9 2
def lambda_handler()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_presigner/awsscv_vmx_presigner.py
45 7 2
def format_record()
in Solutions/AWSSCV-DashboardAlarms/Code/awsscv_alarm_to_chatter/awsscv_alarm_to_chatter.py
43 4 1
def get_secret()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_presigner/awsscv_vmx_presigner.py
37 5 0
def lambda_handler()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
29 11 2
async function parseNextFragmentNew()
in Solutions/AWSSCV-VoicemailExpress/Code/awsscv_vmx_kvs_to_s3/awsscv_vmx_kvs_to_s3.js
23 1 3
def split_text()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
18 2 1
def lambda_handler()
in Solutions/AWSSCV-AgentEventLogger/Code/awsscv_ae_logger/awsscv_ae_logger.py
18 9 2
def lambda_handler()
in Common/AWSSCV-SalesforceConfig/Code/awsscv_salesforce_validator/awsscv_salesforce_validator.py
15 2 2
def lambda_handler()
in Solutions/AWSSCV-DashboardAlarms/Code/awsscv_alarm_to_chatter/awsscv_alarm_to_chatter.py
15 4 2
def strip_text()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
11 4 1
def lambda_handler()
in Solutions/AWSSCV-CTRLogger/Code/awsscv_ctr_logger/awsscv_ctr_logger.py
7 6 2
def random_choice()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
4 1 1
def replace_text()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
4 1 1
def log_to_s3()
in Solutions/AWSSCV-CTRLogger/Code/awsscv_ctr_logger/awsscv_ctr_logger.py
4 1 1
def freeform_math()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1
def random_number()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1
def increment_1()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1
def increment_n()
in Common/AWSSCV-ContactFlowHelper/Code/awsscv_contact_flow_helper/awsscv_contact_flow_helper.py
3 1 1