Skip to content

Commit 3b6e08f

Browse files
committed
[Fix #888] Make Style/InverseMethods aware of exists?
Fixes #888. This PR makes `Style/InverseMethods` aware of `exists?`. Probably simpler than implementing a new named cop. And there will be no overlap with existing cop as reported in #941.
1 parent b7ac06b commit 3b6e08f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/default.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,10 @@ Style/FormatStringToken:
11501150
AllowedMethods:
11511151
- redirect
11521152

1153+
Style/InverseMethods:
1154+
InverseMethods:
1155+
:exists?: :none?
1156+
11531157
Style/SymbolProc:
11541158
AllowedMethods:
11551159
- define_method

0 commit comments

Comments
 (0)