microsoft / axe-sarif-converter
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
  • 8% duplication:
    • 1,064 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 94 duplicated lines
  • 5 duplicates
system8% (94 lines)
Duplication per Extension
ts9% (94 lines)
Duplication per Component (primary)
src9% (94 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
17 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
32:49 (8%)
31:49 (9%)
view
10 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
73:82 (4%)
75:84 (5%)
view
8 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
87:94 (3%)
88:95 (4%)
view
6 x 2 src
src
result-to-rule-converter.ts
result-to-rule-converter.ts
23:28 (4%)
38:43 (4%)
view
6 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
200:207 (2%)
200:207 (3%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
36:47 
36:47 
view
10 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
37:47 
37:47 
view
9 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
38:47 
38:47 
view
6 x 2 src
src
axe-raw-sarif-converter.ts
sarif-converter.ts
41:47 
41:47 
view