Skip to content

Conversation

@mavasani
Copy link

Fixes #6780

@mavasani mavasani requested a review from a team as a code owner July 20, 2023 13:31
@mavasani
Copy link
Author

mavasani commented Jul 20, 2023

@CollinAlpert for review

Copy link

@sharwell sharwell left a 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.

@mavasani
Copy link
Author

@sharwell Addressed feedback

@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Merging #6784 (5812bdd) into main (62135dd) will decrease coverage by 0.01%.
The diff coverage is 95.00%.

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     

@mavasani mavasani merged commit 27abf4b into dotnet:main Jul 24, 2023
@mavasani mavasani deleted the FixCA1001Race branch July 24, 2023 17:57
amiru3f pushed a commit to amiru3f/roslyn-analyzers that referenced this pull request Jul 26, 2023
Fix race condition in CA1001 analyzer
amiru3f pushed a commit to amiru3f/roslyn-analyzers that referenced this pull request Jul 26, 2023
Fix race condition in CA1001 analyzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intermittent test failures for CA1001 in CI

2 participants