-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.rubocop.yml
43 lines (34 loc) · 901 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
inherit_from: .rubocop_todo.yml
require: rubocop-rspec
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
Metrics/LineLength:
Description: 'Limit lines to 100 characters.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
Enabled: true
Max: 150
Style/AndOr:
Description: 'Use &&/|| instead of and/or.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Style/StringLiterals:
EnforcedStyle: double_quotes
AllCops:
TargetRubyVersion: 2.4
Exclude:
- config/initializers/*.rb
- 'vendor/**/*'
- 'db/**/*'
- 'tmp/**/*'
- 'bin/**/*'
- spec/rails_helper.rb
- spec/spec_helper.rb
- test/test_helper.rb
- Guardfile
- config/application.rb
- db/schema.rb
Rails:
Enabled: true