aws-samples / aws-rapid-prototyping-with-python
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
  • 26% duplication:
    • 342 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 89 duplicated lines
  • 6 duplicates
system26% (89 lines)
Duplication per Extension
yaml44% (89 lines)
Duplication per Component (primary)
ROOT38% (89 lines)
provisioning/lib0% (0 lines)
provisioning0% (0 lines)
app0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
24 x 2 ROOT
ROOT
template.yaml
template.yaml
131:154 (11%)
156:179 (11%)
view
24 x 2 ROOT
ROOT
template.yaml
template.yaml
106:129 (11%)
156:179 (11%)
view
24 x 2 ROOT
ROOT
template.yaml
template.yaml
106:129 (11%)
131:154 (11%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
87:103 (8%)
163:179 (8%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
87:103 (8%)
138:154 (8%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
87:103 (8%)
113:129 (8%)
view