-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
57 lines (56 loc) · 1.41 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
50
51
52
53
54
55
56
AllCops:
TargetRubyVersion: 2.5
Exclude:
- db/schema.rb
Layout/HashAlignment:
# Alignment of entries using hash rocket as separator. Valid values are:
#
# key - left alignment of keys
# 'a' => 2
# 'bb' => 3
# separator - alignment of hash rockets, keys are right aligned
# 'a' => 2
# 'bb' => 3
# table - left alignment of keys, hash rockets, and values
# 'a' => 2
# 'bb' => 3
EnforcedHashRocketStyle: table
# Alignment of entries using colon as separator. Valid values are:
#
# key - left alignment of keys
# a: 0
# bb: 1
# separator - alignment of colons, keys are right aligned
# a: 0
# bb: 1
# table - left alignment of keys and values
# a: 0
# bb: 1
EnforcedColonStyle: table
LineLength:
Max: 100
StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiterals:
EnforcedStyle: double_quotes
MethodCalledOnDoEndBlock:
Description: 'Avoid chaining a method call on a do...end block.'
Enabled: true
ClassLength:
Max: 400
Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
# I don't think there's a good way to enforce this sometime commit_sha1 is ok sometimes user_1 is ok
Naming/VariableNumber:
Enabled: false
# this one triggers a lot of false positive as orbf rules are "%{}"-based
Style/FormatStringToken:
EnforcedStyle: template
Metrics/LineLength:
Exclude:
- 'spec/**/*.rb'
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'