diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-07-12 21:29:48 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-07-12 21:29:48 +0900 |
commit | 6f58b2cfc97d9ac2358600f18b0fabc48fdfc2c6 (patch) | |
tree | b0c3d32658fb03897afac75eb530c3c0a0b01939 /.rubocop.yml | |
parent | 7fc499d1353f98b96c09ee755045e4aa37880962 (diff) | |
download | rails-6f58b2cfc97d9ac2358600f18b0fabc48fdfc2c6.tar.gz rails-6f58b2cfc97d9ac2358600f18b0fabc48fdfc2c6.tar.bz2 rails-6f58b2cfc97d9ac2358600f18b0fabc48fdfc2c6.zip |
Enable `Layout/EmptyLinesAroundBlockBody` to reduce review cost in the future
We sometimes ask "✂️ extra blank lines" to a contributor in reviews like
https://github.com/rails/rails/pull/33337#discussion_r201509738.
It is preferable to deal automatically without depending on manpower.
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 7327f1e631..3e3b963a47 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -52,6 +52,9 @@ Layout/EndAlignment: Layout/EmptyLineAfterMagicComment: Enabled: true +Layout/EmptyLinesAroundBlockBody: + Enabled: true + # In a regular class definition, no empty lines around the body. Layout/EmptyLinesAroundClassBody: Enabled: true |