2015-11-27 21:16:37 -05:00
|
|
|
inherit_from: .rubocop_todo.yml
|
|
|
|
|
2016-02-15 18:13:45 -05:00
|
|
|
# Please:
|
|
|
|
#
|
|
|
|
# - Comment any deviations from the Ruby Style Guide
|
|
|
|
# - Alphabetize cops
|
|
|
|
# - Only include permanent config; temporary goes in .rubocop_todo.yml
|
|
|
|
|
|
|
|
# We do not control `schema.rb`. Exclude it from all cops.
|
2015-11-01 21:33:16 -05:00
|
|
|
AllCops:
|
|
|
|
Exclude:
|
2016-02-15 18:13:45 -05:00
|
|
|
- test/dummy/db/schema.rb
|
|
|
|
|
|
|
|
# The Ruby Style Guide recommends to "Limit lines to 80 characters."
|
|
|
|
# (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
|
|
|
|
# but 100 is also reasonable.
|
|
|
|
Metrics/LineLength:
|
|
|
|
Max: 100
|
|
|
|
|
|
|
|
# Migrations often contain long up/down methods, and extracting smaller methods
|
|
|
|
# from these is of questionable value.
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Exclude:
|
|
|
|
- 'test/dummy/db/migrate/*'
|
2015-11-27 23:37:29 -05:00
|
|
|
|
|
|
|
Style/AlignParameters:
|
|
|
|
EnforcedStyle: with_fixed_indentation
|
|
|
|
|
2016-01-18 14:27:07 -05:00
|
|
|
# Please use semantic style, e.g. `do` when there's a side-effect, else `{}`.
|
|
|
|
# The semantic style is too nuanced to lint, so the cop is disabled.
|
|
|
|
Style/BlockDelimiters:
|
|
|
|
Enabled: false
|
|
|
|
|
2015-11-27 23:37:29 -05:00
|
|
|
Style/DotPosition:
|
|
|
|
EnforcedStyle: trailing
|
|
|
|
|
|
|
|
# The Ruby Style Guide says:
|
|
|
|
#
|
|
|
|
# > Use \ instead of + or << to concatenate two string literals at line end.
|
|
|
|
#
|
|
|
|
# but in my experience the `\` style is rarely used and less readable. Please
|
|
|
|
# concatenate multiline strings with `+` or use a HEREDOC.
|
|
|
|
Style/LineEndConcatenation:
|
|
|
|
Enabled: false
|