-
-
Notifications
You must be signed in to change notification settings - Fork 156
/
.rubocop.yml
56 lines (43 loc) · 1.68 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
inherit_from: .rubocop_todo.yml
# Regexp#match? has only been available since Ruby v2.4
Performance/RegexpMatch:
Enabled: false
# Even the reference in the documentation suggests that you should prefer
# `alias_method` vs `alias`, so I don't understand why that isn't the default.
Style/Alias:
EnforcedStyle: prefer_alias_method
# Enumerable#each_with_object only available since Ruby v1.9
Style/EachWithObject:
Enabled: false
# Kernel#__dir__ has only been available since Ruby v2.0
Style/ExpandPathArguments:
Enabled: false
# Kernel#format has only supported named references since Ruby v1.9
Style/FormatStringToken:
EnforcedStyle: unannotated
# ruby19 style has only been supported since Ruby v1.9
Style/HashSyntax:
EnforcedStyle: hash_rockets
# I'm not keen on this cop, because it's easy to miss the conditional
# I think the results are particularly unhelpful when Metrics/LineLength is big
Style/IfUnlessModifier:
Enabled: false
# Lambda literal syntax has only been supported since Ruby v2.0
Style/Lambda:
EnforcedStyle: lambda
# While Numeric#zero? has been supported since Ruby v1.8.6, Numeric#negative? &
# Numeric#positive? have only been supported since Ruby v2.3
Style/NumericPredicate:
EnforcedStyle: comparison
# The safe navigation operator has only been supported since Ruby v2.3
Style/SafeNavigation:
Enabled: false
# Symbol array literal syntax has only been supported since Ruby v2.0
Style/SymbolArray:
Enabled: false
# I'm not keen on this cop, because it's easy to miss the while/until
Style/WhileUntilModifier:
Enabled: false
# frozen_string_literal magic comment has only been supported since Ruby v2.3
Style/FrozenStringLiteralComment:
Enabled: false