-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
68 lines (52 loc) · 1.64 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
57
58
59
60
61
62
63
64
65
66
67
68
AllCops:
TargetRubyVersion: 3.2
NewCops: enable
SuggestExtensions: false
Layout/LineLength:
Max: 180
# Just turn off the metrics cops. Long lines and methods are fine.
# This project prefers large, logical blocks to "papering the wall with post-its"
Metrics:
Enabled: false
# 'exc' is just as good, if not better, as 'e'
Naming/RescuedExceptionsVariableName:
Enabled: false
# 123_456 doesn't add value IMO.
NumericLiterals:
Enabled: false
# Favor explicit over implicit code: don't complain of "redundant returns"
RedundantReturn:
Enabled: false
Style/ArgumentsForwarding:
UseAnonymousForwarding: false
# A "This class manages the App Config" comment on App::Config has no value.
Style/Documentation:
Enabled: false
# This cop can result in incompatible code
Style/EmptyLiteral:
Enabled: false
# Ruby 3.0 upgrade cop
# Literally recommends "magic" code.
Style/FrozenStringLiteralComment:
Enabled: false
Style/HashSyntax:
# Explicit over implicit code
EnforcedShorthandSyntax: never
# value == 0 is fine, value.zero? is syntactic nonsense.
Style/NumericPredicate:
Enabled: false
# Not adding parenthesis can introduce bugs in complex conditions
Style/ParenthesesAroundCondition:
Enabled: false
# Not adding parenthesis can introduce bugs in complex conditions
Style/RedundantParentheses:
Enabled: false
# Do not remove explicit range ends
Style/SlicingWithRange:
Enabled: false
# Allow $? instead of $CHILD_STATUS (which isn't native)
Style/SpecialGlobalVars:
Enabled: false
# Enforce trailing commas on multiline hashes. This reduces developer error.
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma