Skip to content

Commit 16f856a

Browse files
committed
style: update rubocop config to match latest rails config
1 parent 19fd6cd commit 16f856a

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.rubocop.yml

+35-3
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,25 @@ Lint/ErbNewArguments:
223223
Lint/EnsureReturn:
224224
Enabled: true
225225

226+
Lint/MissingCopEnableDirective:
227+
Enabled: true
228+
226229
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
227230
Lint/RequireParentheses:
228231
Enabled: true
229232

233+
Lint/RedundantCopDisableDirective:
234+
Enabled: true
235+
236+
Lint/RedundantCopEnableDirective:
237+
Enabled: true
238+
230239
Lint/RedundantStringCoercion:
231240
Enabled: true
232241

242+
Lint/RedundantSafeNavigation:
243+
Enabled: true
244+
233245
Lint/UriEscapeUnescape:
234246
Enabled: true
235247

@@ -239,6 +251,14 @@ Lint/UselessAssignment:
239251
Lint/DeprecatedClassMethods:
240252
Enabled: true
241253

254+
Lint/InterpolationCheck:
255+
Enabled: true
256+
Exclude:
257+
- '**/test/**/*'
258+
259+
Lint/SafeNavigationChain:
260+
Enabled: true
261+
242262
Style/EvalWithLocation:
243263
Enabled: true
244264
Exclude:
@@ -278,6 +298,12 @@ Style/TrivialAccessors:
278298
Style/RedundantCondition:
279299
Enabled: true
280300

301+
Style/RedundantDoubleSplatHashBraces:
302+
Enabled: true
303+
304+
Style/ArrayIntersect:
305+
Enabled: true
306+
281307
Performance/BindCall:
282308
Enabled: true
283309

@@ -308,9 +334,6 @@ Performance/ReverseEach:
308334
Performance/StringReplacement:
309335
Enabled: true
310336

311-
Performance/UnfreezeString:
312-
Enabled: true
313-
314337
Performance/DeletePrefix:
315338
Enabled: true
316339

@@ -332,12 +355,21 @@ Performance/RedundantStringChars:
332355
Performance/StringInclude:
333356
Enabled: true
334357

358+
Minitest/AssertPredicate:
359+
Enabled: true
360+
335361
Minitest/AssertRaisesWithRegexpArgument:
336362
Enabled: true
337363

338364
Minitest/AssertWithExpectedArgument:
339365
Enabled: true
340366

367+
Minitest/LiteralAsActualArgument:
368+
Enabled: true
369+
370+
Minitest/NonExecutableTestMethod:
371+
Enabled: true
372+
341373
Minitest/SkipEnsure:
342374
Enabled: true
343375

0 commit comments

Comments
 (0)