style: unify indentation in RuboCop configuration

Some elements already used two-space indentation and we also prefer two
spaces in our Ruby code.

Closes #306.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
Martin Afanasjew 2016-05-31 22:10:59 +02:00
parent 8b97a00036
commit 8e728d6604

View File

@ -5,111 +5,111 @@ AllCops:
# 1.8-style hash keys # 1.8-style hash keys
Style/HashSyntax: Style/HashSyntax:
EnforcedStyle: hash_rockets EnforcedStyle: hash_rockets
# ruby style guide favorite # ruby style guide favorite
Style/StringLiterals: Style/StringLiterals:
EnforcedStyle: double_quotes EnforcedStyle: double_quotes
# consistency with above # consistency with above
Style/StringLiteralsInInterpolation: Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes EnforcedStyle: double_quotes
# percent-x is allowed for multiline # percent-x is allowed for multiline
Style/CommandLiteral: Style/CommandLiteral:
EnforcedStyle: mixed EnforcedStyle: mixed
# paths abound, easy escape # paths abound, easy escape
Style/RegexpLiteral: Style/RegexpLiteral:
EnforcedStyle: slashes EnforcedStyle: slashes
# our current conditional style is established, clear and # our current conditional style is established, clear and
# requiring users to change that now would be confusing. # requiring users to change that now would be confusing.
Style/ConditionalAssignment: Style/ConditionalAssignment:
Enabled: false Enabled: false
# no metrics for formulas # no metrics for formulas
Metrics/AbcSize: Metrics/AbcSize:
Enabled: false Enabled: false
Metrics/CyclomaticComplexity: Metrics/CyclomaticComplexity:
Enabled: false Enabled: false
Metrics/MethodLength: Metrics/MethodLength:
Enabled: false Enabled: false
Metrics/ClassLength: Metrics/ClassLength:
Enabled: false Enabled: false
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity:
Enabled: false Enabled: false
# we often need very long lines # we often need very long lines
Metrics/LineLength: Metrics/LineLength:
Enabled: false Enabled: false
# formulas have no mandatory doc # formulas have no mandatory doc
Style/Documentation: Style/Documentation:
Enabled: false Enabled: false
# favor parens-less DSL-style arguments # favor parens-less DSL-style arguments
Lint/AmbiguousOperator: Lint/AmbiguousOperator:
Enabled: false Enabled: false
Lint/AmbiguousRegexpLiteral: Lint/AmbiguousRegexpLiteral:
Enabled: false Enabled: false
Lint/AssignmentInCondition: Lint/AssignmentInCondition:
Enabled: false Enabled: false
Lint/ParenthesesAsGroupedExpression: Lint/ParenthesesAsGroupedExpression:
Enabled: false Enabled: false
# compact style # compact style
Style/EmptyLineBetweenDefs: Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true AllowAdjacentOneLineDefs: true
# port numbers and such tech stuff # port numbers and such tech stuff
Style/NumericLiterals: Style/NumericLiterals:
Enabled: false Enabled: false
# consistency and readability when faced with string interpolation # consistency and readability when faced with string interpolation
Style/PercentLiteralDelimiters: Style/PercentLiteralDelimiters:
PreferredDelimiters: PreferredDelimiters:
'%': '()' '%': '()'
'%i': '()' '%i': '()'
'%q': '()' '%q': '()'
'%Q': '()' '%Q': '()'
'%r': '{}' '%r': '{}'
'%s': '()' '%s': '()'
'%w': '[]' '%w': '[]'
'%W': '[]' '%W': '[]'
'%x': '()' '%x': '()'
# conflicts with DSL-style path concatenation with `/` # conflicts with DSL-style path concatenation with `/`
Style/SpaceAroundOperators: Style/SpaceAroundOperators:
Enabled: false Enabled: false
# not a problem for typical shell users # not a problem for typical shell users
Style/SpecialGlobalVars: Style/SpecialGlobalVars:
Enabled: false Enabled: false
# `system` is a special case and aligns on second argument # `system` is a special case and aligns on second argument
Style/AlignParameters: Style/AlignParameters:
Enabled: false Enabled: false
# counterproductive in formulas, notably within the install method # counterproductive in formulas, notably within the install method
Style/GuardClause: Style/GuardClause:
Enabled: false Enabled: false
Style/IfUnlessModifier: Style/IfUnlessModifier:
Enabled: false Enabled: false
# dashes in filenames are typical # dashes in filenames are typical
# TODO: enforce when rubocop has fixed this # TODO: enforce when rubocop has fixed this
# https://github.com/bbatsov/rubocop/issues/1545 # https://github.com/bbatsov/rubocop/issues/1545
Style/FileName: Style/FileName:
Enabled: false Enabled: false
# no percent word array, being friendly to non-ruby users # no percent word array, being friendly to non-ruby users
# TODO: enforce when rubocop has fixed this # TODO: enforce when rubocop has fixed this
# https://github.com/bbatsov/rubocop/issues/1543 # https://github.com/bbatsov/rubocop/issues/1543
Style/WordArray: Style/WordArray:
Enabled: false Enabled: false
Style/UnneededCapitalW: Style/UnneededCapitalW:
Enabled: false Enabled: false
# we use raise, not fail # we use raise, not fail
Style/SignalException: Style/SignalException: