aws-samples / appsync-refarch-realtime
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 17 files with 1,815 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,166 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (158 lines of code)
    • 12 very small files (491 lines of code)
0% | 0% | 64% | 8% | 27%
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
js0% | 0% | 67% | 0% | 32%
yml0% | 0% | 88% | 0% | 11%
yaml0% | 0% | 100% | 0% | 0%
graphql0% | 0% | 0% | 75% | 24%
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
src0% | 0% | 68% | 0% | 31%
amplify/backend/auth/realtime99d78ebe0% | 0% | 100% | 0% | 0%
sam-app0% | 0% | 100% | 0% | 0%
sam-app/get-movie0% | 0% | 100% | 0% | 0%
amplify/backend/api/realtime/build0% | 0% | 0% | 100% | 0%
src/graphql0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
amplify/backend/api/realtime0% | 0% | 0% | 0% | 100%
public0% | 0% | 0% | 0% | 100%
Longest Files (Top 17)
File# lines# units
App.js
in src
418 2
realtime99d78ebe-cloudformation-template.yml
in amplify/backend/auth/realtime99d78ebe
301 -
template.yaml
in sam-app
230 -
app.js
in sam-app/get-movie
217 4
schema.graphql
in amplify/backend/api/realtime/build
158 -
serviceWorker.js
in src
92 4
subscriptions.js
in src/graphql
67 -
mutations.js
in src/graphql
67 7
App.css
in src
60 -
queries.js
in src/graphql
54 4
amplify.yml
in root
39 -
schema.graphql
in root
25 -
schema.graphql
in amplify/backend/api/realtime
25 -
index.html
in public
20 -
AppSync.js
in src
19 -
index.css
in src
13 -
index.js
in src
10 -
Files With Most Units (Top 5)
File# lines# units
mutations.js
in src/graphql
67 7
serviceWorker.js
in src
92 4
queries.js
in src/graphql
54 4
app.js
in sam-app/get-movie
217 4
App.js
in src
418 2
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 38 long lines.

File# lines# units# long lines
App.js
in src
418 2 30
amplify.yml
in root
39 - 5
App.css
in src
60 - 1
index.html
in public
20 - 1
template.yaml
in sam-app
230 - 1