Skip to content

Conversation

Applesauce314
Copy link
Contributor

@Applesauce314 Applesauce314 commented Jul 14, 2023

Summary

when #75933 was created I had brought up the similarity between the new error (CA1860) and the existing CA1827.

this PR updates the docs for both those analyzers to call out that similarity and reduce the chance of confusion


Internal previews

📄 File 🔗 Preview link
docs/fundamentals/code-analysis/quality-rules/ca1827.md CA1827: Do not use Count/LongCount when Any can be used
docs/fundamentals/code-analysis/quality-rules/ca1860.md "CA1860: Avoid using 'Enumerable.Any()' extension method"

update docs for CA1827 to refer to the possible ambiguity with CA1860
updated ca 1860 to call out the similarity to the ca1827 analyzer
fix typos
@Applesauce314 Applesauce314 requested a review from gewarren as a code owner July 14, 2023 12:32
@dotnet-bot dotnet-bot added this to the July 2023 milestone Jul 14, 2023
@ghost ghost added the community-contribution Indicates PR is created by someone from the .NET community. label Jul 14, 2023
fix missing blanks around list
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Applesauce314. I think we could also update the title of CA1827 to include the parentheses after the method names.

@gewarren gewarren changed the title Patch 1 Clarify CA1860 and CA1827 Jul 14, 2023
Applesauce314 and others added 7 commits July 16, 2023 12:44
Update title of error

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Accept suggestions

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Accept formatting suggestion

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Accept formatting and wording suggesting

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Accept formatting suggestion

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@gewarren gewarren merged commit 2be50a8 into dotnet:main Jul 17, 2023
@Applesauce314 Applesauce314 deleted the patch-1 branch July 17, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants