microsoft / PowerBI-CSharp
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
  • 5% duplication:
    • 1,110 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 64 duplicated lines
  • 3 duplicates
system5% (64 lines)
Duplication per Extension
ps127% (28 lines)
cs2% (24 lines)
cmd10% (12 lines)
Duplication per Component (primary)
sdk/tools27% (28 lines)
sdk/PowerBI.Api/Extensions4% (24 lines)
scripts10% (12 lines)
ROOT0% (0 lines)
sdk/PowerBI.Api/Extensions/Models0% (0 lines)
sdk/PowerBI.Api/Extensions/Models/Credentials0% (0 lines)
sdk/PowerBI.Api0% (0 lines)
sdk/PowerBI.Api/Imports0% (0 lines)
sdk/PowerBI.Api/Properties0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
14 x 2 sdk/tools
sdk/tools
ApplyVersionToAssemblies.ps1
ApplyVersionToAssemblies.ps1
77:91 (13%)
97:111 (13%)
view
12 x 2 sdk/PowerBI.Api/Extensions
sdk/PowerBI.Api/Extensions
AuthenticatedEncryption.cs
AuthenticatedEncryption.cs
67:78 (6%)
142:153 (6%)
view
6 x 2 scripts
scripts
cmd
pack-sdk-dev.cmd
pack-sdk.cmd
16:21 (35%)
19:25 (31%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 sdk/PowerBI.Api/Extensions
sdk/PowerBI.Api/Imports
ImportsOperationsExtensions.cs
ImportsOperationsExtensions.cs
255:261 
73:79 
view