-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
43 lines (43 loc) · 934 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
require:
- rubocop-rails
AllCops:
NewCops: disable
Exclude:
- 'node_modules/**/*'
- 'vendor/**/*'
- 'tmp/**/*'
- 'log/**/*'
- 'storage/**/*'
- '.git/**/*'
- 'db/schema.rb'
- 'db/data_schema.rb'
- 'test/**/*'
- 'bin/**/*'
- 'config/**/*'
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- 'routes/**/*.rb'
Layout/LineLength:
Max: 80
IgnoredPatterns:
- 'key = '
- 'pepper = '
Metrics/MethodLength:
CountAsOne: ['array', 'hash']
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Rails/SkipsModelValidations:
AllowedMethods: ['touch']