-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
71 lines (56 loc) · 1.28 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
require:
- rubocop-rspec
inherit_gem:
rubocop-govuk:
- config/default.yml
- config/rails.yml
- config/rspec.yml
pundit:
- config/rubocop-rspec.yml
inherit_mode:
merge:
- Exclude
Style/NumericLiterals:
Exclude:
- db/schema.rb
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: never
Layout/AccessModifierIndentation:
EnforcedStyle: indent
Lint/MissingSuper:
AllowedParentClasses:
- ApplicationService
RSpec/Dialect:
Enabled: true
Exclude:
- spec/support/shared_examples/system/**/*.rb
PreferredMethods:
background: :before
given: :let
given!: :let!
feature: :describe
RSpec/IndexedLet:
Enabled: false
# Switch off deprecated cop
Rails/FilePath:
Enabled: false
# And replace with the preferred cops
RSpec/SpecFilePathFormat:
Enabled: true
CustomTransform:
DfESignInUser: dfe_sign_in_user
DfESignIn: dfe_sign_in
RSpec/SpecFilePathSuffix:
Enabled: true
RSpec/VerifiedDoubleReference:
Enabled: false
Rails/LexicallyScopedActionFilter:
Exclude:
- app/controllers/placements/application_controller.rb
RSpec/NoExpectationExample:
Exclude:
- spec/support/shared_examples/system/**/*.rb
- spec/smoke_tests/**/*.rb