-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspec.yml
30 lines (24 loc) · 982 Bytes
/
rspec.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
# Excluding as we set up the rake specs as 'describe "rake namespace:task", type: :task do' which determines what task
# is being tested, and this cop doesn't like having a describe block without a class or module name.
RSpec/DescribeClass:
Exclude:
- spec/tasks/**/*
# Avoid opening modules and defining specs within them
RSpec/DescribedClassModuleWrapping:
Enabled: true
# This is to prevent Rubocop from bugging on a spec helper that doesn't contain an example, which the support ones don't
RSpec/LeadingSubject:
Exclude:
- spec/support
# Allow arrays, hashes, and method calls to be counted as one line in examples
RSpec/ExampleLength:
CountAsOne: ["array", "hash", "method_call"]
# Because 5 is a bit mean
RSpec/MultipleMemoizedHelpers:
Max: 10
# Allow there to be a max of 4 example groups deep in Rspec tests
RSpec/NestedGroups:
Max: 4
# Multi-line examples must have a description
RSpec/ExampleWithoutDescription:
EnforcedStyle: single_line_only