-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy path.rubocop.yml
58 lines (46 loc) · 955 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
53
54
55
56
57
58
AllCops:
Include:
- '**/Rakefile'
Exclude:
- 'benchmarks/**/*'
- 'bin/**/*'
- 'pkg/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
TargetRubyVersion: 2.3
Documentation:
Enabled: false # TODO: Enable again once we have more docs
Metrics/AbcSize:
Exclude:
- 'lib/readthis/expanders.rb'
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Metrics/ClassLength:
Max: 200
Metrics/CyclomaticComplexity:
Exclude:
- 'lib/readthis/expanders.rb'
Metrics/LineLength:
Max: 100
Metrics/MethodLength:
Max: 20
Naming/FileName:
Exclude:
- 'Gemfile'
- 'Rakefile'
Style/EmptyCaseCondition:
Enabled: false
Style/FrozenStringLiteralComment:
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'lib/readthis/expanders.rb'
- 'spec/**/*'
# Numeric predicates are incompatible with Ruby < 2.3
Style/NumericPredicate:
Enabled: false
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%w': "[]"
'%W': "[]"