-
Notifications
You must be signed in to change notification settings - Fork 59
/
.rubocop.yml
46 lines (37 loc) · 963 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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
SuggestExtensions: false
Exclude:
- 'bin/*'
- 'gemfiles/*'
- 'spec/dummy/db/schema.rb'
- 'vendor/bundle/**/*'
- 'tmp/**/*'
# TODO: Define a spec.required_ruby_version when shipping a new version
Gemspec/RequiredRubyVersion:
Enabled: false
Naming/FileName:
Exclude:
- lib/jsonapi-authorization.rb
- Appraisals
Layout/LineLength:
Enabled: true
Max: 100
Exclude:
- spec/requests/**/*.rb
- jsonapi-authorization.gemspec
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
# We don't want rubocop to enforce splitting methods and stuff like that.
Metrics:
Enabled: false
# We don't care what kind of quotes you use
Style/StringLiterals:
Enabled: false
# It's up to us how much we want to document the code
Style/Documentation:
Enabled: false