-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Milestone
Description
I wanted to propose the idea of adding analyzers for Benchmark.NET. There's a couple of rules I was thinking of for this library:
- Make sure any classes that contain
[Benchmark]
methods are not sealed - Make sure that any
[Benchmark]
methods return a value (see the "Avoid Dead Code Elimination" section here (http://benchmarkdotnet.org/RulesOfBenchmarking.htm) for the reason why you want to do this) - `[Benchmark methods should not have any parameters
There may be others. My point is, I'd like to see these analyzers for this framework. I'd also be interested in writing them as well.
Neme12 and Frulfump