aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-27 15:16:12 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-11-27 15:16:12 +0900
commit7ce8a6af1b8fdbc9ee553bda3fd725bea169c2f3 (patch)
tree93585ac5afe26c7aa56c7190f258de967fdd0644 /.rubocop.yml
parent28333d62ee15ec95cc4270c880c90f395e075b3b (diff)
downloadrails-7ce8a6af1b8fdbc9ee553bda3fd725bea169c2f3.tar.gz
rails-7ce8a6af1b8fdbc9ee553bda3fd725bea169c2f3.tar.bz2
rails-7ce8a6af1b8fdbc9ee553bda3fd725bea169c2f3.zip
Enable `Style/DefWithParentheses` rubocop rule
The def with blank `()` was newly added in #31176, but we have not used the blank `()` style in most part of our code base. So I've enabled `Style/DefWithParentheses` to prevent to newly added the code.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 399fc66730..f6259fe432 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -76,6 +76,9 @@ Layout/SpaceAroundOperators:
Layout/SpaceBeforeFirstArg:
Enabled: true
+Style/DefWithParentheses:
+ Enabled: true
+
# Defining a method with parameters needs parentheses.
Style/MethodDefParentheses:
Enabled: true