Skip to content

Commit

Permalink
Ignore redirect method for Style/FormatStringToken
Browse files Browse the repository at this point in the history
This adds the `redirect` method as a default for the Style/FormatStringToken rule due to the change in rubocop/rubocop#9369 where it was mentioned that it would be added as a default.
  • Loading branch information
javierjulio committed Jan 6, 2023
1 parent 05be11b commit 9ea12a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,13 @@ Rails/WhereNotWithMultipleConditions:
Style/AndOr:
EnforcedStyle: conditionals

Style/FormatStringToken:
AllowedMethods:
- redirect
# Deprecated.
IgnoredMethods:
- redirect

Style/SymbolProc:
AllowedMethods:
- define_method
Expand Down

0 comments on commit 9ea12a1

Please sign in to comment.