-
Notifications
You must be signed in to change notification settings - Fork 10
/
.rubocop.yml
31 lines (31 loc) · 1.1 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
Metrics/LineLength:
Max: 100
Style/BlockDelimiters:
EnforcedStyle: semantic
Style/ClassAndModuleChildren:
# We need nested style for logic require files, but use compact style for logic implementations.
Enabled: False
Style/Documentation:
Enabled: False
Style/GuardClause:
# With 1, this catches a few false positives (e.g. a check at the end of a function that raises an
# exception)
MinBodyLength: 2
Style/IfUnlessModifier:
Enabled: False
Style/NonNilCheck:
Enabled: False
Style/NumericLiterals:
# Make sample division public ids (with 5 digits) usable without underscores.
MinDigits: 6
Style/PreferredHashMethods:
# While only using a single method when aliases are available, `has_key?` is a much more obvious
# and faster to understand method name than `key?`.
Enabled: False
Style/RaiseArgs:
# We regularly use exceptions without an additional message within logic
Enabled: False
Style/RedundantReturn:
# Using 'return' to explicitly show that the result of a function call is supposed to be returned
# compared to the function just being executed totally makes sense.
Enabled: False