aws-samples / s3-select-phonebook-search
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
  • 67% duplication:
    • 255 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 171 duplicated lines
  • 7 duplicates
system67% (171 lines)
Duplication per Extension
yaml67% (171 lines)
Duplication per Component (primary)
ROOT67% (171 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
57 x 2 ROOT
ROOT
cloud_formation_template.yaml
template.yaml
66:129 (61%)
53:116 (70%)
view
14 x 2 ROOT
ROOT
packaged.yaml
template.yaml
10:23 (17%)
25:45 (17%)
view
8 x 2 ROOT
ROOT
cloud_formation_template.yaml
packaged.yaml
53:60 (8%)
16:23 (9%)
view
8 x 2 ROOT
ROOT
cloud_formation_template.yaml
template.yaml
53:60 (8%)
38:45 (9%)
view
7 x 2 ROOT
ROOT
cloud_formation_template.yaml
template.yaml
14:27 (7%)
3:15 (8%)
view
7 x 2 ROOT
ROOT
packaged.yaml
template.yaml
31:37 (8%)
59:66 (8%)
view
7 x 2 ROOT
ROOT
cloud_formation_template.yaml
packaged.yaml
72:79 (7%)
31:37 (8%)
view