aws-samples / aws-cdk-intro-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 142 files with 8,979 lines of code.
    • 2 very long files (3,677 lines of code)
    • 1 long files (522 lines of code)
    • 4 medium size files (1,074 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (517 lines of code)
    • 131 very small files (3,189 lines of code)
40% | 5% | 11% | 5% | 35%
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
css61% | 8% | 17% | 2% | 9%
html0% | 0% | 0% | 29% | 70%
ts0% | 0% | 0% | 29% | 70%
java0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
cs0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
workshop/static95% | 0% | 0% | 4% | 0%
workshop/themes25% | 11% | 24% | 5% | 32%
cdkworkshop.com0% | 0% | 0% | 59% | 40%
code/java0% | 0% | 0% | 0% | 100%
code/python0% | 0% | 0% | 0% | 100%
code/typescript0% | 0% | 0% | 0% | 100%
code/csharp0% | 0% | 0% | 0% | 100%
workshop/layouts0% | 0% | 0% | 0% | 100%
workshop0% | 0% | 0% | 0% | 100%
workshop/data0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
all.css
in workshop/static/css
2570 -
theme.css
in workshop/themes/learn/static/css
1107 -
nucleus.css
in workshop/themes/learn/static/css
522 -
mermaid.forest.css
in workshop/themes/learn/static/mermaid
340 -
mermaid.dark.css
in workshop/themes/learn/static/mermaid
262 -
mermaid.css
in workshop/themes/learn/static/mermaid
260 -
hugo-theme.css
in workshop/themes/learn/static/css
212 -
cdkworkshop.com.ts
in cdkworkshop.com
144 2
menu.html
in workshop/themes/learn/layouts/partials
142 -
theme-mine.css
in workshop/static/css
124 -
header.html
in workshop/themes/learn/layouts/partials
107 -
header.html
in workshop/layouts/partials
96 -
theme-green.css
in workshop/themes/learn/static/css
90 -
theme-blue.css
in workshop/themes/learn/static/css
90 -
theme-red.css
in workshop/themes/learn/static/css
90 -
children.html
in workshop/themes/learn/layouts/shortcodes
86 -
theme-mine.css
in workshop/themes/learn/exampleSite/static/css
84 -
config.toml
in workshop/themes/learn/exampleSite
84 -
hybrid.css
in workshop/themes/learn/static/css
72 -
atom-one-dark-reasonable.css
in workshop/themes/learn/static/css
70 -
footer.html
in workshop/themes/learn/layouts/partials
66 -
WorkshopPipelineStack.java
in code/java/pipelines-workshop/src/main/java/com/myorg
52 2
pipeline-stack.ts
in code/typescript/pipelines-workshop/lib
52 1
PipelineStack.cs
in code/csharp/pipelines-workshop/src/CdkWorkshop
51 1
pipeline_stack.py
in code/python/pipelines-workshop/cdk_workshop
51 1
HitCounter.java
in code/java/tests-workshop/src/main/java/com/myorg
50 3
pipeline.ts
in cdkworkshop.com
49 1
404.html
in workshop/themes/learn/layouts
48 -
config.toml
in workshop
47 -
CdkWorkshopStack.cs
in code/csharp/pipelines-workshop/src/CdkWorkshop
43 1
hitcounter.py
in code/python/tests-workshop/cdk_workshop
43 3
HitCounter.cs
in code/csharp/main-workshop/src/CdkWorkshop
42 1
HitCounter.cs
in code/csharp/pipelines-workshop/src/CdkWorkshop
42 1
tags.css
in workshop/themes/learn/static/css
42 -
CdkWorkshopStack.java
in code/java/pipelines-workshop/src/main/java/com/myorg
41 2
HitCounter.java
in code/java/main-workshop/src/main/java/com/myorg
40 3
HitCounter.java
in code/java/pipelines-workshop/src/main/java/com/myorg
40 3
auto-complete.css
in workshop/themes/learn/static/css
40 -
logo.html
in workshop/themes/learn/exampleSite/layouts/partials
37 -
HitCounterProps.java
in code/java/tests-workshop/src/main/java/com/myorg
36 4
cdk-workshop-stack.ts
in code/typescript/pipelines-workshop/lib
35 1
hitcounter.ts
in code/typescript/tests-workshop/lib
35 1
attachments.html
in workshop/themes/learn/layouts/shortcodes
35 -
hitcounter.py
in code/python/pipelines-workshop/cdk_workshop
34 3
cdk_workshop_stack.py
in code/python/pipelines-workshop/cdk_workshop
34 3
CdkWorkshopStack.cs
in code/csharp/main-workshop/src/CdkWorkshop
33 1
CdkWorkshopStack.java
in code/java/main-workshop/src/main/java/com/myorg
32 2
CdkWorkshopStack.java
in code/java/tests-workshop/src/main/java/com/myorg
32 2
hitcounter.py
in code/python/main-workshop/cdk_workshop
31 3
guardduty.ts
in cdkworkshop.com
30 1
Files With Most Units (Top 20)
File# lines# units
HitCounterProps.java
in code/java/tests-workshop/src/main/java/com/myorg
36 4
HitCounter.java
in code/java/main-workshop/src/main/java/com/myorg
40 3
HitCounterProps.java
in code/java/main-workshop/src/main/java/com/myorg
26 3
HitCounter.java
in code/java/pipelines-workshop/src/main/java/com/myorg
40 3
HitCounterProps.java
in code/java/pipelines-workshop/src/main/java/com/myorg
26 3
HitCounter.java
in code/java/tests-workshop/src/main/java/com/myorg
50 3
hitcounter.py
in code/python/main-workshop/cdk_workshop
31 3
hitcounter.py
in code/python/pipelines-workshop/cdk_workshop
34 3
pipeline_stage.py
in code/python/pipelines-workshop/cdk_workshop
15 3
cdk_workshop_stack.py
in code/python/pipelines-workshop/cdk_workshop
34 3
hitcounter.py
in code/python/tests-workshop/cdk_workshop
43 3
cdkworkshop.com.ts
in cdkworkshop.com
144 2
hash.ts
in cdkworkshop.com
19 2
CdkWorkshopStack.java
in code/java/main-workshop/src/main/java/com/myorg
32 2
WorkshopPipelineStage.java
in code/java/pipelines-workshop/src/main/java/com/myorg
18 2
WorkshopPipelineStack.java
in code/java/pipelines-workshop/src/main/java/com/myorg
52 2
CdkWorkshopStack.java
in code/java/pipelines-workshop/src/main/java/com/myorg
41 2
CdkWorkshopStack.java
in code/java/tests-workshop/src/main/java/com/myorg
32 2
guardduty.ts
in cdkworkshop.com
30 1
pipeline.ts
in cdkworkshop.com
49 1
Files With Long Lines (Top 20)

There are 37 files with lines longer than 120 characters. In total, there are 107 long lines.

File# lines# units# long lines
logo.html
in workshop/themes/learn/exampleSite/layouts/partials
37 - 16
footer.html
in workshop/themes/learn/layouts/partials
66 - 13
children.html
in workshop/themes/learn/layouts/shortcodes
86 - 12
theme.css
in workshop/themes/learn/static/css
1107 - 8
menu.html
in workshop/themes/learn/layouts/partials
142 - 8
header.html
in workshop/themes/learn/layouts/partials
107 - 5
header.html
in workshop/layouts/partials
96 - 4
menu-footer.html
in workshop/themes/learn/exampleSite/layouts/partials
7 - 4
404.html
in workshop/themes/learn/layouts
48 - 4
all.css
in workshop/static/css
2570 - 3
nucleus.css
in workshop/themes/learn/static/css
522 - 2
search.html
in workshop/themes/learn/layouts/partials
16 - 2
index.html
in workshop/themes/learn/layouts
30 - 2
cdkworkshop.com.ts
in cdkworkshop.com
144 2 1
guardduty.ts
in cdkworkshop.com
30 1 1
pipeline.ts
in cdkworkshop.com
49 1 1
hello.js
in code/java/main-workshop/lambda
8 - 1
hello.js
in code/java/pipelines-workshop/lambda
8 - 1
hello.js
in code/java/tests-workshop/lambda
8 - 1
GlobalSuppressions.cs
in code/csharp/main-workshop/src/CdkWorkshop
1 - 1