-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix concurrent collections CA1836 rule violations #40629
Conversation
Tagging subscribers to this area: @eiriktsarpalis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
Seems like CI issues are due to dotnet/runtime hasn't ingested the latest bits from dotnet/roslyn-analyzers, maybe we should holf-off changing severity until then. |
I think you can just bump up the below to Line 9 in aa5fdab
|
Hello @danmosemsft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
"The operation is not allowed on non-connected sockets.". #38159 ? |
Follow-up to dotnet/roslyn-analyzers#3978
Fix places where the rule detects an inefficient usage of
Count == 0
or similar condition after changing the rule to only diagnose allowed types (concurrent types for now).Also updates rule severity to
Warning
in CodeAnalysis.ruleset file.cc @mavasani @jeffhandley