aws-samples / amazon-aurora-pgpool-example
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
  • 20% duplication:
    • 1,261 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 263 duplicated lines
  • 17 duplicates
system20% (263 lines)
Duplication per Extension
yaml20% (263 lines)
Duplication per Component (primary)
ROOT20% (263 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
30 x 2 ROOT
ROOT
aurora.yaml
master.yaml
18:47 (22%)
138:167 (11%)
view
19 x 2 ROOT
ROOT
master.yaml
pgpool.yaml
138:156 (7%)
61:79 (3%)
view
19 x 2 ROOT
ROOT
aurora.yaml
pgpool.yaml
18:36 (14%)
61:79 (3%)
view
12 x 2 ROOT
ROOT
aurora.yaml
aurora.yaml
78:89 (8%)
91:102 (8%)
view
12 x 2 ROOT
ROOT
aurora.yaml
aurora.yaml
91:102 (8%)
104:115 (8%)
view
12 x 2 ROOT
ROOT
aurora.yaml
aurora.yaml
78:89 (8%)
104:115 (8%)
view
7 x 2 ROOT
ROOT
master.yaml
network.yaml
106:112 (2%)
43:49 (2%)
view
7 x 2 ROOT
ROOT
master.yaml
network.yaml
82:88 (2%)
22:28 (2%)
view
7 x 2 ROOT
ROOT
master.yaml
network.yaml
114:120 (2%)
50:56 (2%)
view
7 x 2 ROOT
ROOT
master.yaml
network.yaml
130:136 (2%)
64:70 (2%)
view
7 x 2 ROOT
ROOT
master.yaml
secgroups.yaml
63:69 (2%)
25:31 (5%)
view
7 x 2 ROOT
ROOT
master.yaml
network.yaml
122:128 (2%)
57:63 (2%)
view
7 x 2 ROOT
ROOT
master.yaml
network.yaml
98:104 (2%)
36:42 (2%)
view
7 x 2 ROOT
ROOT
master.yaml
network.yaml
90:96 (2%)
29:35 (2%)
view
6 x 2 ROOT
ROOT
secgroups.yaml
secgroups.yaml
75:80 (4%)
85:90 (4%)
view
6 x 2 ROOT
ROOT
secgroups.yaml
secgroups.yaml
43:48 (4%)
51:56 (4%)
view
6 x 2 ROOT
ROOT
aurora.yaml
pgpool.yaml
52:57 (4%)
47:52 (1%)
view