microsoft / MSBuildSdks
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
  • 12% duplication:
    • 1,176 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 147 duplicated lines
  • 13 duplicates
system12% (147 lines)
Duplication per Extension
yml43% (103 lines)
targets8% (32 lines)
props10% (12 lines)
Duplication per Component (primary)
ROOT33% (103 lines)
src/Traversal/Sdk11% (20 lines)
src/Artifacts/build15% (12 lines)
src/Artifacts/buildMultiTargeting50% (12 lines)
src/Artifacts0% (0 lines)
src/Artifacts/Sdk0% (0 lines)
src/Artifacts/Tasks0% (0 lines)
src/CentralPackageVersions/Sdk0% (0 lines)
src0% (0 lines)
src/NoTargets/Sdk0% (0 lines)
src/Shared0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
103:125 (11%)
148:170 (11%)
view
11 x 2 ROOT
ROOT
azure-pipelines-official.yml
azure-pipelines.yml
19:30 (14%)
20:30 (6%)
view
10 x 2 src/Traversal/Sdk
src/Traversal/Sdk
targets
Sdk.targets
Sdk.targets
175:184 (6%)
192:201 (6%)
view
9 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
44:54 (5%)
150:160 (5%)
view
9 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
44:54 (5%)
105:115 (5%)
view
8 x 2 ROOT
ROOT
azure-pipelines-official.yml
azure-pipelines.yml
9:17 (10%)
11:19 (4%)
view
7 x 2 ROOT
ROOT
azure-pipelines-official.yml
azure-pipelines.yml
24:30 (9%)
16:22 (4%)
view
7 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
16:22 (4%)
24:30 (4%)
view
6 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
82:88 (3%)
127:133 (3%)
view
6 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
82:88 (3%)
172:178 (3%)
view
6 x 2 src/Artifacts/build
src/Artifacts/buildMultiTargeting
targets
Microsoft.Build.Artifacts.targets
Microsoft.Build.Artifacts.targets
1:12 (25%)
1:12 (40%)
view
6 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
127:133 (3%)
172:178 (3%)
view
6 x 2 src/Artifacts/build
src/Artifacts/buildMultiTargeting
props
Microsoft.Build.Artifacts.props
Microsoft.Build.Artifacts.props
1:12 (66%)
1:12 (66%)
view