aws-samples / containerized-game-servers
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
  • 58% duplication:
    • 2,310 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,348 duplicated lines
  • 83 duplicates
system58% (1,348 lines)
Duplication per Extension
yaml70% (1,187 lines)
cfg36% (106 lines)
yml77% (55 lines)
Duplication per Component (primary)
lumberyard-sample/infra87% (1,111 lines)
lumberyard-sample/MultiplayerSample_pc_Paks_Dedicated36% (106 lines)
lumberyard-sample/ci21% (55 lines)
udp-nlb-sample/nginx-inject-sidecar19% (38 lines)
udp-nlb-sample/nginx-static-sidecar50% (38 lines)
NodePortController0% (0 lines)
NodePortController/src0% (0 lines)
workshop/eks0% (0 lines)
udp-nlb-sample0% (0 lines)
udp-nlb-sample/stk0% (0 lines)

Duplication Between Components (50+ lines)

G udp-nlb-sample/nginx-inject-sidecar udp-nlb-sample/nginx-inject-sidecar udp-nlb-sample/nginx-static-sidecar udp-nlb-sample/nginx-static-sidecar udp-nlb-sample/nginx-inject-sidecar--udp-nlb-sample/nginx-static-sidecar 76

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 83 duplicates...
Size#FoldersFilesLinesCode
406 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
fluentd.yaml
185:618 (71%)
1:434 (100%)
view
78 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
cwagent-daemonset.yaml
86:169 (13%)
2:85 (100%)
view
43 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
cwagent-serviceaccount.yaml
11:55 (7%)
2:46 (100%)
view
25 x 2 lumberyard-sample/Multip...ample_pc_Paks_Dedicated
lumberyard-sample/Multip...ample_pc_Paks_Dedicated
cfg
system_appletv_ios.cfg
system_ios_ios.cfg
14:44 (59%)
16:46 (56%)
view
21 x 2 udp-nlb-sample/nginx-inject-sidecar
udp-nlb-sample/nginx-static-sidecar
stknlb-injected-tcphealth-sidecar.yaml
stknlb-static-tcphealth-sidecar.yaml
42:62 (30%)
54:74 (27%)
view
17 x 2 lumberyard-sample/Multip...ample_pc_Paks_Dedicated
lumberyard-sample/Multip...ample_pc_Paks_Dedicated
cfg
system_buildshaderpak_dx11.cfg
system_buildshaderpak_gl4.cfg
1:17 (73%)
1:17 (73%)
view
16 x 2 lumberyard-sample/ci
lumberyard-sample/ci
buildspec.yml
ci-buildspec.yml
10:25 (66%)
10:25 (66%)
view
14 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
cwagent-configmap.yaml
68:81 (2%)
8:21 (77%)
view
11 x 2 lumberyard-sample/infra
lumberyard-sample/infra
fluentd.yaml
fluentd.yaml
176:186 (2%)
334:344 (2%)
view
11 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
fluentd.yaml
360:370 (1%)
334:344 (2%)
view
11 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
amazon-cloudwatch-container-insights....
360:370 (1%)
518:528 (1%)
view
11 x 2 lumberyard-sample/infra
lumberyard-sample/infra
fluentbit-ds-firehose.yaml
fluentd.yaml
11:21 (10%)
11:21 (2%)
view
11 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
fluentbit-ds-firehose.yaml
195:205 (1%)
11:21 (10%)
view
11 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
fluentd.yaml
518:528 (1%)
176:186 (2%)
view
9 x 2 udp-nlb-sample/nginx-inject-sidecar
udp-nlb-sample/nginx-static-sidecar
stknlb-injected-tcphealth-sidecar.yaml
stknlb-static-tcphealth-sidecar.yaml
14:23 (12%)
14:23 (11%)
view
9 x 2 lumberyard-sample/infra
lumberyard-sample/infra
fluentd.yaml
fluentd.yaml
130:139 (2%)
159:168 (2%)
view
9 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
fluentd.yaml
343:352 (1%)
130:139 (2%)
view
9 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
fluentd.yaml
240:249 (1%)
70:79 (2%)
view
9 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
fluentd.yaml
254:263 (1%)
56:65 (2%)
view
9 x 2 lumberyard-sample/infra
lumberyard-sample/infra
amazon-cloudwatch-container-insights....
amazon-cloudwatch-container-insights....
314:323 (1%)
343:352 (1%)
view