aws-samples / openshift-on-aws
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 24% duplication:
    • 8,765 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,137 duplicated lines
  • 113 duplicates
system24% (2,137 lines)
Duplication per Extension
css34% (1,167 lines)
adoc23% (902 lines)
html6% (40 lines)
yaml6% (28 lines)
Duplication per Component (primary)
themes/hugo-theme-learn26% (1,135 lines)
content/2-Developer-Track35% (641 lines)
content/3-Administrator-Track16% (169 lines)
content/5-Migration-Track29% (83 lines)
static/css58% (72 lines)
modules/webhosting10% (28 lines)
content/1-Workshop-Setup11% (9 lines)
ROOT0% (0 lines)
resources0% (0 lines)
content/4-ROSA-Track0% (0 lines)
layouts/partials0% (0 lines)

Duplication Between Components (50+ lines)

G static/css static/css themes/hugo-theme-learn themes/hugo-theme-learn static/css--themes/hugo-theme-learn 344 content/2-Developer-Track content/2-Developer-Track content/5-Migration-Track content/5-Migration-Track content/2-Developer-Track--content/5-Migration-Track 166 content/3-Administrator-Track content/3-Administrator-Track content/2-Developer-Track--content/3-Administrator-Track 160 content/3-Administrator-Track--content/5-Migration-Track 160

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 113 duplicates...
Size#FoldersFilesLinesCode
215 x 2 content/2-Developer-Track/3-Automation
content/2-Developer-Track/4-data-has-gravity
adoc
2_source-to-image.adoc
2_source-to-image.adoc
5:301 (98%)
5:301 (98%)
view
84 x 2 themes/hugo-theme-learn/exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-green.css
2:103 (100%)
2:103 (93%)
view
83 x 2 content/2-Developer-Track/1-getting-started
content/5-Migration-Track/1-getting-started
adoc
1_getting_started.adoc
1_getting_started.adoc
1:129 (100%)
1:129 (100%)
view
71 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-blue.css
theme-green.css
27:111 (78%)
27:111 (78%)
view
71 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-green.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-blue.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
65 x 2 themes/hugo-theme-learn/exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-blue.css
27:103 (77%)
27:103 (72%)
view
65 x 2 themes/hugo-theme-learn/exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-red.css
27:103 (77%)
27:103 (72%)
view
63 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
101:168 (24%)
103:170 (18%)
view
53 x 2 content/2-Developer-Track/1-getting-started
content/3-Administrator-Track/1-getting-started
adoc
1_getting_started.adoc
1_getting_started.adoc
1:83 (63%)
1:83 (66%)
view
53 x 2 content/3-Administrator-Track/1-getting-started
content/5-Migration-Track/1-getting-started
adoc
1_getting_started.adoc
1_getting_started.adoc
1:83 (66%)
1:83 (63%)
view
43 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-red.css
85:132 (34%)
56:103 (47%)
view
43 x 2 static/css
themes/hugo-theme-learn/exampleSite/static/css
theme-mine.css
theme-mine.css
85:132 (34%)
56:103 (51%)
view
43 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-green.css
85:132 (34%)
56:103 (47%)
view
43 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-blue.css
85:132 (34%)
56:103 (47%)
view
37 x 2 content/2-Developer-Trac...-Applications-OpenShift
content/2-Developer-Track/4-data-has-gravity
adoc
3_source-to-image.adoc
2_source-to-image.adoc
23:74 (38%)
25:76 (16%)
view
37 x 2 content/2-Developer-Trac...-Applications-OpenShift
content/2-Developer-Track/3-Automation
adoc
3_source-to-image.adoc
2_source-to-image.adoc
23:74 (38%)
25:76 (16%)
view
34 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
187:222 (13%)
189:224 (10%)
view
31 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
33:63 (11%)
35:65 (9%)
view
29 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-blue.css
19:56 (23%)
19:56 (32%)
view