-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
47 lines (36 loc) · 1.19 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
# See list of defaults here: https://docs.rubocop.org/rubocop/index.html
require:
- rubocop-performance
- rubocop-minitest
- rubocop-rake
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
Exclude:
- bin/**/*
- test/**/*
# ------------------------------------------------------------------------------
# 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
Metrics/BlockLength:
IgnoredMethods: [
'OptionParser.new'
]
Exclude:
- spec/**/*
# ------------------------------------------------------------------------------
# DEPARTMENT STYLE
# ------------------------------------------------------------------------------
Style/Documentation:
Enabled: false # default: true