aws-samples / protecting-workloads-workshop
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 110 files with 9,363 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (938 lines of code)
    • 10 medium size files (3,244 lines of codeclsfd_ftr_w_mp_ins)
    • 19 small files (2,624 lines of code)
    • 80 very small files (2,557 lines of code)
0% | 10% | 34% | 28% | 27%
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
yml0% | 90% | 0% | 0% | 9%
less0% | 0% | 40% | 31% | 27%
js0% | 0% | 45% | 33% | 21%
html0% | 0% | 0% | 41% | 58%
php0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
templates0% | 100% | 0% | 0% | 0%
app/html/libs/bootstrap/less0% | 0% | 40% | 31% | 27%
app/html/libs/bootstrap/js0% | 0% | 39% | 39% | 20%
app/html/libs/bootstrap0% | 0% | 94% | 0% | 5%
app/html/libs/bootstrap/grunt0% | 0% | 0% | 40% | 59%
app/html/includes0% | 0% | 0% | 41% | 58%
artifacts0% | 0% | 0% | 0% | 100%
app/html0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
app/html/modules0% | 0% | 0% | 0% | 100%
app/html/assets0% | 0% | 0% | 0% | 100%
app/html/libs/bootstrap/nuget0% | 0% | 0% | 0% | 100%
app/html/status0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
pww-workshop-env-build.yml
in templates
938 -
navbar.less
in app/html/libs/bootstrap/less
478 -
Gruntfile.js
in app/html/libs/bootstrap
440 7
forms.less
in app/html/libs/bootstrap/less
392 -
variables.less
in app/html/libs/bootstrap/less
387 -
tooltip.js
in app/html/libs/bootstrap/js
383 33
glyphicons.less
in app/html/libs/bootstrap/less
283 -
modal.js
in app/html/libs/bootstrap/js
247 21
type.less
in app/html/libs/bootstrap/less
214 -
panels.less
in app/html/libs/bootstrap/less
213 -
carousel.less
in app/html/libs/bootstrap/less
207 -
theme.less
in app/html/libs/bootstrap/less
184 -
vendor-prefixes.less
in app/html/libs/bootstrap/less/mixins
178 -
button-groups.less
in app/html/libs/bootstrap/less
174 -
carousel.js
in app/html/libs/bootstrap/js
168 16
navs.less
in app/html/libs/bootstrap/less
161 -
tables.less
in app/html/libs/bootstrap/less
161 -
responsive-utilities.less
in app/html/libs/bootstrap/less
152 -
bs-lessdoc-parser.js
in app/html/libs/bootstrap/grunt
150 15
dropdowns.less
in app/html/libs/bootstrap/less
147 -
collapse.js
in app/html/libs/bootstrap/js
141 13
product.html
in app/html/includes
124 -
input-groups.less
in app/html/libs/bootstrap/less
122 -
buttons.less
in app/html/libs/bootstrap/less
121 -
scrollspy.js
in app/html/libs/bootstrap/js
119 10
popovers.less
in app/html/libs/bootstrap/less
112 -
grid.less
in app/html/libs/bootstrap/less/mixins
104 -
affix.js
in app/html/libs/bootstrap/js
102 9
tab.js
in app/html/libs/bootstrap/js
102 7
modals.less
in app/html/libs/bootstrap/less
102 -
dropdown.js
in app/html/libs/bootstrap/js
100 8
scaffolding.less
in app/html/libs/bootstrap/less
92 -
tooltip.less
in app/html/libs/bootstrap/less
86 -
change-version.js
in app/html/libs/bootstrap/grunt
86 6
form.html
in app/html/includes
84 -
button.js
in app/html/libs/bootstrap/js
80 6
list-group.less
in app/html/libs/bootstrap/less
79 -
grid-framework.less
in app/html/libs/bootstrap/less/mixins
76 -
pagination.less
in app/html/libs/bootstrap/less
75 -
print.less
in app/html/libs/bootstrap/less
74 -
scanner.py
in artifacts
63 1
popover.js
in app/html/libs/bootstrap/js
61 8
buttons.less
in app/html/libs/bootstrap/less/mixins
55 -
sauce_browsers.yml
in app/html/libs/bootstrap/grunt
55 -
scanner-builder.py
in artifacts
54 1
forms.less
in app/html/libs/bootstrap/less/mixins
54 -
code.less
in app/html/libs/bootstrap/less
52 -
alert.js
in app/html/libs/bootstrap/js
49 5
progress-bars.less
in app/html/libs/bootstrap/less
49 -
media.less
in app/html/libs/bootstrap/less
48 -
Files With Most Units (Top 20)
File# lines# units
tooltip.js
in app/html/libs/bootstrap/js
383 33
modal.js
in app/html/libs/bootstrap/js
247 21
carousel.js
in app/html/libs/bootstrap/js
168 16
bs-lessdoc-parser.js
in app/html/libs/bootstrap/grunt
150 15
collapse.js
in app/html/libs/bootstrap/js
141 13
scrollspy.js
in app/html/libs/bootstrap/js
119 10
affix.js
in app/html/libs/bootstrap/js
102 9
dropdown.js
in app/html/libs/bootstrap/js
100 8
popover.js
in app/html/libs/bootstrap/js
61 8
tab.js
in app/html/libs/bootstrap/js
102 7
Gruntfile.js
in app/html/libs/bootstrap
440 7
button.js
in app/html/libs/bootstrap/js
80 6
change-version.js
in app/html/libs/bootstrap/grunt
86 6
alert.js
in app/html/libs/bootstrap/js
49 5
transition.js
in app/html/libs/bootstrap/js
37 5
output.php
in app/html/modules
20 2
reviews.php
in app/html/modules
17 2
scanner-builder.py
in artifacts
54 1
scanner.py
in artifacts
63 1
bs-commonjs-generator.js
in app/html/libs/bootstrap/grunt
18 1
Files With Long Lines (Top 20)

There are 23 files with lines longer than 120 characters. In total, there are 87 long lines.

File# lines# units# long lines
scanner.py
in artifacts
63 1 16
pww-workshop-env-build.yml
in templates
938 - 12
scanner-builder.py
in artifacts
54 1 10
gradients.less
in app/html/libs/bootstrap/less/mixins
46 - 7
tooltip.js
in app/html/libs/bootstrap/js
383 33 5
Gruntfile.js
in app/html/libs/bootstrap
440 7 5
buttons.less
in app/html/libs/bootstrap/less
121 - 4
product.html
in app/html/includes
124 - 4
index.html
in app/html/includes
39 - 3
MyGet.ps1
in app/html/libs/bootstrap/nuget
6 - 2
forms.less
in app/html/libs/bootstrap/less
392 - 2
theme.less
in app/html/libs/bootstrap/less
184 - 2
pagination.less
in app/html/libs/bootstrap/less
75 - 2
reviews.php
in app/html/modules
17 2 2
header.html
in app/html/includes
23 - 2
form.html
in app/html/includes
84 - 2
mkdocs.yml
in root
47 - 1
form.php
in app/html
28 - 1
scrollspy.js
in app/html/libs/bootstrap/js
119 10 1
modal.js
in app/html/libs/bootstrap/js
247 21 1