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

Analyzer to flag invocations of [Pure] methods as an ExpressionStatementSyntax #103

Open
AArnott opened this issue Oct 7, 2018 · 2 comments

Comments

@AArnott
Copy link
Owner

AArnott commented Oct 7, 2018

Define (or find and depend on) an analyzer to call out when [Pure] methods are called without doing anything with their result.

@AArnott
Copy link
Owner Author

AArnott commented Oct 7, 2018

It looks like dotnet/roslyn-analyzers#747 already defines CA1806 in the Microsoft.Maintainability.Analyzers package.

@AArnott
Copy link
Owner Author

AArnott commented Oct 7, 2018

But sadly, that analyzer doesn't work: dotnet/roslyn-analyzers#1845

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

No branches or pull requests

1 participant