diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2018-06-03 00:45:09 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2018-06-03 00:45:09 -0700 |
commit | efe2c8f65e052fc853c1eef6f47d5df480f36016 (patch) | |
tree | 0f706ba05ed973e768745d8f1aeb1382a6fd8818 | |
parent | eac0f31168a9f45e986cbdf90d44884fdbb9ea52 (diff) | |
download | rack-efe2c8f65e052fc853c1eef6f47d5df480f36016.tar.gz |
RuboCop: special needs for #1252 config.ru with BOM
-rw-r--r-- | .rubocop.yml | 2 | ||||
-rw-r--r-- | test/builder/bom.ru | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 484c4380..22ed9920 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,6 +7,8 @@ AllCops: Style/FrozenStringLiteralComment: Enabled: true EnforcedStyle: always + Exclude: + - 'test/builder/bom.ru' # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. Style/HashSyntax: diff --git a/test/builder/bom.ru b/test/builder/bom.ru index 3f023393..5740f9a1 100644 --- a/test/builder/bom.ru +++ b/test/builder/bom.ru @@ -1 +1 @@ -run -> (env) { [200, {'Content-Type' => 'text/plain'}, ['OK']] } +run -> (env) { [200, { 'Content-Type' => 'text/plain' }, ['OK']] } |