aws-samples / amazon-ecs-for-beginners-catsdogs
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
  • 25% duplication:
    • 4,559 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,185 duplicated lines
  • 66 duplicates
system25% (1,185 lines)
Duplication per Extension
css33% (1,089 lines)
html9% (68 lines)
yaml10% (28 lines)
Duplication per Component (primary)
themes/hugo-theme-learn/static/mermaid62% (537 lines)
themes/hugo-theme-learn/static/css20% (468 lines)
themes/hugo-theme-learn/exampleSite/static100% (84 lines)
themes/hugo-theme-learn/layouts/shortcodes15% (28 lines)
static/cloudformation10% (28 lines)
static/code/cats48% (14 lines)
static/code/dogs48% (14 lines)
themes/hugo-theme-learn/layouts/partials2% (6 lines)
themes/hugo-theme-learn/layouts9% (6 lines)
static/code/web0% (0 lines)
themes/hugo-theme-learn0% (0 lines)
themes/hugo-theme-learn/exampleSite/layouts0% (0 lines)
themes/hugo-theme-learn/layouts/_default0% (0 lines)
themes/hugo-theme-learn/i18n0% (0 lines)

Duplication Between Components (50+ lines)

G themes/hugo-theme-learn/exampleSite/static themes/hugo-theme-learn/exampleSite/static themes/hugo-theme-learn/static/css themes/hugo-theme-learn/static/css themes/hugo-theme-learn/exampleSite/static--themes/hugo-theme-learn/static/css 304

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 66 duplicates...
Size#FoldersFilesLinesCode
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
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-blue.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-green.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
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 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
224:252 (11%)
226:254 (8%)
view
15 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
252:270 (5%)
336:350 (4%)
view
15 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.dark.css
252:270 (5%)
254:272 (5%)
view
15 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.dark.css
mermaid.forest.css
254:272 (5%)
336:350 (4%)
view
14 x 2 static/code/cats
static/code/dogs
index.html
index.html
1:14 (48%)
1:14 (48%)
view
14 x 2 themes/hugo-theme-learn/layouts/shortcodes
themes/hugo-theme-learn/layouts/shortcodes
ref.html
relref.html
1:14 (100%)
1:14 (100%)
view
13 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
66:78 (5%)
68:80 (3%)
view
13 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
83:96 (5%)
85:98 (3%)
view
13 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.dark.css
mermaid.forest.css
83:96 (4%)
85:98 (3%)
view
13 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
171:184 (5%)
173:186 (3%)
view
13 x 2 themes/hugo-theme-learn/static/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.dark.css
83:96 (5%)
83:96 (4%)
view