aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-02-12 20:44:15 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-02-12 20:44:15 +0900
commit16ee3ccc9c7992269e69e9e809257d56c81ce174 (patch)
treef9cc344c906515c62e872f06d9545acf5eaa7dd9 /.rubocop.yml
parent4fed08fa787a316fa51f14baca9eae11913f5050 (diff)
downloadrails-16ee3ccc9c7992269e69e9e809257d56c81ce174.tar.gz
rails-16ee3ccc9c7992269e69e9e809257d56c81ce174.tar.bz2
rails-16ee3ccc9c7992269e69e9e809257d56c81ce174.zip
Add `Style/EmptyLinesAroundMethodBody` in `.rubocop.yml` and remove extra empty lines
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index a9ced4c0a5..0d1d0c36ce 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -33,6 +33,10 @@ Style/EmptyLines:
Style/EmptyLinesAroundClassBody:
Enabled: true
+# In a regular method definition, no empty lines around the body.
+Style/EmptyLinesAroundMethodBody:
+ Enabled: true
+
# In a regular module definition, no empty lines around the body.
Style/EmptyLinesAroundModuleBody:
Enabled: true