forked from DynamoMTL/spree_shipstation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
53 lines (40 loc) · 1.04 KB
/
.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
53
AllCops:
Exclude:
- ".bundle/**/*" # Auto-generated
- "bin/**/*" # Auto-generated
- "vendor/**/*" # We cannot solve the world's problems
- "spec/dummy/**/*" # We cannot solve the world's problems
- "node_modules/**/*"
Rails:
Enabled: true
Lint/HandleExceptions:
Exclude:
- "config/unicorn/*"
Metrics/AbcSize:
Max: 25
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 20
Style/ClassAndModuleChildren:
Exclude:
- "app/controllers/**/*" # We generally use compact style here
Style/EmptyLinesAroundBlockBody:
Exclude:
# These are naturally DSL-y, and so let's be lenient.
- "spec/**/*"
- "lib/tasks/*.rake"
Style/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines
Style/EmptyLinesAroundModuleBody:
EnforcedStyle: empty_lines
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
Style/TrivialAccessors:
ExactNameMatch: true
Style/Documentation:
Enabled: false