Skip to content

Commit a525791

Browse files
committed
Ignore redirect method for Style/FormatStringToken
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.
1 parent 05be11b commit a525791

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#902](https://github.com/rubocop/rubocop-rails/pull/902): Ignore `redirect` method for `Style/FormatStringToken` by default. ([@javierjulio][])

config/default.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,13 @@ Rails/WhereNotWithMultipleConditions:
11381138
Style/AndOr:
11391139
EnforcedStyle: conditionals
11401140

1141+
Style/FormatStringToken:
1142+
AllowedMethods:
1143+
- redirect
1144+
# Deprecated.
1145+
IgnoredMethods:
1146+
- redirect
1147+
11411148
Style/SymbolProc:
11421149
AllowedMethods:
11431150
- define_method

0 commit comments

Comments
 (0)