From 58283b5acdb3434a1085120aa22f8905dad2f513 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Thu, 21 Jul 2016 13:49:13 +0200 Subject: explain the meaning of some RuboCop config options [ci skip] For consistency mainly. Also, some have a name that could make the reader think they enforce the opposite of what they do, because the default is not visible there. --- .rubocop.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 62fb263c9e..fbca606605 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -26,18 +26,26 @@ Style/AndOr: Lint/RequireParentheses: Enabled: true +# Do not use braces for hash literals when they are the last argument of a +# method call. Style/BracesAroundHashParameters: Enabled: true +# Method definitions after `private` or `protected` isolated calls need one +# extra level of indentation. Style/IndentationConsistency: Enabled: true EnforcedStyle: rails +# In a regular class definition, no empty lines around the body. Style/EmptyLinesAroundClassBody: Enabled: true +# In a regular module definition, no empty lines around the body. Style/EmptyLinesAroundModuleBody: Enabled: true +# Align `end` with the matching keyword or starting expression except for +# assignments, where it should be aligned with the LHS. Lint/EndAlignment: AlignWith: variable -- cgit v1.2.3