aws-samples / cookiecutter-aws-sam-pipeline
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
  • 22% duplication:
    • 468 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 104 duplicated lines
  • 22 duplicates
system22% (104 lines)
Duplication per Extension
yaml25% (104 lines)
Duplication per Component (primary)
ROOT24% (104 lines)
hooks0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
14 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
184:197 (3%)
216:229 (3%)
view
10 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
171:181 (2%)
204:213 (2%)
view
9 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
189:197 (2%)
260:268 (2%)
view
9 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
221:229 (2%)
260:268 (2%)
view
9 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
205:213 (2%)
244:252 (2%)
view
9 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
172:181 (2%)
244:252 (2%)
view
7 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
62:68 (1%)
101:107 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
173:178 (1%)
261:266 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
299:304 (1%)
312:317 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
173:178 (1%)
222:227 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
206:211 (1%)
222:227 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
364:369 (1%)
390:395 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
245:250 (1%)
261:266 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
312:317 (1%)
364:369 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
190:195 (1%)
245:250 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
173:178 (1%)
190:195 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
299:304 (1%)
364:369 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
190:195 (1%)
206:211 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
299:304 (1%)
390:395 (1%)
view
6 x 2 {{cookiecutter.project_name}}
{{cookiecutter.project_name}}
pipeline.yaml
pipeline.yaml
312:317 (1%)
390:395 (1%)
view