forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix rubocop#3512] Change error message of `Lint/UnneededSplatExpansi…
…on` for array (rubocop#3526) In case of array splat for method parameter, the default message was ambiguous. `Unnecessary splat expansion.` made people just remove the splat expansion and pass the array as parameter which is obviously not the same as passing splat arguments. Change the message to `Pass array contents as separate arguments.` to the message in such cases to make the intension more clear.
- Loading branch information
1 parent
6e4280b
commit 269ea0b
Showing
3 changed files
with
56 additions
and
21 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
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