-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
49 lines (36 loc) · 1.26 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
47
48
49
# See list of defaults here: https://docs.rubocop.org/rubocop/index.html
require:
- rubocop-performance
- rubocop-minitest
- rubocop-rake
AllCops:
TargetRubyVersion: 2.6
NewCops: enable
# ------------------------------------------------------------------------------
# DEPARTMENT LAYOUT
# ------------------------------------------------------------------------------
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent # default: special_inside_parentheses
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent # default: special_inside_parentheses
Layout/LineLength:
Max: 80 # default: 120
# ------------------------------------------------------------------------------
# DEPARTMENT METRICS
# ------------------------------------------------------------------------------
Metrics/AbcSize:
Max: 20 # default: 17
Metrics/BlockLength:
Exclude:
- file_structure.gemspec
- test/**/test_*.rb
Metrics/ClassLength:
Exclude:
- test/**/test_*.rb
Metrics/MethodLength:
Max: 15 # default: 10
# ------------------------------------------------------------------------------
# DEPARTMENT STYLE
# ------------------------------------------------------------------------------
Style/Documentation:
Enabled: false # default: true