-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
45 lines (40 loc) · 881 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
# Please keep AllCops, Bundler, Layout, Style, Metrics groups and then order cops
# alphabetically
#
# References:
# * https://github.com/bbatsov/ruby-style-guide
# * https://rubocop.readthedocs.io/
require:
- rubocop-rails
- rubocop-rspec
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: false
TargetRubyVersion: 2.7.0
NewCops: enable
Exclude:
# auto-generated
- 'bin/*'
- 'db/schema.rb'
- 'coverage/**/*'
# temp files
- 'tmp/**/*'
# node_modules could contain Ruby code
- 'node_modules/**/*'
# vendor/ dir is used by most CI services
- 'vendor/**/*'
Layout/LineLength:
Max: 100
Style/Documentation:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
ExcludedMethods:
- namespace
- draw
- context
- describe
- shared_examples
- shared_examples_for