microsoft / axe-pipelines-samples
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
  • 21% duplication:
    • 244 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 52 duplicated lines
  • 4 duplicates
system21% (52 lines)
Duplication per Extension
html75% (28 lines)
yml23% (24 lines)
Duplication per Component (primary)
csharp-selenium-webdriver-sample13% (18 lines)
typescript-selenium-webdriver-sample25% (12 lines)
typescript-playwright-sample/src100% (11 lines)
typescript-selenium-webdriver-sample/src100% (11 lines)
typescript-playwright-sample0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
12 x 2 csharp-selenium-webdriver-sample
typescript-selenium-webdriver-sample
azure-pipelines.yml
azure-pipelines.yml
33:48 (38%)
35:51 (34%)
view
11 x 2 typescript-playwright-sample/src
typescript-selenium-webdriver-sample/src
index.html
index.html
1:12 (100%)
1:12 (100%)
view
6 x 2 csharp-selenium-webdriver-sample
typescript-selenium-webdriver-sample/src
SamplePage.html
index.html
2:8 (40%)
2:8 (54%)
view
6 x 2 csharp-selenium-webdriver-sample
typescript-playwright-sample/src
SamplePage.html
index.html
2:8 (40%)
2:8 (54%)
view