forked from site-prism/site_prism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
59 lines (47 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
inherit_from: .rubocop_todo.yml
# This allows us to merge arrays for Exclude rules on AllCops or a specific cop
inherit_mode:
merge:
- Exclude
require:
- rubocop-performance
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.6
NewCops: enable
# We don't use MFA yet
Gemspec/RequireMFA:
Enabled: false
# This allows a longer LineLength and ignores cuke definitions
Layout/LineLength:
Max: 140
AllowedPatterns:
- ^Given
- ^When
- ^Then
# We are a DSL, so we occasionally need to use `.set_` prefixes on our DSL names
Naming/AccessorMethodName:
Enabled: false
# This will be present until v5 beta
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/site_prism/page.rb'
# This is a single standardised transform
RSpec/FilePath:
CustomTransform:
RSpecMatchers: rspec_matchers
# Stylistic preference to make the RSpec tests flow better
RSpec/MessageSpies:
EnforcedStyle: receive
# We need to test the RSpec matcher is correctly calling the has_no method
RSpec/MultipleExpectations:
Exclude:
- spec/site_prism/element_spec.rb
# We don't need to document any testing code
Style/Documentation:
Exclude:
- features/**/*
# This is a better style, and should be the default IMO
Style/RegexpLiteral:
EnforcedStyle: slashes
AllowInnerSlashes: true