microsoft / vs-boost-unit-test-adapter
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:
    • 6,447 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 343 duplicated lines
  • 33 duplicates
system5% (343 lines)
Duplication per Extension
cs5% (343 lines)
Duplication per Component (primary)
BoostTestAdapterNunit10% (228 lines)
BoostTestAdapter/Settings11% (38 lines)
BoostTestAdapter/Boost2% (26 lines)
BoostTestAdapter6% (21 lines)
BoostTestShared17% (10 lines)
BoostTestPackage14% (10 lines)
VisualStudioAdapter5% (10 lines)
Antlr.DOT0% (0 lines)
Antlr.DOT/Properties0% (0 lines)
BoostTestAdapter/Discoverers0% (0 lines)
BoostTestAdapter/Properties0% (0 lines)
BoostTestAdapter/TestBatch0% (0 lines)
BoostTestAdapter/Utility0% (0 lines)
BoostTestAdapterNunit/Fakes0% (0 lines)
BoostTestAdapterNunit/Properties0% (0 lines)
BoostTestAdapterNunit/Resources0% (0 lines)
BoostTestAdapterNunit/Utility0% (0 lines)
BoostTestItemTemplate0% (0 lines)
BoostTestPackage/Properties0% (0 lines)
BoostTestPlugin/Properties0% (0 lines)
BoostTestPlugin0% (0 lines)
BoostTestShared/Properties0% (0 lines)
ROOT0% (0 lines)
VisualStudioAdapter/Properties0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 33 duplicates...
Size#FoldersFilesLinesCode
18 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostTestExecutorTest.cs
BoostTestExecutorTest.cs
1007:1036 (3%)
1060:1089 (3%)
view
12 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostTestResultTest.cs
BoostTestResultTest.cs
742:763 (2%)
784:805 (2%)
view
12 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostTestResultTest.cs
BoostTestResultTest.cs
751:766 (2%)
951:966 (2%)
view
10 x 2 BoostTestPackage
BoostTestShared
GlobalSuppressions.cs
GlobalSuppressions.cs
1:21 (90%)
1:21 (100%)
view
9 x 2 BoostTestShared
VisualStudioAdapter
GlobalSuppressions.cs
GlobalSuppressions.cs
3:21 (90%)
13:31 (64%)
view
9 x 2 BoostTestPackage
VisualStudioAdapter
GlobalSuppressions.cs
GlobalSuppressions.cs
3:21 (81%)
13:31 (64%)
view
9 x 2 BoostTestAdapterNunit
BoostTestShared
GlobalSuppressions.cs
GlobalSuppressions.cs
1:17 (100%)
1:17 (90%)
view
9 x 2 BoostTestAdapterNunit
BoostTestPackage
GlobalSuppressions.cs
GlobalSuppressions.cs
1:17 (100%)
1:17 (81%)
view
9 x 2 BoostTestAdapter
VisualStudioAdapter
GlobalSuppressions.cs
GlobalSuppressions.cs
15:31 (16%)
11:27 (64%)
view
9 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostTestExecutorTest.cs
BoostTestExecutorTest.cs
1022:1039 (1%)
1121:1138 (1%)
view
9 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostTestResultTest.cs
BoostTestResultTest.cs
793:805 (1%)
951:963 (1%)
view
9 x 2 BoostTestAdapter/Settings
BoostTestAdapter/Settings
BoostTestInternalSettings.cs
TestPropertySettings.cs
88:103 (16%)
71:86 (20%)
view
8 x 2 BoostTestAdapter
BoostTestAdapterNunit
GlobalSuppressions.cs
GlobalSuppressions.cs
17:31 (14%)
3:17 (88%)
view
8 x 2 BoostTestAdapter
BoostTestShared
GlobalSuppressions.cs
GlobalSuppressions.cs
17:31 (14%)
3:17 (80%)
view
8 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostTestExecutorTest.cs
BoostTestExecutorTest.cs
1075:1089 (1%)
1121:1135 (1%)
view
8 x 2 BoostTestAdapter
BoostTestPackage
GlobalSuppressions.cs
GlobalSuppressions.cs
17:31 (14%)
3:17 (72%)
view
8 x 2 BoostTestAdapter/Settings
BoostTestAdapter/Settings
BoostTestAdapterSettingsProvider.cs
BoostTestInternalSettings.cs
53:67 (15%)
88:101 (14%)
view
8 x 2 BoostTestAdapter/Settings
BoostTestAdapter/Settings
BoostTestAdapterSettingsProvider.cs
TestPropertySettings.cs
53:67 (15%)
71:84 (17%)
view
8 x 2 BoostTestAdapterNunit
VisualStudioAdapter
GlobalSuppressions.cs
GlobalSuppressions.cs
3:17 (88%)
13:27 (57%)
view
8 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostDataTestCaseVerifierTest.cs
VSDiscoveryVisitorTest.cs
18:29 (8%)
31:42 (10%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
9 x 2 BoostTestAdapter/Settings
BoostTestAdapter/Settings
BoostTestInternalSettings.cs
TestPropertySettings.cs
62:71 
45:54 
view
7 x 2 BoostTestAdapterNunit
BoostTestAdapterNunit
BoostTestDiscovererTest.cs
BoostTestExecutorTest.cs
203:210 
352:359 
view