microsoft / vssetup.powershell
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,079 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 36 duplicated lines
  • 3 duplicates
system3% (36 lines)
Duplication per Extension
cs3% (24 lines)
ps1xml26% (12 lines)
Duplication per Component (primary)
src/VSSetup.PowerShell4% (24 lines)
src/VSSetup.PowerShell/PowerShell5% (12 lines)
ROOT0% (0 lines)
build0% (0 lines)
docker0% (0 lines)
src/VSSetup.PowerShell/Properties0% (0 lines)
tools0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
6 x 2 src/VSSetup.PowerShell/PowerShell
src/VSSetup.PowerShell/PowerShell
Extensions.cs
Extensions.cs
35:42 (16%)
72:79 (16%)
view
6 x 2 src/VSSetup.PowerShell
src/VSSetup.PowerShell
VSSetup.types.ps1xml
VSSetup.types.ps1xml
5:10 (13%)
38:43 (13%)
view
6 x 2 src/VSSetup.PowerShell
src/VSSetup.PowerShell
InstanceComparer.cs
InstanceComparer.cs
25:35 (27%)
49:59 (27%)
view