microsoft / project-ruby-rails-container
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
  • 28% duplication:
    • 498 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 144 duplicated lines
  • 3 duplicates
system28% (144 lines)
Duplication per Extension
html87% (144 lines)
Duplication per Component (primary)
public87% (144 lines)
app/assets0% (0 lines)
app/channels0% (0 lines)
app/controllers0% (0 lines)
app/helpers0% (0 lines)
app/jobs0% (0 lines)
app/mailers0% (0 lines)
app/models0% (0 lines)
app/views0% (0 lines)
ROOT0% (0 lines)
config0% (0 lines)
config/environments0% (0 lines)
config/initializers0% (0 lines)
config/locales0% (0 lines)
db0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
48 x 2 public
public
404.html
422.html
5:60 (87%)
5:60 (87%)
view
48 x 2 public
public
404.html
500.html
5:60 (87%)
5:60 (88%)
view
48 x 2 public
public
422.html
500.html
5:60 (87%)
5:60 (88%)
view