aws-samples / amazon-elastic-inference-eks
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
  • 19% duplication:
    • 1,234 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 236 duplicated lines
  • 5 duplicates
system19% (236 lines)
Duplication per Extension
yml22% (236 lines)
Duplication per Component (primary)
ROOT19% (236 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
83 x 2 ROOT
ROOT
stack.cfn.yml
stack.cfn.yml
28:110 (8%)
116:198 (8%)
view
14 x 2 ROOT
ROOT
stack.cfn.yml
stack.cfn.yml
741:754 (1%)
771:784 (1%)
view
9 x 2 ROOT
ROOT
stack.cfn.yml
stack.cfn.yml
803:812 (<1%)
837:846 (<1%)
view
6 x 2 ROOT
ROOT
stack.cfn.yml
stack.cfn.yml
787:792 (<1%)
823:828 (<1%)
view
6 x 2 ROOT
ROOT
stack.cfn.yml
stack.cfn.yml
815:820 (<1%)
849:854 (<1%)
view