aws-samples / aws-modernization-with-sysdig
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
  • 73% duplication:
    • 9,475 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 6,942 duplicated lines
  • 303 duplicates
system73% (6,942 lines)
Duplication per Extension
css100% (6,732 lines)
yaml10% (104 lines)
html9% (64 lines)
toml8% (42 lines)
Duplication per Component (primary)
themes/hugo-theme-learn77% (3,333 lines)
public/css100% (2,462 lines)
public/mermaid100% (862 lines)
static/css100% (127 lines)
code-samples/cloudformation10% (76 lines)
pipeline/webhosting10% (28 lines)
hugo-docs-content35% (21 lines)
ROOT14% (21 lines)
public31% (12 lines)
public/js0% (0 lines)
code-samples/codebuild0% (0 lines)
layouts/partials0% (0 lines)

Duplication Between Components (50+ lines)

G public/css public/css themes/hugo-theme-learn themes/hugo-theme-learn public/css--themes/hugo-theme-learn 4826 static/css static/css public/css--static/css 461 public/mermaid public/mermaid public/mermaid--themes/hugo-theme-learn 1724 static/css--themes/hugo-theme-learn 344

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 303 duplicates...
Size#FoldersFilesLinesCode
1107 x 2 public/css
themes/hugo-theme-learn/static/css
theme.css
theme.css
1:1136 (100%)
1:1136 (100%)
view
522 x 2 public/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
1:615 (100%)
1:615 (100%)
view
340 x 2 public/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.forest.css
mermaid.forest.css
4:356 (100%)
4:356 (100%)
view
262 x 2 public/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.dark.css
mermaid.dark.css
4:278 (100%)
4:278 (100%)
view
260 x 2 public/mermaid
themes/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.css
4:276 (100%)
4:276 (100%)
view
212 x 2 public/css
themes/hugo-theme-learn/static/css
hugo-theme.css
hugo-theme.css
6:254 (100%)
6:254 (100%)
view
127 x 2 public/css
static/css
theme-mine.css
theme-mine.css
2:154 (100%)
2:154 (100%)
view
90 x 2 public/css
themes/hugo-theme-learn/static/css
theme-blue.css
theme-blue.css
2:111 (100%)
2:111 (100%)
view
90 x 2 public/css
themes/hugo-theme-learn/static/css
theme-red.css
theme-red.css
2:111 (100%)
2:111 (100%)
view
90 x 2 public/css
themes/hugo-theme-learn/static/css
theme-green.css
theme-green.css
2:111 (100%)
2:111 (100%)
view
84 x 2 public/css
themes/hugo-theme-learn/exampleSite/static/css
theme-green.css
theme-mine.css
2:103 (93%)
2:103 (100%)
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
72 x 2 public/css
themes/hugo-theme-learn/static/css
hybrid.css
hybrid.css
8:102 (100%)
8:102 (100%)
view
71 x 2 public/css
themes/hugo-theme-learn/static/css
theme-green.css
theme-blue.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-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 public/css
themes/hugo-theme-learn/static/css
theme-red.css
theme-blue.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 public/css
public/css
theme-green.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 public/css
public/css
theme-blue.css
theme-red.css
27:111 (78%)
27:111 (78%)
view