-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
113 lines (90 loc) · 1.99 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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-capybara
- rubocop-performance
inherit_gem:
rubocop-govuk:
- config/default.yml
inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 3.1
NewCops: enable
Exclude:
- 'bin/*'
- 'db/schema.rb'
- 'node_modules/**/*'
- 'spec/models/reports/applications_spec.rb'
Style/MethodCallWithArgsParentheses:
AllowParenthesesInMultilineCall: true
AllowParenthesesInStringInterpolation: true
AllowParenthesesInChaining: true
Enabled: true
Exclude:
- 'spec/**/*'
- 'db/migrate/*'
- 'config/routes/*'
Style/HashSyntax:
EnforcedShorthandSyntax: consistent
Style/Documentation:
Enabled: false
Lint/ConstantDefinitionInBlock:
Exclude:
- 'spec/**/*'
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*'
Lint/EmptyWhen:
Exclude:
- 'db/seeds.rb'
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/**/*.rb'
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/application.rb'
Performance/MethodObjectAsBlock:
Exclude:
- 'app/models/summary.rb'
- 'app/services/update_form/parsed_params.rb'
Metrics/MethodLength:
Exclude:
- 'spec/features/*'
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/**/*'
RSpec/ContextWording:
Enabled: false
RSpec/ExampleLength:
Max: 10
Exclude:
- 'spec/features/*'
- 'spec/models/reports/home_office_spec.rb'
RSpec/NoExpectationExample:
Exclude:
- 'spec/features/**/*'
RSpec/MultipleExpectations:
Max: 4
Exclude:
- 'spec/queries/**/*'
- 'spec/features/**/*'
RSpec/MessageSpies:
Exclude:
- 'spec/services/update_form_spec.rb'
RSpec/VerifiedDoubles:
Exclude:
- 'spec/services/step_flow_spec.rb'
RSpec/NestedGroups:
Max: 4
RSpec/DescribeClass:
Exclude:
- 'spec/jobs/schedule_job_spec.rb'
RSpec/AnyInstance:
Exclude:
- 'spec/requests/submission_spec.rb'
RSpec/MultipleMemoizedHelpers:
Exclude:
- 'spec/models/event_spec.rb'
- 'spec/helpers/audit_message_helper_spec.rb'