Fix RuboCop offenses

Make Layout/SpaceInsideHashLiteralBraces cop happy.
And also add rubocop-packaging for easy maintenance downstream.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
This commit is contained in:
Utkarsh Gupta 2020-09-05 12:56:16 +05:30 committed by Samuel Williams
parent aefb4cb092
commit 79f9493926
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,6 @@
require:
- rubocop-packaging
AllCops:
TargetRubyVersion: 2.4
DisabledByDefault: true

View File

@ -5,6 +5,7 @@ source 'https://rubygems.org'
gemspec
gem "rubocop", require: false
gem "rubocop-packaging", require: false
group :doc do
gem 'rdoc'

View File

@ -537,7 +537,7 @@ class RackRequestTest < Minitest::Spec
begin
$VERBOSE = true
req['foo'].must_equal 'quux'
warn_arg.must_equal ["Request#[] is deprecated and will be removed in a future version of Rack. Please use request.params[] instead", {uplevel: 1}]
warn_arg.must_equal ["Request#[] is deprecated and will be removed in a future version of Rack. Please use request.params[] instead", { uplevel: 1 }]
ensure
$VERBOSE = verbose
end
@ -582,7 +582,7 @@ class RackRequestTest < Minitest::Spec
begin
$VERBOSE = true
req['foo'] = 'quux'
warn_arg.must_equal ["Request#[]= is deprecated and will be removed in a future version of Rack. Please use request.params[]= instead", {uplevel: 1}]
warn_arg.must_equal ["Request#[]= is deprecated and will be removed in a future version of Rack. Please use request.params[]= instead", { uplevel: 1 }]
req.params['foo'].must_equal 'quux'
ensure
$VERBOSE = verbose