microsoft / xbox-live-trace-analyzer
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
  • 2% duplication:
    • 3,555 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 74 duplicated lines
  • 5 duplicates
system2% (74 lines)
Duplication per Extension
cs1% (38 lines)
css5% (22 lines)
js1% (14 lines)
Duplication per Component (primary)
Source/RulesEngine2% (26 lines)
Source/html-report/css5% (22 lines)
Source/html-report/js1% (14 lines)
Source/Rules2% (12 lines)
Source0% (0 lines)
Source/Properties0% (0 lines)
Source/Reports0% (0 lines)
Source/html-report0% (0 lines)
Utilities/Pipelines/Scripts0% (0 lines)
Utilities/Pipelines/Tasks0% (0 lines)
Utilities/Pipelines0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
11 x 2 Source/html-report/css
Source/html-report/css
report.css
report.css
282:292 (2%)
309:319 (2%)
view
7 x 2 Source/html-report/js
Source/html-report/js
report_builder.js
report_builder.js
149:157 (1%)
178:186 (1%)
view
7 x 2 Source/RulesEngine
Source/RulesEngine
Utils.cs
Utils.cs
422:431 (3%)
450:458 (3%)
view
6 x 2 Source/RulesEngine
Source/RulesEngine
ServiceCallData.cs
ServiceCallData.cs
217:225 (3%)
302:310 (3%)
view
6 x 2 Source/Rules
Source/Rules
BatchFrequencyRule.cs
SmallBatchDetectionRule.cs
47:58 (9%)
60:71 (10%)
view