-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.rubocop.yml
41 lines (39 loc) · 954 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
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-rspec
AllCops:
DisplayCopNames: true
Exclude:
- bin/**/*
- vendor/**/*
- lib/usps/api/endpoints/* # Auto-generated
- lib/usps/api/errors.rb # Auto-generated
- spec/usps/api/endpoints/* # Auto-generated
Layout/EmptyLineAfterMagicComment:
Enabled: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementLineBreak:
Enabled: true
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementLineBreak:
Enabled: true
Layout/HashAlignment:
EnforcedColonStyle: key
EnforcedRocketStyle: key
# Layout/IndentationStyle:
# EnforcedStyle: tabs
Metrics/BlockLength:
Max: 250
Metrics/ClassLength:
Max: 250
Metrics/LineLength:
Max: 120
Style/Documentation:
Enabled: false
Style/ModuleFunction:
Enabled: false
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma