-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.rubocop.yml
55 lines (42 loc) · 1.17 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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.5.0
SuggestExtensions: false
NewCops: disable
Exclude:
- '**/vendor/**/*'
- 'recog/**/*'
Layout/LineLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Style/NumericPredicate:
Description: 'This adds no efficiency nor space saving'
Enabled: false
Style/ZeroLengthPredicate:
Description: 'This adds no efficiency nor space saving'
Enabled: false
Style/StderrPuts:
Description: 'Replaces $stderr.puts with warn() which can suppress messages'
Enabled: false
Metrics/AbcSize:
Enabled: false
Description: 'This is often a red-herring'
Metrics/CyclomaticComplexity:
Enabled: false
Description: 'This is often a red-herring'
Metrics/PerceivedComplexity:
Enabled: false
Description: 'This is often a red-herring'
Metrics/MethodLength:
Description: 'The style guide suggests 10 lines, bumping it up to the current maximum'
Max: 45
Metrics/BlockLength:
Description: 'The style guide suggests 10 lines, bumping it up to the current maximum'
Max: 240
Layout/CommentIndentation:
Exclude:
- 'spec/spec_helper.rb'
Style/BlockComments:
Exclude:
- 'spec/spec_helper.rb'