-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
45 lines (33 loc) · 911 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
require: rubocop-rspec
AllCops:
# Exclude anything that isn't really part of our code.
# rails_helper is excluded because it's full of solecisms, but it's mostly
# generated code and copy-and-pasted snipets from READMEs.
Exclude:
- "config/**/*"
Style/Documentation:
Enabled: false
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Metrics/BlockLength:
Exclude:
- "spec/**/*"
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: True
RSpec/NestedGroups:
Max: 5
RSpec/LetSetup:
Enabled: false
RSpec/LeakyConstantDeclaration:
Enabled: false
# This seems very much personal choice, and would alter every string
# if we switched to the GDS standard.
Style/StringLiterals:
EnforcedStyle: single_quotes
# I think we disagree with GDS on this one
Style/MethodCalledOnDoEndBlock:
Enabled: false