-
Notifications
You must be signed in to change notification settings - Fork 43
/
.rubocop.yml
61 lines (46 loc) · 1.12 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
AllCops:
TargetRubyVersion: 2.7 # match lowest supported ruby version <-> gemspec
SuggestExtensions: false
NewCops: enable
Metrics:
Enabled: false
# allow mixing ' and "
Style/StringLiterals:
Enabled: false
# allow `if a = foo()` style
Lint/AssignmentInCondition:
Enabled: false
# `a == 0` is easier to understand
Style/NumericPredicate:
EnforcedStyle: comparison
# ["foo"] is simpler then %w[foo]
Style/WordArray:
EnforcedStyle: brackets
# recommendations are not safe like $ERROR_INFO
Style/SpecialGlobalVars:
Enabled: false
# we are bad with docs :D
Style/Documentation:
Enabled: false
# we use old rspec style ... fix and then remove
Lint/Void:
Enabled: false
# can be useful for terse expressions
Style/Semicolon:
Enabled: false
# [:a] is easier to read than %i[a]
Style/SymbolArray:
EnforcedStyle: brackets
Layout/LineLength:
Enabled: false
Style/PerlBackrefs:
Enabled: false
# foo + "\n" is easier to read than "#{foo}\n"
Style/StringConcatenation:
Enabled: false
# totally fine for optional env vars
Style/FetchEnvVar:
Enabled: false
# more explicit
Style/RedundantArgument:
Enabled: false