microsoft / webauthntest
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
  • 3% duplication:
    • 1,536 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 60 duplicated lines
  • 6 duplicates
system3% (60 lines)
Duplication per Extension
html9% (32 lines)
js2% (28 lines)
Duplication per Component (primary)
public4% (48 lines)
ROOT2% (12 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
8 x 2 public
public
index.js
index.js
380:388 (1%)
482:490 (1%)
view
7 x 2 public
public
index.html
login.html
1:8 (2%)
1:8 (15%)
view
6 x 2 ROOT
ROOT
app.js
app.js
37:43 (7%)
78:84 (7%)
view
6 x 2 public
public
index.html
index.html
75:83 (1%)
86:94 (1%)
view
6 x 2 public
public
index.html
index.html
86:94 (1%)
220:227 (1%)
view
6 x 2 public
public
index.html
index.html
75:83 (1%)
220:227 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 public
public
index.js
index.js
734:743 
751:760 
view