aws-quickstart / quickstart-compliance-hipaa
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:
    • 2,278 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 440 duplicated lines
  • 86 duplicates
system19% (440 lines)
Duplication per Extension
yaml19% (440 lines)
Duplication per Component (primary)
templates19% (440 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 86 duplicates...
Size#FoldersFilesLinesCode
14 x 2 templates
templates
compliance-hipaa-config.template.yaml
compliance-hipaa-config.template.yaml
221:234 (3%)
294:307 (3%)
view
13 x 2 templates
templates
compliance-hipaa-management.template....
compliance-hipaa-prod.template.yaml
77:89 (4%)
63:75 (7%)
view
13 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-transit-gateway.temp...
3:15 (7%)
3:15 (3%)
view
12 x 2 templates
templates
compliance-hipaa-management.template....
compliance-hipaa-prod.template.yaml
64:75 (3%)
50:61 (7%)
view
12 x 2 templates
templates
compliance-hipaa-logging.template.yaml
compliance-hipaa-logging.template.yaml
99:110 (2%)
185:196 (2%)
view
12 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-prod.template.yaml
63:74 (7%)
63:74 (7%)
view
12 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-management.template....
63:74 (7%)
77:88 (3%)
view
10 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-prod.template.yaml
52:61 (6%)
52:61 (6%)
view
10 x 2 templates
templates
compliance-hipaa-management.template....
compliance-hipaa-transit-gateway.temp...
3:12 (3%)
3:12 (3%)
view
10 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-prod.template.yaml
3:12 (6%)
3:12 (6%)
view
10 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-management.template....
52:61 (6%)
66:75 (3%)
view
10 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-management.template....
3:12 (6%)
3:12 (3%)
view
10 x 2 templates
templates
compliance-hipaa-config.template.yaml
compliance-hipaa-config.template.yaml
176:185 (2%)
244:253 (2%)
view
10 x 2 templates
templates
compliance-hipaa-prod.template.yaml
compliance-hipaa-transit-gateway.temp...
3:12 (6%)
3:12 (3%)
view
10 x 2 templates
templates
compliance-hipaa-management.template....
compliance-hipaa-prod.template.yaml
3:12 (3%)
3:12 (6%)
view
9 x 2 templates
templates
compliance-hipaa-entrypoint.template....
compliance-hipaa-management.template....
12:20 (2%)
4:12 (2%)
view
9 x 2 templates
templates
compliance-hipaa-entrypoint.template....
compliance-hipaa-transit-gateway.temp...
12:20 (2%)
4:12 (2%)
view
9 x 2 templates
templates
compliance-hipaa-logging.template.yaml
compliance-hipaa-transit-gateway.temp...
8:16 (1%)
4:12 (2%)
view
9 x 2 templates
templates
compliance-hipaa-logging.template.yaml
compliance-hipaa-management.template....
8:16 (1%)
4:12 (2%)
view
9 x 2 templates
templates
compliance-hipaa-dev.template.yaml
compliance-hipaa-logging.template.yaml
4:12 (5%)
8:16 (1%)
view