awslabs / serverless-fixity-for-digital-preservation-compliance
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 22 files with 3,058 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (602 lines of code)
    • 4 medium size files (1,288 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (492 lines of code)
    • 13 very small files (676 lines of code)
0% | 19% | 42% | 16% | 22%
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% | 43% | 56% | 0% | 0%
js0% | 0% | 30% | 29% | 40%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
deployment0% | 43% | 56% | 0% | 0%
source/checksum/lib/api0% | 0% | 100% | 0% | 0%
source/checksum/lib/validation0% | 0% | 100% | 0% | 0%
source/checksum/lib/restore0% | 0% | 0% | 100% | 0%
source/custom-resources/lib/shared0% | 0% | 0% | 80% | 19%
source/checksum/lib/algorithm0% | 0% | 0% | 42% | 57%
source/checksum/lib/shared0% | 0% | 0% | 51% | 48%
source/custom-resources/lib/solution0% | 0% | 0% | 0% | 100%
source/checksum0% | 0% | 0% | 0% | 100%
source/custom-resources/lib/sns0% | 0% | 0% | 0% | 100%
source/checksum/lib/metrics0% | 0% | 0% | 0% | 100%
source/checksum/lib/sns0% | 0% | 0% | 0% | 100%
source/custom-resources0% | 0% | 0% | 0% | 100%
Longest Files (Top 22)
File# lines# units
serverless-fixity-for-digital-preservation-compliance-state-machine-stack.yaml
in deployment
602 -
serverless-fixity-for-digital-preservation-compliance.yaml
in deployment
405 -
serverless-fixity-for-digital-preservation-compliance-api-stack.yaml
in deployment
374 -
index.js
in source/checksum/lib/api
260 18
index.js
in source/checksum/lib/validation
249 25
index.js
in source/checksum/lib/restore
155 16
cfResponse.js
in source/custom-resources/lib/shared
121 12
base.js
in source/checksum/lib/algorithm
114 19
baseStateData.js
in source/checksum/lib/shared
102 20
index.js
in source/checksum
93 -
errors.js
in source/checksum/lib/shared
83 9
sha1.js
in source/checksum/lib/algorithm
83 2
md5.js
in source/checksum/lib/algorithm
72 2
sns.js
in source/custom-resources/lib/sns
59 6
metrics.js
in source/custom-resources/lib/solution
50 2
index.js
in source/checksum/lib/metrics
50 2
index.js
in source/custom-resources/lib/solution
48 1
index.js
in source/checksum/lib/sns
41 3
index.js
in source/custom-resources
38 -
mxBaseResponse.js
in source/custom-resources/lib/shared
30 5
index.js
in source/custom-resources/lib/sns
15 -
mxUtils.js
in source/checksum/lib/shared
14 1
Files With Most Units (Top 16)
File# lines# units
index.js
in source/checksum/lib/validation
249 25
baseStateData.js
in source/checksum/lib/shared
102 20
base.js
in source/checksum/lib/algorithm
114 19
index.js
in source/checksum/lib/api
260 18
index.js
in source/checksum/lib/restore
155 16
cfResponse.js
in source/custom-resources/lib/shared
121 12
errors.js
in source/checksum/lib/shared
83 9
sns.js
in source/custom-resources/lib/sns
59 6
mxBaseResponse.js
in source/custom-resources/lib/shared
30 5
index.js
in source/checksum/lib/sns
41 3
metrics.js
in source/custom-resources/lib/solution
50 2
md5.js
in source/checksum/lib/algorithm
72 2
sha1.js
in source/checksum/lib/algorithm
83 2
index.js
in source/checksum/lib/metrics
50 2
index.js
in source/custom-resources/lib/solution
48 1
mxUtils.js
in source/checksum/lib/shared
14 1
Files With Long Lines (Top 8)

There are 8 files with lines longer than 120 characters. In total, there are 22 long lines.

File# lines# units# long lines
serverless-fixity-for-digital-preservation-compliance-state-machine-stack.yaml
in deployment
602 - 6
serverless-fixity-for-digital-preservation-compliance-api-stack.yaml
in deployment
374 - 6
index.js
in source/checksum/lib/api
260 18 3
serverless-fixity-for-digital-preservation-compliance.yaml
in deployment
405 - 3
index.js
in source/custom-resources/lib/solution
48 1 1
index.js
in source/custom-resources
38 - 1
md5.js
in source/checksum/lib/algorithm
72 2 1
sha1.js
in source/checksum/lib/algorithm
83 2 1