-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
32 lines (26 loc) · 769 Bytes
/
Copy path.rubocop.yml
File metadata and controls
32 lines (26 loc) · 769 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
require: rubocop-rspec
AllCops:
TargetRubyVersion: 3.4
NewCops: enable
# I keep the length as short as possible without having too much pain.
# 80 is too much pain, but many disagree.
Layout/LineLength:
Max: 100
# Tests and Rake tasks may have long blocks.
Metrics/BlockLength:
Exclude:
- '**/Rakefile'
- '**/spec/**/*_spec.rb'
- '**/test/**/*_test.rb'
Metrics/ClassLength:
Exclude:
- '**/test/**/*_test.rb'
- '**/test/**/test_*.rb'
# Mostly following https://robots.thoughtbot.com/lets-not
# which increases example length.
RSpec/ExampleLength:
Enabled: false
# I may have PDF or otherwise graphics related specs
# that combine many expectations in one spec for rendering convenience.
RSpec/MultipleExpectations:
Enabled: false