Skip to content

Commit c33770b

Browse files
authored
Merge pull request #902 from javierjulio/patch-1
Ignore redirect method for Style/FormatStringToken by default
2 parents 05be11b + a525791 commit c33770b

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)