aws-solutions / serverless-image-handler
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 32 files with 2,906 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,627 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (541 lines of code)
    • 24 very small files (738 lines of code)
0% | 0% | 55% | 18% | 25%
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% | 64% | 13% | 22%
html0% | 0% | 0% | 100% | 0%
js0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
image-handler0% | 0% | 89% | 0% | 10%
custom-resource0% | 0% | 97% | 0% | 2%
constructs/lib0% | 0% | 94% | 0% | 5%
demo-ui0% | 0% | 0% | 60% | 39%
constructs/lib/common-resources0% | 0% | 0% | 74% | 25%
constructs/lib/back-end0% | 0% | 0% | 100% | 0%
custom-resource/lib0% | 0% | 0% | 0% | 100%
image-handler/lib0% | 0% | 0% | 0% | 100%
solution-utils0% | 0% | 0% | 0% | 100%
constructs/utils0% | 0% | 0% | 0% | 100%
constructs/lib/front-end0% | 0% | 0% | 0% | 100%
constructs0% | 0% | 0% | 0% | 100%
Longest Files (Top 32)
File# lines# units
index.ts
in source/custom-resource
423 16
image-handler.ts
in source/image-handler
353 7
image-request.ts
in source/image-handler
328 11
thumbor-mapper.ts
in source/image-handler
279 8
serverless-image-stack.ts
in source/constructs/lib
244 1
index.html
in source/demo-ui
197 -
custom-resource-construct.ts
in source/constructs/lib/common-resources/custom-resources
194 8
back-end-construct.ts
in source/constructs/lib/back-end
150 1
index.ts
in source/image-handler
92 4
scripts.js
in source/demo-ui
89 4
interfaces.ts
in source/custom-resource/lib
85 -
common-resources-construct.ts
in source/constructs/lib/common-resources
67 1
interfaces.ts
in source/image-handler/lib
58 -
style.css
in source/demo-ui
42 -
logger.ts
in source/solution-utils
41 3
front-end-construct.ts
in source/constructs/lib/front-end
36 1
enums.ts
in source/image-handler/lib
30 -
aspects.ts
in source/constructs/utils
28 1
types.ts
in source/custom-resource/lib
24 1
utils.ts
in source/constructs/utils
23 2
enums.ts
in source/custom-resource/lib
23 -
types.ts
in source/constructs/lib
15 -
secret-provider.ts
in source/image-handler
15 1
jest.config.js
in source/solution-utils
12 -
jest.config.js
in source/custom-resource
12 -
jest.config.js
in source/constructs
11 -
get-options.ts
in source/solution-utils
9 1
jest.config.js
in source/image-handler
9 -
types.ts
in source/image-handler/lib
8 1
helpers.ts
in source/solution-utils
3 1
index.ts
in source/custom-resource/lib
3 -
index.ts
in source/image-handler/lib
3 -
Files With Most Units (Top 19)
File# lines# units
index.ts
in source/custom-resource
423 16
image-request.ts
in source/image-handler
328 11
custom-resource-construct.ts
in source/constructs/lib/common-resources/custom-resources
194 8
thumbor-mapper.ts
in source/image-handler
279 8
image-handler.ts
in source/image-handler
353 7
scripts.js
in source/demo-ui
89 4
index.ts
in source/image-handler
92 4
logger.ts
in source/solution-utils
41 3
utils.ts
in source/constructs/utils
23 2
helpers.ts
in source/solution-utils
3 1
get-options.ts
in source/solution-utils
9 1
common-resources-construct.ts
in source/constructs/lib/common-resources
67 1
back-end-construct.ts
in source/constructs/lib/back-end
150 1
front-end-construct.ts
in source/constructs/lib/front-end
36 1
serverless-image-stack.ts
in source/constructs/lib
244 1
aspects.ts
in source/constructs/utils
28 1
types.ts
in source/custom-resource/lib
24 1
secret-provider.ts
in source/image-handler
15 1
types.ts
in source/image-handler/lib
8 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 113 long lines.

File# lines# units# long lines
index.html
in source/demo-ui
197 - 25
image-request.ts
in source/image-handler
328 11 19
image-handler.ts
in source/image-handler
353 7 18
serverless-image-stack.ts
in source/constructs/lib
244 1 16
index.ts
in source/custom-resource
423 16 16
custom-resource-construct.ts
in source/constructs/lib/common-resources/custom-resources
194 8 7
back-end-construct.ts
in source/constructs/lib/back-end
150 1 6
index.ts
in source/image-handler
92 4 3
thumbor-mapper.ts
in source/image-handler
279 8 2
front-end-construct.ts
in source/constructs/lib/front-end
36 1 1