-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.rubocop.yml
33 lines (30 loc) · 1.13 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
inherit_gem:
rubocop-govuk:
- "config/default.yml"
- "config/rspec.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 repo has a pattern of using doubles to mock DB objects,
# instead of creating them properly in a test DB. Since fields
# of a model like Site are defined dynamically when the records
# are loaded, it's not possible to use "instance_double" to mock
# them - this will lead to an error about a non-existent attribute.
#
# https://github.com/alphagov/bouncer/pull/274#discussion_r510991055
RSpec/VerifiedDoubles:
Exclude:
- "spec/units/bouncer/app_spec.rb"
- "spec/units/host_spec.rb"
- "spec/units/mapping_spec.rb"
- "spec/units/organisation_spec.rb"
- "spec/units/site_spec.rb"