-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.rubocop.yml
52 lines (38 loc) · 994 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
inherit_from:
- .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.0
Exclude:
- tmp/**/*
- lib/bundler/vendor/**/*
DisplayCopNames: true
# Lint
Lint/EndAlignment:
AlignWith: variable
AutoCorrect: true
# Style
Metrics/LineLength:
Max: 100
Style/AccessModifierIndentation:
EnforcedStyle: outdent
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: falses
Style/MultilineOperationIndentation:
EnforcedStyle: indented
# We adopted raise instead of fail.
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
# Having these make it easier to *not* forget to add one when adding a new
# value and you can simply copy the previous line.
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma