microsoft / ExPerfWiz
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
  • 4% duplication:
    • 899 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 5 duplicates
system4% (44 lines)
Duplication per Extension
ps16% (44 lines)
Duplication per Component (primary)
Functions6% (44 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
8 x 2 Functions
Functions
Remove-ExPerfWiz.ps1
Stop-ExPerfwiz.ps1
36:46 (17%)
35:44 (15%)
view
7 x 2 Functions
Functions
Remove-ExPerfWiz.ps1
Start-ExPerfwiz.ps1
38:46 (15%)
36:44 (10%)
view
7 x 2 Functions
Functions
Start-ExPerfwiz.ps1
Stop-ExPerfwiz.ps1
36:44 (10%)
36:44 (13%)
view
6 x 2 Functions
Functions
Get-ExPerfwiz.ps1
Step-ExPerfwizSize.ps1
10:18 (4%)
10:18 (13%)
view
6 x 2 Functions
Functions
Set-Experfwiz.ps1
Start-ExPerfwiz.ps1
50:55 (6%)
33:38 (8%)
view