aws-solutions / amazon-cloudwatch-monitoring-framework
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 34 files with 2,751 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (694 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,377 lines of code)
    • 22 very small files (680 lines of code)
0% | 0% | 25% | 50% | 24%
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% | 26% | 53% | 19%
rb0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
erb0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
resources/lib0% | 0% | 49% | 45% | 5%
services/dashboardHandler/lib0% | 0% | 30% | 52% | 16%
services/tagHandler/lib0% | 0% | 0% | 63% | 36%
services/helper0% | 0% | 0% | 100% | 0%
resources/lib/puma0% | 0% | 0% | 55% | 44%
resources/lib/apache0% | 0% | 0% | 100% | 0%
resources/lib/nginx0% | 0% | 0% | 0% | 100%
services/tagHandler0% | 0% | 0% | 0% | 100%
services/dashboardHandler0% | 0% | 0% | 0% | 100%
services/utils/metrics0% | 0% | 0% | 0% | 100%
resources0% | 0% | 0% | 0% | 100%
services/utils/logger0% | 0% | 0% | 0% | 100%
services/utils/error0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
workload.infra.ts
in source/resources/lib
378 1
puma_exports.ts
in source/services/dashboardHandler/lib/widgets
316 -
framework.infra.ts
in source/resources/lib
193 1
nginx_exports.ts
in source/services/dashboardHandler/lib/widgets
174 -
demo.infra.ts
in source/resources/lib
156 1
apache_exports.ts
in source/services/dashboardHandler/lib/widgets
148 -
EC2Helper.ts
in source/services/tagHandler/lib
133 3
index.ts
in source/services/helper
129 1
puma.demo.ts
in source/resources/lib/puma
116 1
CWHelperAbstract.ts
in source/services/dashboardHandler/lib
115 2
CWWidgetFactory.ts
in source/services/dashboardHandler/lib
110 1
apache.demo.ts
in source/resources/lib/apache
103 1
nginx.demo.ts
in source/resources/lib/nginx
95 1
SSMHelper.ts
in source/services/tagHandler/lib
71 2
SSMHelper.ts
in source/services/dashboardHandler/lib
71 2
generics.ts
in source/services/dashboardHandler/lib
66 -
index.ts
in source/services/tagHandler
43 -
exports.ts
in source/resources/lib
42 -
widget_exports.ts
in source/services/dashboardHandler/lib/widgets
38 -
application_controller.rb
in source/resources/lib/puma/puma.config
33 1
jest.config.js
in source/services/tagHandler
31 -
jest.config.js
in source/services/dashboardHandler
29 -
index.ts
in source/services/utils/metrics
27 2
jest.config.js
in source/resources
24 -
puma.rb
in source/resources/lib/puma/puma.config
21 -
index.ts
in source/services/utils/logger
19 1
index.ts
in source/services/dashboardHandler
17 -
production.rb
in source/resources/lib/puma/puma.config
16 -
page_controller.rb
in source/resources/lib/puma/puma.config
12 2
index.ts
in source/services/utils/error
9 1
exports.ts
in source/services/tagHandler/lib
6 -
statsd_instrument.rb
in source/resources/lib/puma/puma.config
5 -
routes.rb
in source/resources/lib/puma/puma.config
3 -
index.html.erb
in source/resources/lib/puma/puma.config
2 -
Files With Most Units (Top 17)
File# lines# units
EC2Helper.ts
in source/services/tagHandler/lib
133 3
page_controller.rb
in source/resources/lib/puma/puma.config
12 2
SSMHelper.ts
in source/services/tagHandler/lib
71 2
CWHelperAbstract.ts
in source/services/dashboardHandler/lib
115 2
SSMHelper.ts
in source/services/dashboardHandler/lib
71 2
index.ts
in source/services/utils/metrics
27 2
demo.infra.ts
in source/resources/lib
156 1
workload.infra.ts
in source/resources/lib
378 1
nginx.demo.ts
in source/resources/lib/nginx
95 1
apache.demo.ts
in source/resources/lib/apache
103 1
puma.demo.ts
in source/resources/lib/puma
116 1
application_controller.rb
in source/resources/lib/puma/puma.config
33 1
framework.infra.ts
in source/resources/lib
193 1
CWWidgetFactory.ts
in source/services/dashboardHandler/lib
110 1
index.ts
in source/services/helper
129 1
index.ts
in source/services/utils/error
9 1
index.ts
in source/services/utils/logger
19 1
Files With Long Lines (Top 9)

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

File# lines# units# long lines
puma.demo.ts
in source/resources/lib/puma
116 1 13
nginx_exports.ts
in source/services/dashboardHandler/lib/widgets
174 - 8
apache_exports.ts
in source/services/dashboardHandler/lib/widgets
148 - 6
puma_exports.ts
in source/services/dashboardHandler/lib/widgets
316 - 6
nginx.demo.ts
in source/resources/lib/nginx
95 1 3
apache.demo.ts
in source/resources/lib/apache
103 1 3
workload.infra.ts
in source/resources/lib
378 1 2
framework.infra.ts
in source/resources/lib
193 1 2
CWWidgetFactory.ts
in source/services/dashboardHandler/lib
110 1 1