From 9c0c90979a759a41628e0cd9d73821b0b34d03fc Mon Sep 17 00:00:00 2001 From: Andrew White Date: Thu, 22 Feb 2018 06:26:48 +0000 Subject: Add cop for preferring 'Foo.method' over 'Foo::method' --- .rubocop.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.rubocop.yml') 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 -- cgit v1.2.3