aws-samples / amazon-location-service-pettracker-demo
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 37 files with 2,650 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (960 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (495 lines of code)
    • 30 very small files (1,195 lines of code)
0% | 0% | 36% | 18% | 45%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
yaml0% | 0% | 100% | 0% | 0%
yml0% | 0% | 93% | 0% | 6%
ts0% | 0% | 30% | 15% | 53%
graphql0% | 0% | 0% | 94% | 5%
jsx0% | 0% | 0% | 43% | 56%
py0% | 0% | 0% | 35% | 64%
js0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 0% | 94% | 0% | 5%
web/amplify/backend0% | 0% | 90% | 0% | 10%
cdk/lib0% | 0% | 30% | 15% | 53%
cdk/lib/position-lambda0% | 0% | 0% | 42% | 57%
web/src/components0% | 0% | 0% | 65% | 34%
emulator0% | 0% | 0% | 100% | 0%
web/src0% | 0% | 0% | 0% | 100%
web/src/graphql0% | 0% | 0% | 0% | 100%
cdk/lib/custom-certificate-handler0% | 0% | 0% | 0% | 100%
cdk/lib/custom-tracker-handler0% | 0% | 0% | 0% | 100%
cdk/lib/tracker-lambda0% | 0% | 0% | 0% | 100%
web/public0% | 0% | 0% | 0% | 100%
cdk0% | 0% | 0% | 0% | 100%
Longest Files (Top 37)
File# lines# units
cloud9-cfn.yaml
in root
418 -
pettracking426fb16c-cloudformation-template.yml
in web/amplify/backend/auth/pettracking426fb16c
324 -
policy-statements.ts
in cdk/lib
218 -
schema.graphql
in cdk/lib/position-lambda
141 -
PetTrackerMap.jsx
in web/src/components
128 -
custom-certificate-resource.ts
in cdk/lib
115 -
pet.py
in emulator
111 3
index.js
in cdk/lib/position-lambda
90 -
App.jsx
in web/src
90 -
custom-tracker-resource.ts
in cdk/lib
82 -
pettracker-position-lambda.ts
in cdk/lib
78 1
pettracker-als-lambda.ts
in cdk/lib
75 1
custom-certificate-lambda.py
in cdk/lib/custom-certificate-handler
68 1
data-ingestion-stack.ts
in cdk/lib
65 1
pipeline-stack.ts
in cdk/lib
59 2
Search.jsx
in web/src/components
51 -
custom-tracker-lambda.py
in cdk/lib/custom-tracker-handler
48 1
mutations.js
in cdk/lib/position-lambda/graphql
42 6
mutations.js
in web/src/graphql
42 6
App.css
in web/src
40 -
subscriptions.js
in cdk/lib/position-lambda/graphql
33 -
subscriptions.js
in web/src/graphql
33 -
cfnresponse.py
in cdk/lib/custom-tracker-handler
30 1
cfnresponse.py
in cdk/lib/custom-certificate-handler
30 1
queries.js
in cdk/lib/position-lambda/graphql
29 4
queries.js
in web/src/graphql
29 4
webapp-stack.ts
in cdk/lib
28 1
lambda_function.py
in cdk/lib/tracker-lambda
27 1
amplify.yml
in root
24 -
add-to-group.js
in web/amplify/backend/function/pettracking426fb16cPostConfirmation/src
22 -
index.html
in web/public
21 -
Header.jsx
in web/src/components
16 -
index.css
in web/src
12 -
index.jsx
in web/src
10 -
schema.graphql
in web/amplify/backend/api/pettracking
8 -
jest.config.js
in cdk
7 -
index.js
in web/amplify/backend/function/pettracking426fb16cPostConfirmation/src
6 -
Files With Most Units (Top 15)
File# lines# units
mutations.js
in cdk/lib/position-lambda/graphql
42 6
mutations.js
in web/src/graphql
42 6
queries.js
in cdk/lib/position-lambda/graphql
29 4
queries.js
in web/src/graphql
29 4
pet.py
in emulator
111 3
pipeline-stack.ts
in cdk/lib
59 2
custom-tracker-lambda.py
in cdk/lib/custom-tracker-handler
48 1
cfnresponse.py
in cdk/lib/custom-tracker-handler
30 1
webapp-stack.ts
in cdk/lib
28 1
custom-certificate-lambda.py
in cdk/lib/custom-certificate-handler
68 1
cfnresponse.py
in cdk/lib/custom-certificate-handler
30 1
pettracker-als-lambda.ts
in cdk/lib
75 1
lambda_function.py
in cdk/lib/tracker-lambda
27 1
pettracker-position-lambda.ts
in cdk/lib
78 1
data-ingestion-stack.ts
in cdk/lib
65 1
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 9 long lines.

File# lines# units# long lines
cloud9-cfn.yaml
in root
418 - 4
pettracking426fb16c-cloudformation-template.yml
in web/amplify/backend/auth/pettracking426fb16c
324 - 4
Search.jsx
in web/src/components
51 - 1