Skip to content

Commit

Permalink
Update StringNonOrdinalAnalyzer.cs
Browse files Browse the repository at this point in the history
Remove erroneous `Equals` from the list & re-order to be alphabetical.
  • Loading branch information
hamarb123 authored Jan 15, 2025
1 parent c8cb710 commit 6f47bb1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ private static void AnalyzeInvocation(OperationAnalysisContext context)
//check if it's a problematic method name
var problematic = (method.IsStatic, method.Name) switch
{
(false, "IndexOf") => true,
(false, "LastIndexOf") => true,
(_, "Compare") => true,
(false, "CompareTo") => true,
(false, "EndsWith") => true,
(_, "Equals") => true,
(false, "IndexOf") => true,
(false, "LastIndexOf") => true,
(false, "StartsWith") => true,
_ => false,
};
Expand Down

0 comments on commit 6f47bb1

Please sign in to comment.