Skip to content

Enable CA1854 #44799

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

Merged
merged 4 commits into from
Nov 1, 2022
Merged

Enable CA1854 #44799

merged 4 commits into from
Nov 1, 2022

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