From afd0e1dda553713909a5f55464e3e9cce25037d2 Mon Sep 17 00:00:00 2001 From: Will Fleming Date: Tue, 15 Mar 2016 13:33:04 -0400 Subject: [PATCH] Enforce double quotes for strings all the time. This rule seems like a strange exception to our normal "always double quotes" practice. It also leads to (to me) visually confusing code when methods dealing with strings appear in #{} blocks. I suggest me make this also require double quotes so everything is consistent. --- rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rubocop.yml b/rubocop.yml index 836ea0c..1d7ae76 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -25,6 +25,9 @@ Style/Documentation: Style/StringLiterals: EnforcedStyle: double_quotes +Style/StringLiteralsInInterpolation: + EnforcedStyle: double_quotes + # Use a trailing comma to keep diffs clean when elements are inserted or removed Style/TrailingCommaInArguments: EnforcedStyleForMultiline: comma