|
22 | 22 | <Rule Id="CA1515" Action="None" /> |
23 | 23 | <!-- Remove underscores from member name - test naming conventions use underscore. --> |
24 | 24 | <Rule Id="CA1707" Action="None" /> |
25 | | - <!-- Internal class that appears to never be instantiated - false positives from DI. --> |
26 | 25 | <!-- Identifiers should not have incorrect suffix - test classes use Impl, Handler, etc. --> |
27 | 26 | <Rule Id="CA1711" Action="None" /> |
28 | 27 | <!-- Property names should not match get methods - aggregate service tests intentionally test both. --> |
29 | 28 | <Rule Id="CA1721" Action="None" /> |
| 29 | + <!-- Internal class that appears to never be instantiated - false positives from DI. --> |
30 | 30 | <Rule Id="CA1812" Action="None" /> |
31 | 31 | <!-- Change Dispose() to call GC.SuppressFinalize - unimportant in tests. --> |
32 | 32 | <Rule Id="CA1816" Action="None" /> |
|
42 | 42 | <Rule Id="CA1863" Action="None" /> |
43 | 43 | <!-- Call ConfigureAwait - shouldn't in test libraries; XUnit has opposing analyzer. --> |
44 | 44 | <Rule Id="CA2007" Action="None" /> |
45 | | - <!-- Implement serialization constructors - false positive in .NET Core. --> |
46 | 45 | <!-- Do not raise reserved exception types - tests use generic exceptions for simulation. --> |
47 | 46 | <Rule Id="CA2201" Action="None" /> |
| 47 | + <!-- Implement serialization constructors - false positive in .NET Core. --> |
48 | 48 | <Rule Id="CA2229" Action="None" /> |
49 | 49 | <!-- Use Uri instead of string parameters - strings are easier for testing. --> |
50 | 50 | <Rule Id="CA2234" Action="None" /> |
|
58 | 58 | <Rules AnalyzerId="SonarAnalyzer.CSharp" RuleNamespace="SonarAnalyzer.CSharp"> |
59 | 59 | <!-- Don't use hardcoded paths or URIs - needed in several test cases. --> |
60 | 60 | <Rule Id="S1075" Action="None" /> |
61 | | - <!-- Utility class should not be instantiated - test fixture classes with nested tests can't be static. --> |
62 | 61 | <!-- Sections of code should not be commented out - test files may retain commented examples. --> |
63 | 62 | <Rule Id="S125" Action="None" /> |
| 63 | + <!-- Utility class should not be instantiated - test fixture classes with nested tests can't be static. --> |
64 | 64 | <Rule Id="S1118" Action="None" /> |
65 | 65 | <!-- Don't call GC.Collect - required for weak reference and disposal tests. --> |
66 | 66 | <Rule Id="S1215" Action="None" /> |
|
137 | 137 | <!-- Don't copy/paste documentation. --> |
138 | 138 | <Rule Id="SA1625" Action="None" /> |
139 | 139 | </Rules> |
140 | | - <Rules AnalyzerId="xUnit" RuleNamespace="xUnit"> |
141 | | - <!-- Use Assert.Single when there's only one collection entry. --> |
142 | | - <Rule Id="xUnit2023" Action="Warning" /> |
143 | | - </Rules> |
144 | | - <!-- IDE rules for test assemblies. --> |
145 | 140 | <Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp" RuleNamespace="Microsoft.CodeAnalysis.CSharp"> |
146 | 141 | <!-- Private member is unused - tests for reflection require members that may not get used. --> |
147 | 142 | <Rule Id="IDE0051" Action="None" /> |
|
0 commit comments