Skip to content

Enable new analyzers CA1862, CA1864 in runtime and fix findings. - #88700

Merged
buyaa-n merged 2 commits into
dotnet:mainfrom
buyaa-n:enable-ca1864
Jul 14, 2023
Merged

Enable new analyzers CA1862, CA1864 in runtime and fix findings.#88700
buyaa-n merged 2 commits into
dotnet:mainfrom
buyaa-n:enable-ca1864

Conversation

@buyaa-n

Copy link
Copy Markdown
Contributor

Enable new analyzers CA1862, CA1864 in runtime and fix findings.

  • Nothing flagged for CA1862: Prefer using 'StringComparer'/'StringComparison' to perform case-insensitive string comparisons
  • All updates related to CA1864: Prefer the 'IDictionary.TryAdd(TKey, TValue)' method, thanks to @CollinAlpert

@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Issue Details

Enable new analyzers CA1862, CA1864 in runtime and fix findings.

  • Nothing flagged for CA1862: Prefer using 'StringComparer'/'StringComparison' to perform case-insensitive string comparisons
  • All updates related to CA1864: Prefer the 'IDictionary.TryAdd(TKey, TValue)' method, thanks to @CollinAlpert
Author:buyaa-n
Assignees:-
Labels:

area-Meta

Milestone:-

@buyaa-nbuyaa-nJul 11, 2023

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

We might want to if-def .Net framework build and apply the fix

@carlossanlopcarlossanlop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for enabling it. I am not expecting any hits from CA1862 in the runtime repo.

@buyaa-n

Copy link
Copy Markdown
ContributorAuthor

All failures are unrelated and known

@buyaa-n
buyaa-n merged commit 9409e2d into dotnet:mainJul 14, 2023
@buyaa-n
buyaa-n deleted the enable-ca1864 branch July 14, 2023 02:57
@ghostghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@buyaa-n@carlossanlop@kkeirstead