Skip to content

Conversation

@martincostello
Copy link
Member

Enable CA1854

Enable CA1854 to prefer IDictionary.TryGetValue().

Description

Enables the new CA1854 analyser.

See #44791 (comment).

Will see what CI throws up, and then look at how many get flushed out to be fixed.

/cc @BrennanConroy

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Oct 31, 2022
@ghost
Copy link

ghost commented Oct 31, 2022

Thanks for your PR, @martincostello. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Fix additional CA1854 warnings.
Fix an additional CA1854 warning.
@martincostello martincostello marked this pull request as ready for review October 31, 2022 23:00
@JamesNK JamesNK merged commit 983ca23 into dotnet:main Nov 1, 2022
@ghost ghost added this to the 8.0-preview1 milestone Nov 1, 2022
@martincostello martincostello deleted the enable-ca1854 branch November 1, 2022 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates that the PR has been added by a community member Perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants