paper-trail-gem--paper_trail/.rubocop.yml

39 lines
904 B
YAML

inherit_from: .rubocop_todo.yml
AllCops:
Include:
- 'lib/**/*.rb'
- 'paper_trail.gemspec'
- 'Gemfile'
- 'Rakefile'
Exclude:
- 'spec/**/*'
- 'test/**/*'
RunRailsCops: false
DisplayCopNames: true
DisplayStyleGuide: true
StyleGuideCopsOnly: false
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
# 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
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
Metrics/LineLength:
Max: 100