aws-samples / amazon-cloudfront-access-logs-queries
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
  • 41% duplication:
    • 687 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 287 duplicated lines
  • 9 duplicates
system41% (287 lines)
Duplication per Extension
yaml52% (287 lines)
Duplication per Component (primary)
ROOT51% (287 lines)
build0% (0 lines)
functions0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
67 x 2 ROOT
ROOT
template.yaml
template.yaml
235:301 (12%)
330:396 (12%)
view
67 x 2 ROOT
ROOT
template.yaml
template.yaml
330:396 (12%)
413:479 (12%)
view
67 x 2 ROOT
ROOT
template.yaml
template.yaml
235:301 (12%)
413:479 (12%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
50:65 (2%)
98:113 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
224:233 (1%)
319:328 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
320:327 (1%)
480:487 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
225:232 (1%)
480:487 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
67:73 (1%)
114:120 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
84:89 (1%)
125:130 (1%)
view