From a77447f4da15dd3c2b02563fa6f5769c1d91e1bd Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 21 May 2018 21:04:01 +0900 Subject: Enable `Lint/StringConversionInInterpolation` rubocop rule To prevent redundant `to_s` like https://github.com/rails/rails/pull/32923#discussion_r189460008 automatically in the future. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 954ab3b1cb..7327f1e631 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -162,6 +162,9 @@ Style/UnneededPercentQ: Lint/RequireParentheses: Enabled: true +Lint/StringConversionInInterpolation: + Enabled: true + Style/RedundantReturn: Enabled: true AllowMultipleReturnValues: true -- cgit v1.2.3