forked from wryobservations/rummager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
57 lines (43 loc) · 1.14 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
require: rubocop-rspec
Style/ConditionalAssignment:
Enabled: false
Performance/TimesMap:
Enabled: false
AllCops:
TargetRubyVersion: 2.3
Metrics/BlockLength:
Exclude:
- 'lib/tasks/*.rake'
- 'spec/**/*'
# Don't care about single/double quotes inside interpolation
Style/StringLiteralsInInterpolation:
Enabled: false
# No braces around parameters doesn't work very nicely in this
# project because there are lots of hashes with string keys.
Style/BracesAroundHashParameters:
Enabled: false
# This cop doesn't make things clearer in a lot of cases. Using the modifier
# should be up to the developer.
Style/IfUnlessModifier:
Enabled: false
# The class vars in these two files are acceptable because
# they aren't inherited.
Style/ClassVars:
Exclude:
- 'app.rb'
- 'lib/search/suggestion_blocklist.rb'
# Cannot use %i arrays as rake task arguments
Style/SymbolArray:
Exclude:
- 'lib/tasks/*.rake'
Style/MethodCalledOnDoEndBlock:
Exclude:
- 'spec/**/*'
RSpec/DescribeClass:
Enabled: false
RSpec/InstanceVariable:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false