aws-samples / aws-iot-greengrass-v2-using-aws-cdk
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 21 files with 1,476 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (426 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (113 lines of code)
    • 18 very small files (937 lines of code)
0% | 0% | 28% | 7% | 63%
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% | 37% | 9% | 52%
py0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
infra/stack/iot0% | 0% | 69% | 0% | 30%
infra/stack/data0% | 0% | 100% | 0% | 0%
infra/stack/ops0% | 0% | 0% | 100% | 0%
infra/stack/greengrass0% | 0% | 0% | 0% | 100%
lib/template0% | 0% | 0% | 0% | 100%
lib/template/pattern0% | 0% | 0% | 0% | 100%
codes/component/logger_sample0% | 0% | 0% | 0% | 100%
lib/template/construct0% | 0% | 0% | 0% | 100%
codes/lambda/custom_iot_event_msg0% | 0% | 0% | 0% | 100%
lib/template/stack0% | 0% | 0% | 0% | 100%
codes/lambda/custom_gg_comp_deploy0% | 0% | 0% | 0% | 100%
codes/lambda/custom_iot_role_alias0% | 0% | 0% | 0% | 100%
codes/lambda/custom_iot_thing_group0% | 0% | 0% | 0% | 100%
script/thing0% | 0% | 0% | 0% | 100%
script/cicd0% | 0% | 0% | 0% | 100%
infra0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
thing-installer-stack.ts
in infra/stack/iot
215 11
data-pipeline-stack.ts
in infra/stack/data
211 5
cicd-pipeline-stack.ts
in infra/stack/ops
113 5
app-context.ts
in lib/template
98 7
sample-logger-componet-construct.ts
in infra/stack/greengrass/components
95 4
thing-monitor-stack.ts
in infra/stack/iot
94 4
lambda-construct.ts
in lib/template/pattern
87 4
handler.py
in codes/component/logger_sample/src
72 7
component-deployment-stack.ts
in infra/stack/greengrass
71 3
base-construct.ts
in lib/template/construct/base
53 5
handler.py
in codes/lambda/custom_iot_event_msg/src
51 3
base-stack.ts
in lib/template/stack/base
51 5
handler.py
in codes/lambda/custom_gg_comp_deploy/src
47 3
handler.py
in codes/lambda/custom_iot_role_alias/src
47 3
handler.py
in codes/lambda/custom_iot_thing_group/src
43 3
generate-install-gg-config.py
in script/thing
39 1
component-upload-stack.ts
in infra/stack/greengrass
26 2
buildspec_cdk_deploy.yml
in script/cicd
25 -
app-main.ts
in infra
20 -
logger.py
in codes/component/logger_sample/src
11 1
jest.config.js
in root
7 -
Files With Most Units (Top 18)
File# lines# units
thing-installer-stack.ts
in infra/stack/iot
215 11
handler.py
in codes/component/logger_sample/src
72 7
app-context.ts
in lib/template
98 7
base-construct.ts
in lib/template/construct/base
53 5
base-stack.ts
in lib/template/stack/base
51 5
cicd-pipeline-stack.ts
in infra/stack/ops
113 5
data-pipeline-stack.ts
in infra/stack/data
211 5
lambda-construct.ts
in lib/template/pattern
87 4
thing-monitor-stack.ts
in infra/stack/iot
94 4
sample-logger-componet-construct.ts
in infra/stack/greengrass/components
95 4
handler.py
in codes/lambda/custom_iot_thing_group/src
43 3
handler.py
in codes/lambda/custom_gg_comp_deploy/src
47 3
handler.py
in codes/lambda/custom_iot_role_alias/src
47 3
handler.py
in codes/lambda/custom_iot_event_msg/src
51 3
component-deployment-stack.ts
in infra/stack/greengrass
71 3
component-upload-stack.ts
in infra/stack/greengrass
26 2
logger.py
in codes/component/logger_sample/src
11 1
generate-install-gg-config.py
in script/thing
39 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
thing-installer-stack.ts
in infra/stack/iot
215 11 2
cicd-pipeline-stack.ts
in infra/stack/ops
113 5 2
lambda-construct.ts
in lib/template/pattern
87 4 1
app-context.ts
in lib/template
98 7 1
component-deployment-stack.ts
in infra/stack/greengrass
71 3 1
sample-logger-componet-construct.ts
in infra/stack/greengrass/components
95 4 1
buildspec_cdk_deploy.yml
in script/cicd
25 - 1