-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.rubocop.yml
123 lines (94 loc) · 1.92 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
require:
- rubocop-rspec
AllCops:
Exclude:
- Rakefile
- config.ru
- db/schema.rb
- bin/*
- node_modules/**/*
- spec/models/wizard/**/* # Separate PR splits this out into gem
- fetch_config.rb # auto-generated file to authenticate with Azure
Gemspec/RequiredRubyVersion:
Exclude:
- node_modules/dfe-autocomplete/dfe-autocomplete.gemspec
RSpec/Dialect:
Enabled: false
Lint/AmbiguousOperator:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/**/*steps_controller.rb'
Naming/MethodParameterName:
Exclude:
- 'app/components/arrow_component.rb'
Naming/VariableNumber:
AllowedIdentifiers:
- fact1
- fact2
- quote1
- quote2
- quote3
Rails/UnknownEnv:
Environments:
- development
- test
- rolling
- preprod
- production
- pagespeed
RSpec/AnyInstance:
Enabled: false
RSpec/ImplicitSubject:
Enabled: false
Style/SignalException:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/StringConcatenation:
Enabled: false
Style/ClassVars:
Enabled: false
RSpec/BeforeAfterAll:
Exclude:
- spec/requests/redirects_spec.rb
RSpec/InstanceVariable:
Exclude:
- spec/features/content_pages_spec.rb
- spec/requests/redirects_spec.rb
- spec/components/**/*.rb
RSpec/NamedSubject:
Exclude:
- spec/**/*.rb
RSpec/StubbedMock:
Enabled: false
RSpec/SubjectStub:
Exclude:
- spec/**/*.rb
RSpec/ExampleLength:
Exclude:
- spec/**/*.rb
RSpec/MessageSpies:
Exclude:
- spec/**/*.rb
RSpec/MultipleExpectations:
Exclude:
- spec/**/*.rb
RSpec/LeadingSubject:
Enabled: false
RSpec/NestedGroups:
Max: 6
RSpec/MultipleMemoizedHelpers:
Max: 15
Rails/SaveBang:
Exclude:
- spec/**/*.rb
Style/HashSyntax:
EnforcedShorthandSyntax: never