-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recommend using Equals with StringComparison instead of string.ToLowe…
…r() == otherString.ToLower() (#6720) * Analyzer: Use string.Format with CultureInfo for title. * Almost, only needs to handle inequality * Fix inequality case, fix trivia, still need to add C# test * Add C# tests for trivia and string method * Add tests for diagnostic-only, no fix, for Equals that don't match variant/invariant. * Use ValueTuple in tests * Register operation actions separately. * Fix recent nullability changes * Use simplified valuetuple creation in tests * Add extra rule and resource messages for the 'string.Method() == string.Method()' comparison case. * msbuild /t:pack * Address suggestion
- Loading branch information
1 parent
1121367
commit f23133f
Showing
24 changed files
with
749 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.