Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
if
to allowed names list for MethodParameterName
In library development, we sometimes use `if` as a keyword argument. The meaning of `if` is clear enough so we can accept it as an allowed name.
- Loading branch information
1 parent
43bf78e
commit 9cc6719
Showing
2 changed files
with
2 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#11158](https://github.com/rubocop/rubocop/pull/11158): Add `if` to allowed names list for MethodParameterName. ([@okuramasafumi][]) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2808,6 +2808,7 @@ Naming/MethodParameterName: | |
- by | ||
- db | ||
- id | ||
- if | ||
- in | ||
- io | ||
- ip | ||
|