diff options
author | Michael Herold <opensource@michaeljherold.com> | 2018-09-30 14:07:18 -0500 |
---|---|---|
committer | Michael Herold <opensource@michaeljherold.com> | 2018-09-30 14:59:58 -0500 |
commit | 5b5ed2119d63295fb180ecf1872b9e70e389c831 (patch) | |
tree | 3c80581ee004d9ad31f1981100852ff8063a3066 /.rubocop.yml | |
parent | 0235a18c14365b69773f99312bad590d0e66ee2d (diff) | |
download | hashie-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.yml | 9 |
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' |