aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2018-02-22 06:26:48 +0000
committerAndrew White <andrew.white@unboxed.co>2018-02-22 06:26:48 +0000
commit9c0c90979a759a41628e0cd9d73821b0b34d03fc (patch)
tree185a050bd95d91ad79f5f52f4330bbc859498b47 /.rubocop.yml
parenta5e81342af6b71c7247ec3caf4e68d1baa4e465a (diff)
downloadrails-9c0c90979a759a41628e0cd9d73821b0b34d03fc.tar.gz
rails-9c0c90979a759a41628e0cd9d73821b0b34d03fc.tar.bz2
rails-9c0c90979a759a41628e0cd9d73821b0b34d03fc.zip
Add cop for preferring 'Foo.method' over 'Foo::method'
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 f2f079b0de..3c765d5b1d 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -156,3 +156,7 @@ Style/RedundantReturn:
Style/Semicolon:
Enabled: true
AllowAsExpressionSeparator: true
+
+# Prefer Foo.method over Foo::method
+Style/ColonMethodCall:
+ Enabled: true