Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress incorrect "CA1822:Mark members as static" analyzer violation in ShapeProxyBenchmark (Lombiq Technologies: OCORE-156) #15707

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

Piedone
Copy link
Member

@Piedone Piedone commented Apr 9, 2024

Fixing warnings like these:

image

Started from here: #15696 (review)

Comment on lines +23 to +26
[SuppressMessage(
"Performance",
"CA1822:Mark members as static",
Justification = "BenchmarkDotNet needs all benchmark methods to be instance-level.")]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't add this to the whole project in the end, because these are best when they're as narrow as possible, and there's no other instance of this in the project.

@Piedone Piedone changed the title Suppress incorrect "CA1822:Mark members as static" analyzer violation in ShapeProxyBenchmark Suppress incorrect "CA1822:Mark members as static" analyzer violation in ShapeProxyBenchmark (Lombiq Technologies: OCORE-156) Apr 9, 2024
@Piedone Piedone requested a review from Skrypt April 9, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants