aws-quickstart / quickstart-amazon-rds-postgres
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
  • 39% duplication:
    • 1,094 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 436 duplicated lines
  • 14 duplicates
system39% (436 lines)
Duplication per Extension
yaml39% (436 lines)
Duplication per Component (primary)
templates39% (436 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
44 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
223:266 (9%)
207:250 (6%)
view
31 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
328:358 (6%)
340:370 (4%)
view
22 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
270:291 (4%)
262:283 (3%)
view
16 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
60:75 (3%)
48:63 (2%)
view
16 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
293:308 (3%)
285:300 (2%)
view
16 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
98:113 (3%)
76:91 (2%)
view
15 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
194:208 (3%)
178:192 (2%)
view
11 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
360:370 (2%)
371:381 (1%)
view
11 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
36:46 (2%)
30:40 (1%)
view
10 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
315:324 (2%)
327:336 (1%)
view
7 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
209:215 (1%)
200:206 (1%)
view
7 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
2:8 (1%)
3:9 (1%)
view
6 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
27:32 (1%)
20:25 (<1%)
view
6 x 2 templates
templates
rds_postgres-main.template.yaml
rds_postgres.template.yaml
118:123 (1%)
92:97 (<1%)
view