-
-
Notifications
You must be signed in to change notification settings - Fork 161
/
Copy path.rubocop.yml
66 lines (53 loc) · 1.45 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
inherit_from: .rubocop_todo.yml
inherit_mode:
merge:
- Exclude
require:
- rubocop-packaging
- rubocop-performance
- rubocop-rspec
AllCops:
DisplayCopNames: true
NewCops: enable
TargetRubyVersion: 3.0
Exclude:
- 'bin/cucumber'
- 'bin/rspec'
- 'bin/rake'
# Ignore gemfiles created by Appraisal
Bundler/OrderedGems:
Exclude:
- 'gemfiles/*.gemfile'
# Put development dependencies in the gemspec so rubygems.org knows about them.
# Don't complicate things in fixture apps and gems
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
Exclude:
- 'fixtures/**/*'
# TODO: Enable once the effects on using cukebot are clear and have been taken care of
Gemspec/RequireMFA:
Enabled: false
# Be relatively lenient with line length
Layout/LineLength:
Max: 94
# Assume the programmer knows how bracketed block syntax works
Lint/AmbiguousBlockAssociation:
Enabled: false
# Assume the programmer knows precendence rules
Lint/AmbiguousOperatorPrecedence:
Enabled: false
# Spec blocks can be any size
Metrics/BlockLength:
Exclude:
- '**/*.gemspec'
- 'spec/**/*'
# Stylistic preference for cucumber
RSpec/MessageSpies:
EnforcedStyle: receive
# This cop does not work properly with predicates that take arguments.
# TODO: Re-enable once https://github.com/rubocop/rubocop-rspec/issues/466 is resolved.
RSpec/PredicateMatcher:
Enabled: false
# This cop doesn't seem to add much for us.
Style/FetchEnvVar:
Enabled: false