-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
53 lines (44 loc) · 1022 Bytes
/
.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
require:
- rubocop-rspec
- rubocop-rails
Rails:
Enabled: true
Style/Documentation:
Enabled: true
AllCops:
NewCops: enable
SuggestExtensions: false
DisplayCopNames: true
TargetRubyVersion: 2.7
TargetRailsVersion: 5.2
Exclude:
- bin/**/*
- vendor/**/*
- config/**/*
- build/**/*
- gemfiles/**/*
Metrics/BlockLength:
Exclude:
- Rakefile
- spec/**/*.rb
- '**/*.rake'
- '*.gemspec'
# MFA is not yet enabled for our gems yet.
Gemspec/RequireMFA:
Enabled: false
# Document all the things.
Style/DocumentationMethod:
Enabled: true
RequireForNonPublicMethods: true
# Because +expect_any_instance_of().to have_received()+ is not
# supported with the +with(hash_including)+ matchers
RSpec/MessageSpies:
EnforcedStyle: receive
# Allow deeper nesting because of the predefined/non-predefined -
# bang/non-bang cases.
RSpec/NestedGroups:
Max: 4
# We stay at 80 characters per line.
# See: https://rubystyle.guide/#max-line-length
Layout/LineLength:
Max: 80