Skip to content

Commit

Permalink
Merge pull request #964 from koic/remove_redundant_config_for_style_i…
Browse files Browse the repository at this point in the history
…nverse_methods

[Fix #941] Remove redundant config for `Style/InverseMethods`
  • Loading branch information
koic authored Mar 30, 2023
2 parents bd96e43 + b13bf71 commit 968331c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
5 changes: 0 additions & 5 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ Style/FormatStringToken:
Exclude:
- spec/**/*

Style/InverseMethods:
# This rubocop-rails repository doesn't use Active Support, so it can't replace `include?` with `exclude?`.
InverseMethods:
:include?: ~

Layout/HashAlignment:
EnforcedHashRocketStyle:
- key
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#941](https://github.com/rubocop/rubocop-rails/issues/941): Remove redundant config for `Style/InverseMethods`. ([@koic][])
9 changes: 0 additions & 9 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1142,15 +1142,6 @@ Style/FormatStringToken:
AllowedMethods:
- redirect

Style/InverseMethods:
# `InverseMethods` are methods that can be inverted by a not (`not` or `!`)
# The relationship of inverse methods only needs to be defined in one direction.
# Keys and values both need to be defined as symbols.
InverseMethods:
:present?: :blank?
:include?: :exclude?
:valid?: :invalid?

Style/SymbolProc:
AllowedMethods:
- define_method
Expand Down

0 comments on commit 968331c

Please sign in to comment.