1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #32681 from bdewater/rubocop-0-54

Rubocop 0.54
This commit is contained in:
Ryuta Kamizono 2018-04-22 13:27:36 +09:00 committed by GitHub
commit 222f20eb19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 15 deletions

View file

@ -23,7 +23,7 @@ checks:
engines:
rubocop:
enabled: true
channel: rubocop-0-52
channel: rubocop-0-54
ratings:
paths:

View file

@ -42,6 +42,13 @@ Layout/CommentIndentation:
Layout/ElseAlignment:
Enabled: true
# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Layout/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
AutoCorrect: true
Layout/EmptyLineAfterMagicComment:
Enabled: true
@ -151,13 +158,6 @@ Layout/TrailingWhitespace:
Style/UnneededPercentQ:
Enabled: true
# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Lint/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
AutoCorrect: true
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses:
Enabled: true

View file

@ -333,7 +333,7 @@ GEM
mini_portile2 (~> 2.3.0)
os (0.9.6)
parallel (1.12.1)
parser (2.5.0.2)
parser (2.5.1.0)
ast (~> 2.4.0)
path_expander (1.0.2)
pg (1.0.0)
@ -385,9 +385,9 @@ GEM
resque (~> 1.26)
rufus-scheduler (~> 3.2)
retriable (3.1.1)
rubocop (0.52.1)
rubocop (0.54.0)
parallel (~> 1.10)
parser (>= 2.4.0.2, < 3.0)
parser (>= 2.5)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
@ -470,7 +470,7 @@ GEM
uber (0.1.0)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.3.0)
unicode-display_width (1.3.2)
useragent (0.16.8)
vegas (0.1.11)
rack (>= 1.0.0)

View file

@ -69,7 +69,7 @@ module ActionDispatch
headers["Vary"] = "Accept-Encoding" if gzip_path
return [status, headers, body]
[status, headers, body]
ensure
request.path_info = path
end

View file

@ -35,7 +35,7 @@ module ActionDispatch
if @raise_on_name_error
raise
else
return [404, { "X-Cascade" => "pass" }, []]
[404, { "X-Cascade" => "pass" }, []]
end
end

View file

@ -33,7 +33,7 @@ module ActiveSupport
yield
stream_io.rewind
return captured_stream.read
captured_stream.read
ensure
captured_stream.close
captured_stream.unlink