microsoft / OMS-docker
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
  • 89% duplication:
    • 312 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 278 duplicated lines
  • 27 duplicates
system89% (278 lines)
Duplication per Extension
yaml89% (278 lines)
Duplication per Component (primary)
Kubernetes86% (114 lines)
OpenShift91% (106 lines)
Kubernetes/windows90% (58 lines)

Duplication Between Components (50+ lines)

G Kubernetes Kubernetes Kubernetes/windows Kubernetes/windows Kubernetes--Kubernetes/windows 145 OpenShift OpenShift Kubernetes--OpenShift 108 Kubernetes/windows--OpenShift 90

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 27 duplicates...
Size#FoldersFilesLinesCode
30 x 2 Kubernetes
Kubernetes/windows
omsagent-ds-secrets.yaml
ws-omsagent-de-secrets.yaml
12:41 (49%)
12:41 (53%)
view
22 x 2 OpenShift
OpenShift
ocp-ds-omsagent.yaml
ocp-omsagent.yaml
1:22 (40%)
1:22 (40%)
view
21 x 2 Kubernetes
Kubernetes
omsagent-ds-secrets.yaml
omsagent.yaml
32:53 (34%)
34:55 (33%)
view
17 x 2 Kubernetes/windows
OpenShift
ws-omsagent-de-secrets.yaml
ocp-ds-omsagent.yaml
29:45 (30%)
33:49 (30%)
view
15 x 2 Kubernetes
OpenShift
omsagent.yaml
ocp-omsagent.yaml
17:31 (23%)
23:37 (27%)
view
14 x 2 OpenShift
OpenShift
ocp-ds-omsagent.yaml
ocp-omsagent.yaml
36:49 (25%)
38:51 (25%)
view
14 x 2 Kubernetes/windows
OpenShift
ws-omsagent-de-secrets.yaml
ocp-omsagent.yaml
32:45 (25%)
38:51 (25%)
view
13 x 2 Kubernetes
OpenShift
omsagent-ds-secrets.yaml
ocp-ds-omsagent.yaml
29:41 (21%)
33:45 (23%)
view
13 x 2 Kubernetes
Kubernetes/windows
omsagent-ds-secrets.yaml
ws-omsagent-de-secrets.yaml
50:62 (21%)
42:54 (23%)
view
12 x 2 Kubernetes
Kubernetes
omsagent-ds-secrets.yaml
omsagent.yaml
17:28 (19%)
22:33 (19%)
view
12 x 2 Kubernetes
Kubernetes/windows
omsagent.yaml
ws-omsagent-de-secrets.yaml
22:33 (19%)
17:28 (21%)
view
10 x 2 Kubernetes
OpenShift
omsagent-ds-secrets.yaml
ocp-omsagent.yaml
32:41 (16%)
38:47 (18%)
view
10 x 2 Kubernetes
OpenShift
omsagent-ds-secrets.yaml
ocp-omsagent.yaml
17:26 (16%)
28:37 (18%)
view
10 x 2 Kubernetes
Kubernetes/windows
omsagent.yaml
ws-omsagent-de-secrets.yaml
34:43 (15%)
32:41 (17%)
view
10 x 2 Kubernetes
OpenShift
omsagent-ds-secrets.yaml
ocp-ds-omsagent.yaml
17:26 (16%)
23:32 (18%)
view
10 x 2 Kubernetes
OpenShift
omsagent.yaml
ocp-ds-omsagent.yaml
22:31 (15%)
23:32 (18%)
view
10 x 2 Kubernetes/windows
OpenShift
ws-omsagent-de-secrets.yaml
ocp-omsagent.yaml
17:26 (17%)
28:37 (18%)
view
10 x 2 OpenShift
OpenShift
ocp-ds-omsagent.yaml
ocp-omsagent.yaml
23:32 (18%)
28:37 (18%)
view
10 x 2 Kubernetes/windows
OpenShift
ws-omsagent-de-secrets.yaml
ocp-ds-omsagent.yaml
17:26 (17%)
23:32 (18%)
view
10 x 2 Kubernetes
OpenShift
omsagent.yaml
ocp-omsagent.yaml
34:43 (15%)
38:47 (18%)
view