Skip to content

Analyzers for Framework #389

@JasonBock

Description

@JasonBock

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions