awslabs / aws-blueprints
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
  • 7% duplication:
    • 456 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 35 duplicated lines
  • 10 duplicates
system7% (35 lines)
Duplication per Extension
yaml7% (35 lines)
Duplication per Component (primary)
deployment7% (35 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
80:86 (4%)
101:107 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
143:149 (4%)
164:170 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
101:107 (4%)
143:149 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
101:107 (4%)
164:170 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
101:107 (4%)
122:128 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
80:86 (4%)
164:170 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
80:86 (4%)
143:149 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
80:86 (4%)
122:128 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
122:128 (4%)
143:149 (4%)
view
7 x 2 deployment
deployment
aws-blueprints.yaml
aws-blueprints.yaml
122:128 (4%)
164:170 (4%)
view