From a2623be3da72313d47ac1e203d54c7230e8d72c7 Mon Sep 17 00:00:00 2001 From: Jordon Bedwell Date: Sun, 3 Jan 2016 00:15:31 -0600 Subject: [PATCH] Be consistent with your hashes and arrays. ``` val = %W(hello world world) ``` ``` var = %W( hello world ) ``` ``` var = %W(hello world) ``` --- .rubocop.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 66b8552d..478837c3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,7 @@ Style/IndentHash: { EnforcedStyle: align_braces } Style/StringLiteralsInInterpolation: { EnforcedStyle: double_quotes } +Style/IndentArray: { EnforcedStyle: consistent } +Style/IndentHash: { EnforcedStyle: consistent } Style/StringLiterals: { EnforcedStyle: none } Metrics/MethodLength: { Max: 24 } Metrics/ClassLength: { Max: 240 }