We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Diagnostic ID: CA1806: Do not ignore method results
Do not ignore method results
NuGet Package: Microsoft.CodeAnalysis.NetAnalyzers
Version: 7.0.4 (Latest)
This code using IQueryable does not output CA1806 warning
IQueryable<int> queryable = (new int[] { 0, 1 }).AsQueryable(); queryable.Take(1);
But with IEnumerable it does
IEnumerable<int> enumerable= new int[] { 0, 1 }; enumerable.Take(1);
Use the code above with latest analysis package. <AnalysisMode>All</AnalysisMode> does not change the behavior.
<AnalysisMode>All</AnalysisMode>
Warning CA1806 with IQueryable methods that returns values.
No warning CA1806 with IQueryable methods that returns values.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Analyzer
Diagnostic ID: CA1806:
Do not ignore method results
Analyzer source
NuGet Package: Microsoft.CodeAnalysis.NetAnalyzers
Version: 7.0.4 (Latest)
Describe the bug
This code using IQueryable does not output CA1806 warning
But with IEnumerable it does
Steps To Reproduce
Use the code above with latest analysis package.
<AnalysisMode>All</AnalysisMode>
does not change the behavior.Expected behavior
Warning CA1806 with IQueryable methods that returns values.
Actual behavior
No warning CA1806 with IQueryable methods that returns values.
The text was updated successfully, but these errors were encountered: