-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
59 lines (45 loc) · 1.44 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
54
55
56
57
58
59
---
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'client/node_modules/**/*'
- 'db/**/*'
- 'vendor/bundle/**/*'
- 'bin/**/*'
Metrics/LineLength:
Max: 99
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 20
Metrics/ModuleLength:
Max: 300
Style/FileName:
# File names listed in AllCops:Include are excluded by default. Add extra
# excludes here.
Exclude:
- bin/ruby-lint
Style/MultilineOperationIndentation:
EnforcedStyle: indented
Style/SignalException:
# prefer fail for app code, but rails generates raise in binstubs so allow that too
EnforcedStyle: semantic
Style/SpaceAroundEqualsInParameterDefault:
# compatibility with RubyMine defaults (apparently can't override?)
EnforcedStyle: space
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
Style/MultilineMethodCallIndentation:
# can't convince rubymine to not indent 2 spaces with mult-line method calls
Enabled: false
Style/MultilineOperationIndentation:
# can't convince rubymine 7 to not indent 4 spaces with mult-line expect(x).to receive ...
Enabled: false
Style/RegexpLiteral:
# This is required or else rubocop argues with itself when trying to escape a slash on a single-line regex
AllowInnerSlashes: true