awslabs / web-client-for-aws-transfer-family
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 76 units with 1,178 lines of code in units (49.0% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (136 lines of code)
    • 22 medium size units (634 lines of code)
    • 14 small units (206 lines of code)
    • 38 very small units (202 lines of code)
0% | 11% | 53% | 17% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 18% | 60% | 8% | 12%
ts0% | 0% | 42% | 32% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambda0% | 30% | 47% | 11% | 10%
backend/src0% | 11% | 68% | 6% | 13%
frontend/src/app/pages/sftp-main0% | 0% | 50% | 32% | 17%
frontend/src/app/service0% | 0% | 0% | 40% | 60%
frontend/src/app0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in source/lambda/TransferMiscConfigLambdaFunction.py
83 11 2
def upload()
in source/backend/src/transfer_sftp_backend.py
53 6 0
def download()
in source/backend/src/transfer_sftp_backend.py
50 7 0
def list_child_nodes()
in source/backend/src/transfer_sftp_backend.py
45 12 0
newFolderCreate()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
40 1 0
def rename()
in source/backend/src/transfer_sftp_backend.py
39 6 0
def auth_with_cognito()
in source/lambda/SFTPCustomAuthLambdaFunction.py
37 7 3
def crossdomain()
in source/backend/src/transfer_sftp_backend.py
34 16 6
onFolderPathSelect()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
33 2 1
def authenticate()
in source/backend/src/transfer_sftp_backend.py
29 4 0
def health_check()
in source/backend/src/transfer_sftp_backend.py
28 2 0
def delete()
in source/backend/src/transfer_sftp_backend.py
25 5 0
def send()
in source/lambda/cfnresponse.py
25 4 7
onSubmit()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
24 1 0
def number_of_child_nodes()
in source/backend/src/transfer_sftp_backend.py
24 2 0
getDocIcon()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
23 2 1
getDocIconColor()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
23 2 1
ngOnInit()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
23 2 0
onFolderPathExpand()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
23 2 1
def create_folder()
in source/backend/src/transfer_sftp_backend.py
23 4 0