summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorMichael Herold <opensource@michaeljherold.com>2018-09-30 14:07:18 -0500
committerMichael Herold <opensource@michaeljherold.com>2018-09-30 14:59:58 -0500
commit5b5ed2119d63295fb180ecf1872b9e70e389c831 (patch)
tree3c80581ee004d9ad31f1981100852ff8063a3066 /.rubocop.yml
parent0235a18c14365b69773f99312bad590d0e66ee2d (diff)
downloadhashie-5b5ed2119d63295fb180ecf1872b9e70e389c831.tar.gz
[rubocop] Improve our RuboCop setup
Disable Metrics/BlockLength in specs because the length of a block in the test suite isn't something we want to lint. We want the tests to be as long as they need to be. Set an explicit line length metric instead of continually updating this as we go. Let's pick a max line length that we want to see and stick with it. This metric should only ever decrease: we don't want to see it ever increase again.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index d348e7d..8d0274b 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -12,6 +12,15 @@ inherit_from: .rubocop_todo.yml
Layout/IndentHeredoc:
Enabled: false
+Metrics/BlockLength:
+ Exclude:
+ - 'spec/**/*.rb'
+
+Metrics/LineLength:
+ Exclude:
+ - 'Guardfile'
+ Max: 110
+
Naming/FileName:
Exclude:
- 'Dangerfile'