firebase / firebase-functions
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 106 files with 7,262 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 9 medium size files (2,751 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,077 lines of code)
    • 83 very small files (2,434 lines of code)
0% | 0% | 37% | 28% | 33%
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
ts0% | 0% | 39% | 30% | 29%
js0% | 0% | 59% | 0% | 40%
yaml0% | 0% | 0% | 50% | 49%
hbs0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
mjs0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/v20% | 0% | 48% | 27% | 23%
src0% | 0% | 59% | 11% | 28%
src/providers0% | 0% | 38% | 52% | 8%
src/common0% | 0% | 69% | 0% | 30%
docgen0% | 0% | 96% | 0% | 3%
integration_test/functions0% | 0% | 0% | 41% | 58%
spec/v10% | 0% | 0% | 100% | 0%
docgen/content-sources0% | 0% | 0% | 76% | 23%
spec/fixtures0% | 0% | 0% | 41% | 58%
docgen/theme0% | 0% | 0% | 0% | 100%
src/logger0% | 0% | 0% | 0% | 100%
src/runtime0% | 0% | 0% | 0% | 100%
scripts/publish0% | 0% | 0% | 0% | 100%
spec/v20% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
src/utilities0% | 0% | 0% | 0% | 100%
v10% | 0% | 0% | 0% | 100%
v20% | 0% | 0% | 0% | 100%
mocha0% | 0% | 0% | 0% | 100%
scripts/publish-container0% | 0% | 0% | 0% | 100%
v2/alerts0% | 0% | 0% | 0% | 100%
logger0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
https.ts
in src/common/providers
493 14
cloud-functions.ts
in src
405 11
database.ts
in src/providers
340 12
function-builder.ts
in src
305 13
crashlytics.ts
in src/v2/providers/alerts
276 26
https.ts
in src/v2/providers
270 6
generate-docs.js
in docgen
224 11
analytics.ts
in src/providers
221 14
storage.ts
in src/v2/providers
217 18
index.ts
in integration_test/functions/src
193 2
firestore.ts
in src/providers
192 17
options.ts
in src/v2
181 5
https.ts
in src/providers
167 5
analytics.spec.input.ts
in spec/v1/providers
165 -
storage.ts
in src/providers
162 8
toc.yaml
in docgen/content-sources/v1
141 -
handler-builder.ts
in src
138 23
types.ts
in src/v2/params
132 9
testLab.ts
in src/providers
129 6
pubsub.ts
in src/v2/providers
128 5
pubsub.ts
in src/providers
117 9
testing.ts
in integration_test/functions/src
116 9
mockrequest.ts
in spec/fixtures
116 8
testLab-utils.ts
in integration_test/functions/src
100 4
index.ts
in src/logger
98 8
alerts.ts
in src/v2/providers/alerts
92 3
cloudbuild.yaml
in scripts/publish
91 -
apps.ts
in src
86 9
function-configuration.ts
in src
84 -
billing.ts
in src/v2/providers/alerts
80 7
appDistribution.ts
in src/v2/providers/alerts
79 5
config.ts
in src
78 3
loader.ts
in src/runtime
76 4
encoding.ts
in src/common
76 5
http.ts
in spec/fixtures
72 7
index.ts
in src/v2/params
68 7
remoteConfig.ts
in src/providers
67 3
database-tests.ts
in integration_test/functions/src
66 -
identity.ts
in src/common/providers
66 2
auth-tests.ts
in integration_test/functions/src
64 -
hbs
reflection.hbs
in docgen/theme/templates
64 -
auth.ts
in src/providers
64 5
pubsub-tests.ts
in integration_test/functions/src
63 -
helpers.ts
in spec/v2/providers
51 -
manifest.ts
in src/runtime
49 -
manifest.ts
in src/common
49 -
toc.yaml
in docgen/content-sources/v2
44 -
tweet.js
in scripts
42 2
core.ts
in src/v2
40 -
setup.ts
in src
35 1
Files With Most Units (Top 20)
File# lines# units
crashlytics.ts
in src/v2/providers/alerts
276 26
handler-builder.ts
in src
138 23
storage.ts
in src/v2/providers
217 18
firestore.ts
in src/providers
192 17
analytics.ts
in src/providers
221 14
https.ts
in src/common/providers
493 14
function-builder.ts
in src
305 13
database.ts
in src/providers
340 12
generate-docs.js
in docgen
224 11
cloud-functions.ts
in src
405 11
testing.ts
in integration_test/functions/src
116 9
types.ts
in src/v2/params
132 9
pubsub.ts
in src/providers
117 9
apps.ts
in src
86 9
mockrequest.ts
in spec/fixtures
116 8
index.ts
in src/logger
98 8
storage.ts
in src/providers
162 8
http.ts
in spec/fixtures
72 7
billing.ts
in src/v2/providers/alerts
80 7
index.ts
in src/v2/params
68 7
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 7 long lines.

File# lines# units# long lines
encoding.ts
in src/common
76 5 2
index.ts
in integration_test/functions/src
193 2 1
hbs
default.hbs
in docgen/theme/layouts
30 - 1
analytics.spec.input.ts
in spec/v1/providers
165 - 1
function-builder.ts
in src
305 13 1
setup.ts
in src
35 1 1