-
Notifications
You must be signed in to change notification settings - Fork 194
/
.rubocop.yml
50 lines (42 loc) · 1.38 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
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
inherit_mode:
merge:
- Exclude
# **************************************************************
# TRY NOT TO ADD OVERRIDES IN THIS FILE
#
# This repo is configured to follow the RuboCop GOV.UK styleguide.
# Any rules you override here will cause this repo to diverge from
# the way we write code in all other GOV.UK repos.
#
# See https://github.com/alphagov/rubocop-govuk/blob/main/CONTRIBUTING.md
# **************************************************************
# This has special infrastructure for one-time data
# migration tasks, for which it's common to write to
# STDOUT using 'puts'.
Rails/Output:
Exclude:
- 'db/data_migration/*.rb'
# This alerts on methods that aren't introduced until rails 6.0
# it should be removed when we upgrade.
Style/HashEachMethods:
Enabled: false
# This application uses inheritance as a means to set before_actions for
# permissions, this approach conflicts with this cop.
Rails/LexicallyScopedActionFilter:
Enabled: false
# Sidekiq jobs don't support keyword arguments which make this cop hard
# to apply while maintaining backwards compatibility.
Style/OptionalBooleanParameter:
Exclude:
- 'app/sidekiq/*.rb'
Lint/MissingSuper:
Exclude:
- 'app/components/**/*.rb'
- 'lib/engines/**/app/components/**/*.rb'
Rails/SaveBang:
Exclude:
- 'Rakefile'