-
Notifications
You must be signed in to change notification settings - Fork 9
/
.rubocop.yml
85 lines (74 loc) · 2.47 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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara
- rubocop-factory_bot
inherit_from:
- ./config/rubocop/layout.yml
- ./config/rubocop/lint.yml
- ./config/rubocop/metrics.yml
- ./config/rubocop/naming.yml
- ./config/rubocop/rails.yml
- ./config/rubocop/rspec.yml
- ./config/rubocop/style.yml
- ./config/rubocop/factory_bot.yml
AllCops:
NewCops: enable
Exclude:
- "bin/*"
- "db/schema.rb"
- "node_modules/**/*"
RSpec/AnyInstance:
Enabled: false
RSpec/NestedGroups:
Max: 4
# Remove after migration
Naming/PredicateName:
Enabled: false
# Remove after we fix offences
Rails/I18nLocaleTexts:
Exclude:
- "app/controllers/publish/access_requests_controller.rb"
- "app/controllers/publish/courses/draft_rollover_controller.rb"
- "app/controllers/publish/courses_controller.rb"
- "app/controllers/publish/providers/schools_controller.rb"
- "app/controllers/publish/users_check_controller.rb"
- "app/controllers/support/providers/users_controller.rb"
- "app/forms/publish/about_your_organisation_form.rb"
- "app/forms/publish/degree_grade_form.rb"
- "app/forms/publish/degree_start_form.rb"
- "app/forms/publish/gcse_requirements_form.rb"
- "app/forms/publish/initial_request_form.rb"
- "app/forms/publish/school_form.rb"
- "app/forms/publish/notification_form.rb"
- "app/forms/publish/provider_contact_form.rb"
- "app/forms/publish/provider_skilled_worker_visa_form.rb"
- "app/forms/publish/provider_student_visa_form.rb"
- "app/forms/publish/provider_visa_form.rb"
- "app/forms/publish/repeat_request_form.rb"
- "app/forms/publish/subject_requirement_form.rb"
- "app/models/provider.rb"
- "app/models/site.rb"
- "app/models/site.rb"
- "app/models/user.rb"
- "spec/validators/reference_number_format_validator_spec.rb"
- "app/controllers/publish/users_edit_check_controller.rb"
- "app/controllers/support/courses_controller.rb"
- "app/controllers/support/schools_controller.rb"
- "app/controllers/support/providers/users_check_controller.rb"
Style/HashSyntax:
Exclude:
- 'docs/lib/govuk_tech_docs/open_api/renderer.rb'
Style/MapIntoArray:
Exclude:
- 'docs/lib/govuk_tech_docs/open_api/renderer.rb'
Naming/BlockForwarding:
Exclude:
- 'docs/lib/govuk_tech_docs/open_api/extension.rb'
RSpec/NoExpectationExample:
Exclude:
- 'spec/features/**/*'
- 'spec/system/**/*'
RSpec/MultipleMemoizedHelpers:
Max: 29