@@ -43,11 +43,17 @@ Layout/SpaceAroundMethodCallOperator:
43
43
Description : Checks method call operators to not have spaces around them.
44
44
Enabled : true
45
45
46
+ Layout/SpaceBeforeBrackets :
47
+ Enabled : true
48
+
46
49
Layout/SpaceInsideHashLiteralBraces :
47
50
Description : Use spaces inside hash literal braces - or don't.
48
51
StyleGuide : https://github.com/rubocop-hq/ruby-style-guide#spaces-operators
49
52
EnforcedStyle : no_space
50
53
54
+ Lint/AmbiguousAssignment :
55
+ Enabled : true
56
+
51
57
Lint/AmbiguousRegexpLiteral :
52
58
Description : Checks for ambiguous regexp literals in the first argument of a method invocation without parentheses.
53
59
Exclude :
@@ -66,12 +72,24 @@ Lint/DeprecatedOpenSSLConstant:
66
72
Description : Don't use algorithm constants for `OpenSSL::Cipher` and `OpenSSL::Digest`.
67
73
Enabled : true
68
74
75
+ Lint/DuplicateBranch :
76
+ Enabled : true
77
+
69
78
Lint/DuplicateElsifCondition :
70
79
Enabled : true
71
80
81
+ Lint/DuplicateRegexpCharacterClassElement :
82
+ Enabled : true
83
+
72
84
Lint/DuplicateRescueException :
73
85
Enabled : true
74
86
87
+ Lint/EmptyBlock :
88
+ Enabled : true
89
+
90
+ Lint/EmptyClass :
91
+ Enabled : true
92
+
75
93
Lint/EmptyConditionalBody :
76
94
Enabled : true
77
95
@@ -85,6 +103,9 @@ Lint/MixedRegexpCaptureTypes:
85
103
Description : Do not mix named captures and numbered captures in a Regexp literal.
86
104
Enabled : true
87
105
106
+ Lint/NoReturnInBeginEndBlocks :
107
+ Enabled : true
108
+
88
109
Lint/OutOfRangeRegexpRef :
89
110
Enabled : true
90
111
@@ -99,9 +120,18 @@ Lint/StructNewOverride:
99
120
Description : Disallow overriding the `Struct` built-in methods via `Struct.new`.
100
121
Enabled : true
101
122
123
+ Lint/ToEnumArguments :
124
+ Enabled : true
125
+
102
126
Lint/TopLevelReturnWithArgument :
103
127
Enabled : true
104
128
129
+ Lint/UnexpectedBlockArity :
130
+ Enabled : true
131
+
132
+ Lint/UnmodifiedReduceAccumulator :
133
+ Enabled : true
134
+
105
135
Lint/UnreachableLoop :
106
136
Enabled : true
107
137
@@ -147,6 +177,9 @@ Naming/FileName:
147
177
Style/AccessorGrouping :
148
178
Enabled : true
149
179
180
+ Style/ArgumentsForwarding :
181
+ Enabled : true
182
+
150
183
Style/ArrayCoercion :
151
184
Enabled : true
152
185
@@ -156,6 +189,9 @@ Style/BisectedAttrAccessor:
156
189
Style/CaseLikeIf :
157
190
Enabled : true
158
191
192
+ Style/CollectionCompact :
193
+ Enabled : true
194
+
159
195
Style/CollectionMethods :
160
196
Description : Enforces the use of consistent method names from the Enumerable module.
161
197
PreferredMethods :
@@ -173,6 +209,9 @@ Style/DoubleNegation:
173
209
StyleGuide : https://github.com/rubocop-hq/ruby-style-guide#no-bang-bang
174
210
Enabled : false
175
211
212
+ Style/DocumentDynamicEvalDefinition :
213
+ Enabled : true
214
+
176
215
Style/ExplicitBlockArgument :
177
216
# capturing as a proc has a performance hit, so is a case by case choice
178
217
Enabled : false
@@ -204,6 +243,9 @@ Style/HashEachMethods:
204
243
Description : Use Hash#each_key and Hash#each_value.
205
244
Enabled : true
206
245
246
+ Style/HashExcept :
247
+ Enabled : true
248
+
207
249
Style/HashLikeCase :
208
250
Enabled : true
209
251
@@ -219,9 +261,18 @@ Style/HashSyntax:
219
261
Description : Checks hash literal syntax.
220
262
EnforcedStyle : ruby19
221
263
264
+ Style/NegatedIfElseCondition :
265
+ Enabled : true
266
+
267
+ Style/NilLambda :
268
+ Enabled : true
269
+
222
270
Style/OptionalBooleanParameter :
223
271
Enabled : true
224
272
273
+ Style/RedundantArgument :
274
+ Enabled : true
275
+
225
276
Style/RedundantAssignment :
226
277
Enabled : true
227
278
@@ -265,6 +316,9 @@ Style/StringLiterals:
265
316
Description : Allow double-quoted strings without interpolation.
266
317
EnforcedStyle : double_quotes
267
318
319
+ Style/SwapValues :
320
+ Enabled : true
321
+
268
322
Style/TrailingCommaInArrayLiteral :
269
323
EnforcedStyleForMultiline : no_comma
270
324
0 commit comments