Skip to content

Conversation

@rainersigwald
Copy link
Member

  • Introduce BannedApiAnalyzers
  • Ban CompareInfo.IndexOf

The latter will make this fail until #6671 is merged.

For OrdinalIgnoreCase, this uses string.IndexOf and allocates a string.

See dotnet#6671.
@@ -0,0 +1 @@
M:System.Globalization.CompareInfo.IndexOf(System.String,System.Char)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming this can't have a copyright banner.

Copy link
Member Author

Choose a reason for hiding this comment

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

@Forgind Forgind added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Jul 19, 2021
ladipro pushed a commit to ladipro/msbuild that referenced this pull request Jul 20, 2021
- Introduce BannedApiAnalyzers
- Ban CompareInfo.IndexOf
@ladipro
Copy link
Member

ladipro commented Jul 20, 2021

Manually merged as 78f6ef3 since I don't have permissions to resolve conflicts in @rainersigwald's branch.

@ladipro ladipro closed this Jul 20, 2021
@rainersigwald rainersigwald deleted the banalyzer branch October 19, 2021 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants