awslabs / aws-cloudendure-migration-factory-solution
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 495 units with 13,048 lines of code in units (65.9% of code).
    • 16 very long units (2,062 lines of code)
    • 52 long units (3,635 lines of code)
    • 137 medium size units (4,272 lines of code)
    • 132 small units (1,940 lines of code)
    • 158 very small units (1,139 lines of code)
15% | 27% | 32% | 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
py19% | 35% | 35% | 6% | 3%
js7% | 10% | 26% | 34% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Tools Integration/MGN-Integration17% | 35% | 38% | 5% | 2%
Tools Integration/CE-Integration10% | 36% | 42% | 6% | 3%
frontend/src7% | 10% | 26% | 34% | 21%
backend/lambda_schema_app100% | 0% | 0% | 0% | 0%
backend/lambda_schema_wave100% | 0% | 0% | 0% | 0%
backend/lambda_schema_server100% | 0% | 0% | 0% | 0%
backend/lambda_server_item88% | 0% | 0% | 0% | 11%
backend/lambda_app_item93% | 0% | 0% | 0% | 6%
backend/lambda_wave_item100% | 0% | 0% | 0% | 0%
backend/lambda_ams_wig54% | 0% | 37% | 7% | 0%
backend/policy0% | 46% | 22% | 14% | 16%
backend/lambda_build0% | 62% | 22% | 15% | 0%
backend/lambda_stage_attr0% | 100% | 0% | 0% | 0%
backend/lambda_servers0% | 84% | 0% | 0% | 15%
backend/lambda_apps0% | 91% | 0% | 0% | 8%
backend/lambda_stage0% | 100% | 0% | 0% | 0%
backend/lambda_role_item0% | 100% | 0% | 0% | 0%
backend/lambda_waves0% | 100% | 0% | 0% | 0%
backend/lambda_role0% | 100% | 0% | 0% | 0%
backend/lambda_service_account0% | 0% | 100% | 0% | 0%
backend/lambda_migrationtracker_glue_scriptcopy0% | 0% | 100% | 0% | 0%
backend/lambda_defaultschema0% | 0% | 76% | 23% | 0%
backend/lambda_migrationtracker_glue_execute0% | 0% | 77% | 22% | 0%
backend/lambda_reset0% | 0% | 100% | 0% | 0%
backend/lambda_login0% | 0% | 100% | 0% | 0%
backend/helper0% | 0% | 53% | 46% | 0%
backend/lambda_run_athena_savedquery0% | 0% | 0% | 100% | 0%
backend/lambda_cognitogroups0% | 0% | 0% | 100% | 0%
backend/lambda_auth0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def create_launch_template()
in source/Tools Integration/MGN-Integration/Lambdas/lambda_mgn_template.py
162 45 8
def uploading_data()
in source/Tools Integration/MGN-Integration/MGN-automation-scripts/0-Import-intake-form.py
161 27 3
render()
in source/frontend/src/components/UserTabApp.js
156 20 0
def uploading_data()
in source/Tools Integration/CE-Integration/CE-automation-scripts/0-Import-intake-form.py
149 25 2
def lambda_handler()
in source/backend/lambda_schema_app/lambda_schema_app.py
139 43 2
def main()
in source/Tools Integration/MGN-Integration/MGN-automation-scripts/2-UserMgmt.py
134 29 1
def lambda_handler()
in source/backend/lambda_schema_wave/lambda_schema_wave.py
132 41 2
def lambda_handler()
in source/backend/lambda_schema_server/lambda_schema_server.py
132 41 2
def verify_instance_status()
in source/Tools Integration/MGN-Integration/MGN-automation-scripts/3-Verify-instance-status.py
120 42 3
render()
in source/frontend/src/components/UserListColDialog.js
119 14 0
def lambda_handler()
in source/backend/lambda_server_item/lambda_server_item.py
118 44 2
def verify_instance_status()
in source/Tools Integration/CE-Integration/CE-automation-scripts/3-Verify-instance-status.py
113 35 6
def lambda_handler()
in source/backend/lambda_app_item/lambda_app_item.py
111 39 2
def lambda_handler()
in source/backend/lambda_wave_item/lambda_wave_item.py
109 36 2
def lambda_handler()
in source/backend/lambda_ams_wig/lambda_ams_wig.py
106 21 2
def main()
in source/Tools Integration/CE-Integration/CE-automation-scripts/1-CEAgentInstall.py
101 22 1
def multiprocessing_ce_update()
in source/Tools Integration/CE-Integration/Lambdas/UpdateBlueprint.py
94 28 12
def get_factory_servers()
in source/Tools Integration/MGN-Integration/MGN-automation-scripts/mfcommon.py
93 42 4
def multiprocessing_update()
in source/Tools Integration/MGN-Integration/Lambdas/lambda_mgn_template.py
92 26 6
def verify_replication()
in source/Tools Integration/MGN-Integration/MGN-automation-scripts/2-Verify-replication.py
91 30 2