CA1515 should not be reported for classes containing BDN benchmarks #7499
Labels
Area-Microsoft.CodeAnalysis.NetAnalyzers
Bug
The product is not behaving according to its current intended design
False_Positive
A diagnostic is reported for non-problematic case
Analyzer
Diagnostic ID: CA1515
Describe the improvement
CA1515 is currently reported for classes that contain BDN benchmark methods, but these classes actually have to be public.
Describe suggestions on how to achieve the rule
Please do not report this diagnostic for a class if one of the public methods of this class is annotated with ä BenchmarkDotNet.Attributes.BenchmarkAttribute custom attribute.
The text was updated successfully, but these errors were encountered: