aws-solutions / smart-product-solution
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 102 files with 17,152 lines of code.
    • 2 very long files (4,038 lines of code)
    • 5 long files (2,945 lines of code)
    • 18 medium size files (5,626 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,027 lines of code)
    • 63 very small files (2,516 lines of code)
23% | 17% | 32% | 11% | 14%
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
css80% | 19% | 0% | 0% | 0%
jsx30% | 23% | 36% | 2% | 6%
ts0% | 39% | 32% | 23% | 4%
js0% | 11% | 47% | 12% | 28%
scss0% | 0% | 40% | 31% | 27%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/console/src37% | 15% | 26% | 9% | 10%
deployment/custom-deployment/lib0% | 39% | 32% | 23% | 4%
source/services/api0% | 24% | 38% | 11% | 24%
source/resources/helper0% | 0% | 92% | 0% | 7%
source/resources/cicd0% | 0% | 100% | 0% | 0%
source/resources/authorizer0% | 0% | 100% | 0% | 0%
source/services/notification0% | 0% | 0% | 83% | 16%
source/services/jitr0% | 0% | 0% | 58% | 41%
source/services/event-proxy0% | 0% | 0% | 0% | 100%
source/services/command-status0% | 0% | 0% | 0% | 100%
deployment/manifest-generator0% | 0% | 0% | 0% | 100%
source/resources/cognito0% | 0% | 0% | 0% | 100%
source/resources/utils0% | 0% | 0% | 0% | 100%
source/resources/usage-metrics0% | 0% | 0% | 0% | 100%
source/console/public0% | 0% | 0% | 0% | 100%
source/services/telemetry0% | 0% | 0% | 0% | 100%
source/resources/logger0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
light-bootstrap-dashboard-react.css
in source/console/src/assets/css
2664 -
DeviceDetail.jsx
in source/console/src/views
1374 -
smart-product-api.ts
in deployment/custom-deployment/lib
688 2
pe-icon-7-stroke.css
in source/console/src/assets/css
628 -
Variables.jsx
in source/console/src/variables
566 -
event.js
in source/services/api/event/lib
547 15
History.jsx
in source/console/src/views
516 -
Alerts.jsx
in source/console/src/views
500 -
UserSetting.jsx
in source/console/src/views
462 -
_responsive.scss
in source/console/src/assets/sass/lbd
407 -
DeviceRegistration.jsx
in source/console/src/views
370 -
command.js
in source/services/api/command/lib
370 12
smart-product-solution-stack.ts
in deployment/custom-deployment/lib
353 1
Devices.jsx
in source/console/src/views
334 -
_checkbox-radio-switch.scss
in source/console/src/assets/sass/lbd
321 -
index.js
in source/resources/cicd
320 9
iot-helper.js
in source/resources/helper/lib
286 7
registration.js
in source/services/api/registration/lib
278 10
s3-helper.js
in source/resources/helper/lib
256 7
auth.common.js
in source/resources/authorizer
256 7
_navbars.scss
in source/console/src/assets/sass/lbd
255 -
index.js
in source/resources/helper
242 3
smart-product-event.ts
in deployment/custom-deployment/lib
208 3
device.js
in source/services/api/device/lib
205 7
_cards.scss
in source/console/src/assets/sass/lbd
203 -
alert.js
in source/services/notification/lib
188 5
_variables.scss
in source/console/src/assets/sass/lbd
179 -
_chartist.scss
in source/console/src/assets/sass/lbd
178 -
_sidebar-and-main-panel.scss
in source/console/src/assets/sass/lbd
168 -
_vendor-prefixes.scss
in source/console/src/assets/sass/lbd/mixins
164 -
smart-product-owner-web-app.ts
in deployment/custom-deployment/lib
152 1
jitrHelper.js
in source/services/jitr/lib
147 6
app.js
in source/services/api/event/lib
146 -
_inputs.scss
in source/console/src/assets/sass/lbd
126 -
smart-product-telemetry.ts
in deployment/custom-deployment/lib
125 2
smart-product-jitr.ts
in deployment/custom-deployment/lib
122 2
Admin.jsx
in source/console/src/layouts
118 -
status.js
in source/services/api/status/lib
111 3
_dropdown.scss
in source/console/src/assets/sass/lbd
103 -
app.js
in source/services/api/command/lib
97 -
message.js
in source/services/event-proxy/lib
97 3
_buttons.scss
in source/console/src/assets/sass/lbd
95 -
AdminNavbarLinks.jsx
in source/console/src/components/Navbars
93 -
index.js
in source/services/jitr/lib
92 1
admin.js
in source/services/api/admin/lib
91 4
app.js
in source/services/api/device/lib
91 -
_typography.scss
in source/console/src/assets/sass/lbd
82 -
_alerts.scss
in source/console/src/assets/sass/lbd
79 -
_custom.scss
in source/console/src/assets/sass/lbd
79 -
app.js
in source/services/api/admin/lib
73 -
Files With Most Units (Top 20)
File# lines# units
event.js
in source/services/api/event/lib
547 15
command.js
in source/services/api/command/lib
370 12
registration.js
in source/services/api/registration/lib
278 10
index.js
in source/resources/cicd
320 9
iot-helper.js
in source/resources/helper/lib
286 7
s3-helper.js
in source/resources/helper/lib
256 7
auth.common.js
in source/resources/authorizer
256 7
device.js
in source/services/api/device/lib
205 7
jitrHelper.js
in source/services/jitr/lib
147 6
alert.js
in source/services/notification/lib
188 5
logger.common.js
in source/resources/logger
26 4
admin.js
in source/services/api/admin/lib
91 4
dynamodb-helper.js
in source/resources/helper/lib
67 3
index.js
in source/resources/helper
242 3
status.js
in source/services/api/status/lib
111 3
message.js
in source/services/event-proxy/lib
97 3
smart-product-event.ts
in deployment/custom-deployment/lib
208 3
index.js
in source/resources/cognito
49 2
metrics.common.js
in source/resources/usage-metrics
40 2
message.js
in source/services/command-status/lib
57 2
Files With Long Lines (Top 20)

There are 28 files with lines longer than 120 characters. In total, there are 105 long lines.

File# lines# units# long lines
DeviceRegistration.jsx
in source/console/src/views
370 - 20
smart-product-api.ts
in deployment/custom-deployment/lib
688 2 15
light-bootstrap-dashboard-react.css
in source/console/src/assets/css
2664 - 10
DeviceDetail.jsx
in source/console/src/views
1374 - 8
UserSetting.jsx
in source/console/src/views
462 - 8
index.js
in source/resources/cicd
320 9 4
Devices.jsx
in source/console/src/views
334 - 3
History.jsx
in source/console/src/views
516 - 3
Alerts.jsx
in source/console/src/views
500 - 3
_chartist.scss
in source/console/src/assets/sass/lbd
178 - 3
smart-product-telemetry.ts
in deployment/custom-deployment/lib
125 2 3
_vendor-prefixes.scss
in source/console/src/assets/sass/lbd/mixins
164 - 2
_chartist.scss
in source/console/src/assets/sass/lbd/mixins
58 - 2
iot-helper.js
in source/resources/helper/lib
286 7 2
index.js
in source/resources/helper
242 3 2
registration.js
in source/services/api/registration/lib
278 10 2
alert.js
in source/services/notification/lib
188 5 2
smart-product-event.ts
in deployment/custom-deployment/lib
208 3 2
smart-product-owner-web-app.ts
in deployment/custom-deployment/lib
152 1 2
_typography.scss
in source/console/src/assets/sass/lbd
82 - 1