forked from codeforamerica/classifyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
42 lines (35 loc) · 774 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
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- "test/**/*"
- "vendor/**/*"
- "db/**/*"
- "bin/**/*"
- "log/**/*"
- "tmp/**/*"
- "app/views/**/*"
- "config/environments/*"
- "node_modules/**/*"
Naming/VariableNumber:
EnforcedStyle: non_integer
AllowedIdentifiers:
- has_911
Exclude:
- "spec/**/*"
# TODO: Reduce to the default (5) or as close to it as reasonably possible.
RSpec/ExampleLength:
Max: 40
# TODO: Reduce to the default (1).
RSpec/MultipleExpectations:
Max: 6
# TODO: Determine if we can get this down closer to the default (5).
RSpec/MultipleMemoizedHelpers:
Max: 13
RSpec/NestedGroups:
Max: 6
Style/CollectionMethods:
Enabled: true