|
48 | 48 | <Rules AnalyzerId="SonarAnalyzer.CSharp" RuleNamespace="SonarAnalyzer.CSharp"> |
49 | 49 | <!-- Don't use hardcoded paths or URIs - needed in several test cases. --> |
50 | 50 | <Rule Id="S1075" Action="None" /> |
| 51 | + <!-- Utility class should not be instantiated - test fixture classes with nested tests can't be static. --> |
| 52 | + <Rule Id="S1118" Action="None" /> |
| 53 | + <!-- Don't call GC.Collect - required for weak reference and disposal tests. --> |
| 54 | + <Rule Id="S1215" Action="None" /> |
51 | 55 | <!-- Remove unused private members - reflection tests need non-public members. --> |
52 | 56 | <Rule Id="S1144" Action="None" /> |
53 | 57 | <!-- Empty method bodies - test stubs often have no-op implementations. --> |
|
72 | 76 | <Rule Id="S2335" Action="None" /> |
73 | 77 | <!-- Cognitive complexity (must be explicitly enabled). --> |
74 | 78 | <Rule Id="S3776" Action="Warning" /> |
| 79 | + <!-- Split method for params check + iterator - overly prescriptive for our patterns. --> |
| 80 | + <Rule Id="S4456" Action="None" /> |
| 81 | + <!-- Don't use Thread.Sleep - required for concurrency and timing tests. --> |
| 82 | + <Rule Id="S2925" Action="None" /> |
| 83 | + <!-- NSubstitute mock verification is complete without property access. --> |
| 84 | + <Rule Id="S2970" Action="None" /> |
| 85 | + <!-- Fields only assigned in constructor - needed to prevent optimization in reflection tests. --> |
| 86 | + <Rule Id="S4487" Action="None" /> |
75 | 87 | <!-- Set route attributes at top of controller - false positive. --> |
76 | 88 | <Rule Id="S6934" Action="None" /> |
| 89 | + <!-- Use async dispose - sync dispose tests are intentional. --> |
| 90 | + <Rule Id="S6966" Action="None" /> |
77 | 91 | </Rules> |
78 | 92 | <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers"> |
79 | 93 | <!-- Prefix local calls with this. --> |
|
0 commit comments