-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
40 lines (34 loc) · 1.07 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
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
- config/rspec.yml
inherit_mode:
merge:
- Exclude
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:
- "vendor/**/*"
- "db/**/*"
- "bin/**/*"
- "config/**/*"
- "tmp/**/*"
# This seems very much personal choice, and would alter every string
# if we switched to the GDS standard.
Style/StringLiterals:
EnforcedStyle: single_quotes
# This cops seems defective. Sometimes it does not detect when the variable
# is referenced elsewhere such as in shared examples.
RSpec/LetSetup:
Enabled: false
# The autocorrect for this cop generates horrendously long lines. I think
# we're better off just disabling it as it's only for test styles anyway.
RSpec/MatchArray:
Enabled: false
# There would be no value in going through and updating the 100+ violations of
# this puritanical cop
RSpec/IndexedLet:
Enabled: false