Skip to content

Commit ecd9fbe

Browse files
committed
[Fix #914] Make Style/InverseMethods aware of valid? and invalid? methods
Fixes #914. This commit makes `Style/InverseMethods` aware of `valid?` and `invalid?` methods.
1 parent 81b0fdc commit ecd9fbe

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#914](https://github.com/rubocop/rubocop-rails/issues/914): Make `Style/InverseMethods` aware of `valid?` and `invalid?` methods. ([@koic][])

config/default.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ Style/InverseMethods:
11511151
InverseMethods:
11521152
:present?: :blank?
11531153
:include?: :exclude?
1154+
:valid?: :invalid?
11541155

11551156
Style/SymbolProc:
11561157
AllowedMethods:

0 commit comments

Comments
 (0)