forked from paper-trail-gem/paper_trail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
38 lines (32 loc) · 904 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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