-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.rubocop.yml
More file actions
53 lines (39 loc) · 1 KB
/
.rubocop.yml
File metadata and controls
53 lines (39 loc) · 1 KB
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
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
inherit_from:
- .rubocop_todo.yml
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:
- "vendor/**/*"
- "db/**/*"
- "bin/**/*"
- "config/**/*"
- "tmp/**/*"
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']
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/IndexedLet:
Enabled: false
Style/RedundantParentheses:
Enabled: false
RSpec/SubjectStub:
Enabled: false
Style/DateTime:
Enabled: false