|
4 | 4 |
|
5 | 5 | using System.Diagnostics.CodeAnalysis; |
6 | 6 |
|
7 | | -[assembly: SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "Benchmark console output doesn't need localization")] |
8 | | -[assembly: SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "Benchmarks need to return specific collection types for measurement")] |
9 | | -[assembly: SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "Benchmark method names use underscores for clarity")] |
10 | | -[assembly: SuppressMessage("Performance", "CA1812:Avoid uninstantiated internal classes", Justification = "Benchmark classes are instantiated by BenchmarkDotNet via reflection")] |
11 | | -[assembly: SuppressMessage("Performance", "CA1852:Seal internal types", Justification = "Benchmark classes should not be sealed as they may be inherited by BenchmarkDotNet")] |
12 | | -[assembly: SuppressMessage("Design", "CA1515:Consider making public types internal", Justification = "Benchmark classes must be public for BenchmarkDotNet discovery")] |
13 | | -[assembly: SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "Benchmark methods cannot be static - they need instance context for BenchmarkDotNet")] |
| 7 | +[assembly: SuppressMessage( |
| 8 | + "Globalization", |
| 9 | + "CA1303:Do not pass literals as localized parameters", |
| 10 | + Justification = "Benchmark console output doesn't need localization" |
| 11 | +)] |
| 12 | +[assembly: SuppressMessage( |
| 13 | + "Design", |
| 14 | + "CA1002:Do not expose generic lists", |
| 15 | + Justification = "Benchmarks need to return specific collection types for measurement" |
| 16 | +)] |
| 17 | +[assembly: SuppressMessage( |
| 18 | + "Naming", |
| 19 | + "CA1707:Identifiers should not contain underscores", |
| 20 | + Justification = "Benchmark method names use underscores for clarity" |
| 21 | +)] |
| 22 | +[assembly: SuppressMessage( |
| 23 | + "Performance", |
| 24 | + "CA1812:Avoid uninstantiated internal classes", |
| 25 | + Justification = "Benchmark classes are instantiated by BenchmarkDotNet via reflection" |
| 26 | +)] |
| 27 | +[assembly: SuppressMessage( |
| 28 | + "Performance", |
| 29 | + "CA1852:Seal internal types", |
| 30 | + Justification = "Benchmark classes should not be sealed as they may be inherited by BenchmarkDotNet" |
| 31 | +)] |
| 32 | +[assembly: SuppressMessage( |
| 33 | + "Design", |
| 34 | + "CA1515:Consider making public types internal", |
| 35 | + Justification = "Benchmark classes must be public for BenchmarkDotNet discovery" |
| 36 | +)] |
| 37 | +[assembly: SuppressMessage( |
| 38 | + "Performance", |
| 39 | + "CA1822:Mark members as static", |
| 40 | + Justification = "Benchmark methods cannot be static - they need instance context for BenchmarkDotNet" |
| 41 | +)] |
0 commit comments