Skip to content

Commit

Permalink
Improve heuristic for MA0003
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou committed Jul 10, 2024
1 parent ca34542 commit 7eede0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Meziantou.Analyzer/Rules/NamedParameterAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ bool IsParams(SyntaxNode node)
invokedMethodSymbol.Name.StartsWith("Add", StringComparison.Ordinal) ||
invokedMethodSymbol.Name.StartsWith("Remove", StringComparison.Ordinal) ||
invokedMethodSymbol.Name.StartsWith("Contains", StringComparison.Ordinal) ||
invokedMethodSymbol.Name.StartsWith("With", StringComparison.Ordinal) ||
invokedMethodSymbol.Name == "IndexOf" ||
invokedMethodSymbol.Name == "IndexOfAny" ||
invokedMethodSymbol.Name == "LastIndexOf" ||
Expand Down

0 comments on commit 7eede0e

Please sign in to comment.