1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Xavier Noria 2016-07-21 13:49:13 +02:00
parent 0800e5dcad
commit 58283b5acd

View file

@ -26,18 +26,26 @@ Style/AndOr:
Lint/RequireParentheses: Lint/RequireParentheses:
Enabled: true Enabled: true
# Do not use braces for hash literals when they are the last argument of a
# method call.
Style/BracesAroundHashParameters: Style/BracesAroundHashParameters:
Enabled: true Enabled: true
# Method definitions after `private` or `protected` isolated calls need one
# extra level of indentation.
Style/IndentationConsistency: Style/IndentationConsistency:
Enabled: true Enabled: true
EnforcedStyle: rails EnforcedStyle: rails
# In a regular class definition, no empty lines around the body.
Style/EmptyLinesAroundClassBody: Style/EmptyLinesAroundClassBody:
Enabled: true Enabled: true
# In a regular module definition, no empty lines around the body.
Style/EmptyLinesAroundModuleBody: Style/EmptyLinesAroundModuleBody:
Enabled: true Enabled: true
# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Lint/EndAlignment: Lint/EndAlignment:
AlignWith: variable AlignWith: variable