diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2020-02-06 08:04:11 +0900 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-02-06 12:52:31 +1300 |
commit | 4e8324bfafbecf7d2f59c866e6c8349796ddd073 (patch) | |
tree | 23f62c94351101365001ce3f9cedbea44de10e39 | |
parent | 5d072b370fb9227e94e2287b9f7f4c9e9701dc93 (diff) | |
download | rack-4e8324bfafbecf7d2f59c866e6c8349796ddd073.tar.gz |
Enable `Layout/Tab` to avoid hard tab indentation in the future
Ref https://github.com/rack/rack/pull/1549#discussion_r375470299, 1f89eaafd39040707bf2a76cab134dd7a78b1441.
-rw-r--r-- | .rubocop.yml | 3 | ||||
-rw-r--r-- | test/spec_utils.rb | 2 |
2 files changed, 4 insertions, 1 deletions
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 |