aws-samples / aws-modernization-gitops-with-weaveworks
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
  • 62% duplication:
    • 8,655 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 5,434 duplicated lines
  • 302 duplicates
system62% (5,434 lines)
Duplication per Extension
yaml91% (4,188 lines)
css36% (1,246 lines)
Duplication per Component (primary)
content/30_workshop_03_grc99% (3,868 lines)
public/css23% (582 lines)
public/mermaid62% (537 lines)
content/40_workshop_4_hipo-teams71% (292 lines)
static/css100% (127 lines)
modules/webhosting10% (28 lines)
ROOT0% (0 lines)
public/js0% (0 lines)
modules0% (0 lines)
layouts/partials0% (0 lines)

Duplication Between Components (50+ lines)

G public/css public/css static/css static/css public/css--static/css 461

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 302 duplicates...
Size#FoldersFilesLinesCode
986 x 2 content/30_workshop_03_g...gatekeeper/deploy.files
content/30_workshop_03_grc/deploy.files
required-labels-template.yaml
required-labels-template.yaml
6:1233 (100%)
6:1233 (100%)
view
857 x 2 content/30_workshop_03_g...gatekeeper/deploy.files
content/30_workshop_03_grc/deploy.files
opa-gatekeeper-deployment.yaml
opa-gatekeeper-deployment.yaml
1:857 (100%)
1:857 (100%)
view
127 x 2 public/css
static/css
theme-mine.css
theme-mine.css
2:154 (100%)
2:154 (100%)
view
71 x 2 public/css
public/css
theme-blue.css
theme-green.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
63 x 2 public/mermaid
public/mermaid
mermaid.css
mermaid.forest.css
101:168 (24%)
103:170 (18%)
view
62 x 2 content/40_workshop_4_hi...l-pod-info/deploy.files
content/40_workshop_4_hi...l-pod-info/deploy.files
1-podinfo.yaml
1-podinfo.yaml
101:162 (20%)
181:242 (20%)
view
43 x 2 public/css
public/css
theme-mine.css
theme-red.css
85:132 (33%)
56:103 (47%)
view
43 x 2 public/css
static/css
theme-blue.css
theme-mine.css
56:103 (47%)
85:132 (33%)
view
43 x 2 public/css
static/css
theme-red.css
theme-mine.css
56:103 (47%)
85:132 (33%)
view
43 x 2 public/css
public/css
theme-green.css
theme-mine.css
56:103 (47%)
85:132 (33%)
view
43 x 2 public/css
public/css
theme-blue.css
theme-mine.css
56:103 (47%)
85:132 (33%)
view
43 x 2 public/css
static/css
theme-green.css
theme-mine.css
56:103 (47%)
85:132 (33%)
view
43 x 2 content/40_workshop_4_hi...l-pod-info/deploy.files
content/40_workshop_4_hi...l-pod-info/deploy.files
1-podinfo.yaml
1-podinfo.yaml
43:85 (14%)
123:165 (14%)
view
40 x 2 content/40_workshop_4_hi...l-pod-info/deploy.files
content/40_workshop_4_hi...l-pod-info/deploy.files
1-podinfo.yaml
1-podinfo.yaml
43:82 (13%)
203:242 (13%)
view
34 x 2 public/mermaid
public/mermaid
mermaid.css
mermaid.forest.css
187:222 (13%)
189:224 (10%)
view
32 x 2 content/30_workshop_03_g...gatekeeper/deploy.files
content/30_workshop_03_grc/deploy.files
allowed-repos-template.yaml
allowed-repos-template.yaml
1:35 (100%)
1:35 (100%)
view
31 x 2 public/mermaid
public/mermaid
mermaid.css
mermaid.forest.css
33:63 (11%)
35:65 (9%)
view
29 x 2 public/css
static/css
theme-blue.css
theme-mine.css
19:56 (32%)
19:56 (22%)
view