-
Notifications
You must be signed in to change notification settings - Fork 482
Fix race condition in CA1001 analyzer #6784
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
|
@CollinAlpert for review |
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.
Recommend using TemporarySet<string> for this. There are several usage examples in the repo if you do a Find All References for TemporarySet<T>.Empty. This set eliminates all allocations and pooled object churn for the common case where the set remains empty.
|
@sharwell Addressed feedback |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6784 +/- ##
==========================================
- Coverage 96.34% 96.34% -0.01%
==========================================
Files 1386 1386
Lines 326057 326204 +147
Branches 10721 10728 +7
==========================================
+ Hits 314141 314282 +141
- Misses 9210 9215 +5
- Partials 2706 2707 +1 |
Fix race condition in CA1001 analyzer
Fix race condition in CA1001 analyzer
Fixes #6780