-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
45 lines (44 loc) · 973 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
require: rubocop-rails
AllCops:
Exclude:
- 'db/migrate/*.rb'
- 'db/schema.rb'
- 'bin/*'
- 'config/**/*'
- 'test/**/*'
- 'spec/**/*'
- 'vendor/**/*'
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Metrics/AbcSize:
Max: 30
Exclude:
- app/pdfs/invoice_pdf.rb
- app/services/invoice/validator.rb
Metrics/BlockLength:
Exclude:
- 'app/pdfs/*'
Metrics/ClassLength:
Max: 150
Exclude:
- 'app/pdfs/*'
Metrics/MethodLength:
Max: 20
Exclude:
- 'app/pdfs/*'
Metrics/ParameterLists:
Max: 6
Style/AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma