-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
43 lines (39 loc) · 903 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
###########################
# Configuration for rubocop
# in .rubocop.yml
# Most of these are disabling existing cops, primarily
# due to a smattering of different styles and loose
# guidelines for contributions.
#
# Any of these may be changed.
require:
- standard
- rubocop-rails
- rubocop-factory_bot
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara
- rubocop-performance
inherit_gem:
standard: config/base.yml
AllCops:
NewCops: enable
Exclude:
- "node_modules/**/*"
- "public/**/*"
- "vendor/**/*"
Rails:
Enabled: true # enable rubocop-rails cops
RSpec:
Enabled: true # enable rubocop-rspec cops
# * Disable cops here
RSpec/DescribeClass:
Enabled: false # ignore missing comments on classes
Style/StringLiterals:
EnforcedStyle: double_quotes
RSpec/NestedGroups:
Max: 5
RSpec/MultipleExpectations:
Enabled: false
RSpec/ExampleLength:
Max: 10