From 4e8324bfafbecf7d2f59c866e6c8349796ddd073 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Thu, 6 Feb 2020 08:04:11 +0900 Subject: Enable `Layout/Tab` to avoid hard tab indentation in the future Ref https://github.com/rack/rack/pull/1549#discussion_r375470299, 1f89eaafd39040707bf2a76cab134dd7a78b1441. --- .rubocop.yml | 3 +++ test/spec_utils.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index c435525e..ca986767 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -50,5 +50,8 @@ Layout/SpaceBeforeFirstArg: Layout/SpaceInsideHashLiteralBraces: Enabled: true +Layout/Tab: + Enabled: true + Layout/TrailingWhitespace: Enabled: true diff --git a/test/spec_utils.rb b/test/spec_utils.rb index 7b1a60c2..b39f4a00 100644 --- a/test/spec_utils.rb +++ b/test/spec_utils.rb @@ -34,7 +34,7 @@ describe Rack::Utils do it "round trip binary data" do r = [218, 0].pack 'CC' - z = Rack::Utils.unescape(Rack::Utils.escape(r), Encoding::BINARY) + z = Rack::Utils.unescape(Rack::Utils.escape(r), Encoding::BINARY) r.must_equal z end -- cgit v1.2.1