-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
38 lines (28 loc) · 905 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
# We can build a single rubocop source-of-truth config document
# per https://www.rubocop.org/en/stable/configuration/#inheriting-configuration-from-a-remote-url
# inherit_from: .rubocop_todo.yml
AllCops:
NewCops: enable
UseCache: true # this is the default setting, wanted to make explicit
Metrics/ClassLength:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Layout/LineLength:
Max: 110
Metrics/MethodLength:
Max: 20
Style/FrozenStringLiteralComment:
Enabled: false
Documentation:
Enabled: false
Metrics/AbcSize:
Enabled: false
# Single vs. double quote strings. Hard question to answer
# https://github.com/rubocop-hq/ruby-style-guide/issues/184
# But I'm landing on no preference, as it feels bike-sheddy
# for now.
Style/StringLiterals:
Enabled: false
# EnforcedStyle: single_quotes # 38 offenses
# EnforcedStyle: double_quotes # 56 offenses