Skip to content

Commit

Permalink
Add if to allowed names list for MethodParameterName
Browse files Browse the repository at this point in the history
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
okuramasafumi committed Nov 6, 2022
1 parent 43bf78e commit 9cc6719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/change_add_if_to_allowed_names_list.md
@@ -0,0 +1 @@
* [#11158](https://github.com/rubocop/rubocop/pull/11158): Add `if` to allowed names list for MethodParameterName. ([@okuramasafumi][])
1 change: 1 addition & 0 deletions config/default.yml
Expand Up @@ -2808,6 +2808,7 @@ Naming/MethodParameterName:
- by
- db
- id
- if
- in
- io
- ip
Expand Down

0 comments on commit 9cc6719

Please sign in to comment.