config-files-api/config_files_api

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
# Following
# https://github.com/SUSE/style-guides/blob/master/Ruby.md

Metrics/BlockLength:
  Exclude:
    - 'spec/**/*'

# https://github.com/SUSE/style-guides/blob/master/Ruby.md#strings
Style/StringLiterals:
  EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
  EnforcedStyle: double_quotes

# Is there any justification for "aligned" which is the default?
Layout/MultilineOperationIndentation:
  EnforcedStyle: indented

# disable heredoc style until we support ruby 2.3 only
Layout/HeredocIndentation:
  Enabled: false

# https://github.com/SUSE/style-guides/blob/master/Ruby.md#arrays
Style/WordArray:
  Enabled: false

# same as WordArray
Style/SymbolArray:
  Enabled: false

# align arrows:
# "foo"     => true
# "foo_bar" => false
# and also colons:
# foo:     true
# foo_bar: false
Layout/HashAlignment:
  EnforcedHashRocketStyle: table
  EnforcedColonStyle: table

# no extra indentation for multiline function calls
Layout/ParameterAlignment:
  EnforcedStyle: with_fixed_indentation

# no extra indentation for case
Layout/CaseIndentation:
  EnforcedStyle: end

# "unless" has a different connotation than "if not"
Style/NegatedIf:
  Enabled: false

# use "raise" instead of "fail"
Style/SignalException:
  EnforcedStyle: only_raise

# do not force %r
Style/RegexpLiteral:
  Enabled: false

# Easier recognization if access modified used
Layout/AccessModifierIndentation:
  EnforcedStyle: outdent

# method_alias is safer and more predictable
Style/Alias:
  EnforcedStyle: prefer_alias_method