-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
46 lines (39 loc) · 1.01 KB
/
.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
require:
- rubocop-rake
- rubocop-rails
- rubocop-performance
- rubocop-thread_safety
AllCops:
NewCops: enable
Exclude:
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- '.git/**/*'
- 'bin/**/*'
- 'db/schema.rb'
- 'Gemfile.lock'
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
Layout/SpaceInsideArrayLiteralBrackets:
Description: 'Checks the spacing inside array literal brackets.'
Enabled: false
Metrics/MethodLength:
Description: 'Avoid methods longer than 10 lines of code.'
StyleGuide: '#short-methods'
Enabled: true
Max: 15
Lint/MissingSuper:
Description: >-
This cop checks for the presence of constructors and lifecycle callbacks
without calls to `super`.
Enabled: false
Style/FrozenStringLiteralComment:
Description: >-
Add the frozen_string_literal comment to the top of files
to help transition to frozen string literals by default.
Enabled: true
Exclude:
- Gemfile
- Gemfile.lock