awslabs / fleetiq-adapter-for-agones
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
  • 19% duplication:
    • 967 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 186 duplicated lines
  • 8 duplicates
system19% (186 lines)
Duplication per Extension
yaml49% (154 lines)
py5% (32 lines)
Duplication per Component (primary)
pubsub87% (61 lines)
pubsub/helm-chart/templates84% (61 lines)
gamelift-daemon/src11% (32 lines)
gamelift-daemon/helm-chart/templates13% (16 lines)
gamelift-daemon/kubernetes-manifests24% (16 lines)
pubsub/src/configmap0% (0 lines)
pubsub/src0% (0 lines)
pubsub/app0% (0 lines)
pubsub/helm-chart0% (0 lines)
gamelift-daemon/src/ec2_metadata0% (0 lines)
gamelift-daemon/helm-chart0% (0 lines)

Duplication Between Components (50+ lines)

G pubsub pubsub pubsub/helm-chart/templates pubsub/helm-chart/templates pubsub--pubsub/helm-chart/templates 122

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
18 x 2 pubsub
pubsub/helm-chart/templates
deployment.yaml
deployment.yaml
1:18 (28%)
1:18 (25%)
view
16 x 2 gamelift-daemon/src
gamelift-daemon/src
main.py
main.py
111:126 (5%)
199:214 (5%)
view
15 x 2 pubsub
pubsub/helm-chart/templates
deployment.yaml
deployment.yaml
49:63 (23%)
49:63 (20%)
view
15 x 2 pubsub
pubsub/helm-chart/templates
deployment.yaml
deployment.yaml
33:47 (23%)
33:47 (20%)
view
10 x 2 gamelift-daemon/helm-chart/templates
gamelift-daemon/kubernetes-manifests
role.yaml
gamelift-daemonset.yaml
5:14 (71%)
43:52 (15%)
view
7 x 2 pubsub
pubsub/helm-chart/templates
deployment.yaml
deployment.yaml
25:31 (11%)
25:31 (9%)
view
6 x 2 gamelift-daemon/helm-chart/templates
gamelift-daemon/kubernetes-manifests
gamelift-daemonset.yaml
gamelift-daemonset.yaml
20:25 (15%)
21:26 (9%)
view
6 x 2 pubsub
pubsub/helm-chart/templates
fleetiqconfig.yaml
deployment.yaml
1:6 (85%)
66:71 (8%)
view