-
Notifications
You must be signed in to change notification settings - Fork 68
/
.rubocop.yml
122 lines (84 loc) · 1.74 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
require:
- rubocop-performance
AllCops:
TargetRubyVersion: 2.7
DisabledByDefault: true
NewCops: enable
SuggestExtensions: false
Bundler:
Enabled: true
Gemspec:
Enabled: true
Layout:
Enabled: true
Layout/LineLength:
Enabled: false
Lint:
Enabled: true
Lint/FlipFlop:
Enabled: false
# This cop is practically style, not lint. And this rule is unexpected.
Lint/AmbiguousOperatorPrecedence:
Enabled: false
Performance:
Enabled: true
Performance/Casecmp:
Enabled: false
Security:
Enabled: true
# `Marshal.load` is only used to deserialize data that has been serialized internally,
# and not for deserializing data from external sources.
Security/MarshalLoad:
Enabled: false
Style/Alias:
Enabled: true
Style/ColonMethodCall:
Enabled: true
Style/EmptyCaseCondition:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
Style/HashSyntax:
Enabled: true
Style/InfiniteLoop:
Enabled: true
Style/MethodDefParentheses:
Enabled: true
Style/NegatedIf:
Enabled: true
Style/GlobalStdStream:
Enabled: true
Style/PreferredHashMethods:
Enabled: true
Style/RedundantBegin:
Enabled: true
Style/RedundantConstantBase:
Enabled: true
Style/RedundantParentheses:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/RedundantReturn:
Enabled: true
Style/RedundantSelf:
Enabled: true
Style/SafeNavigation:
Enabled: true
Style/SelectByRegexp:
Enabled: true
Style/Semicolon:
Enabled: true
Style/SignalException:
Enabled: true
Style/SingleLineMethods:
Enabled: true
Style/StderrPuts:
Enabled: true
Style/StringLiterals:
Enabled: true
Style/StringLiteralsInInterpolation:
Enabled: true
Style/TrailingCommaInArrayLiteral:
Enabled: true
Style/VariableInterpolation:
Enabled: true