-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.rubocop.yml
45 lines (34 loc) · 987 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
inherit_from: .rubocop_todo.yml
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
Rails/SaveBang:
Enabled: false
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/**/*"
- "node_modules/**/*"
- "acceptance/**/*"
- 'lib/scripts/remove_services.rb'
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: no_comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: no_comma
Metrics/BlockLength:
AllowedMethods: ['describe', 'context', 'let']
Rails/FilePath:
EnforcedStyle: arguments
Layout/AccessModifierIndentation:
EnforcedStyle: indent