-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
.rubocop.yml
44 lines (35 loc) · 1.06 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
inherit_from: .rubocop_todo.yml
require:
- rubocop-packaging
- rubocop-rake
- rubocop-rspec
AllCops:
# Keep this inline with the gemspec
TargetRubyVersion: 2.5
DisplayCopNames: true
DisplayStyleGuide: true
NewCops: enable
# We do not support MFA at the moment with the new automated release process
Gemspec/RequireMFA:
Enabled: false
# A line length of 200 covers most violations in the repo while still being
# a more up to date length given today's screen sizes
Layout/LineLength:
Max: 200
# We want to permit Exception rescuing in these two instances as they literally guard against the final fail chance
Lint/RescueException:
Exclude:
- lib/cucumber/core/test/action.rb
- lib/cucumber/core/test/around_hook.rb
RSpec/ExampleLength:
CountAsOne: ['array', 'hash', 'heredoc']
# Stylistic preference for cucumber
RSpec/MessageSpies:
EnforcedStyle: receive
# We don't verbosely document this gem
Style/Documentation:
Enabled: false
# Stylistic preference for cucumber
Style/RegexpLiteral:
EnforcedStyle: slashes
AllowInnerSlashes: true