-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
40 lines (33 loc) · 841 Bytes
/
.rubocop.yml
File metadata and controls
40 lines (33 loc) · 841 Bytes
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
plugins:
- rubocop-factory_bot
- rubocop-rake
- rubocop-rspec
AllCops:
NewCops: enable
TargetRubyVersion: 3.2
Exclude:
- bin/**/*
- exe/**/*
- vendor/**/*
Naming/MemoizedInstanceVariableName:
Enabled: false
# Count multi-line hashes and arrays in examples as one line.
RSpec/ExampleLength:
CountAsOne:
- array
- hash
# Favor more explicit contexts over limited nesting.
RSpec/NestedGroups:
AllowedGroups:
- context
# Ignore the expected format for MySQL specs.
RSpec/SpecFilePathFormat:
Exclude:
- spec/unit/source/mysql_spec.rb
# Allow stubbing methods from the system under test, which is useful for testing
# simple helper methods.
# https://thoughtbot.com/blog/don-t-stub-the-system-under-test
RSpec/SubjectStub:
Enabled: false
RSpec/MultipleMemoizedHelpers:
AllowSubject: true