-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use Count instead of Count() #8604
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
Conversation
Hi @gpetrou , thanks for the PR. I'm usually running a "report everything & treat warnings as errors" |
@flobernd do I need to do any changes or could we merge this one? |
Hi @gpetrou , I merged it right now. Thanks again! FYI: I'm on leave until August; there won't be a lot of movement here in the meantime. |
(cherry picked from commit 1f98816)
(cherry picked from commit 1f98816)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
(cherry picked from commit 1f98816)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
It would be nice to enable NetAnalyzers to flag such cases.
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1826
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1829