@@ -1387,7 +1387,7 @@ Lint/EmptyInterpolation:
13871387 Enabled : true
13881388 AutoCorrect : contextual
13891389 VersionAdded : ' 0.20'
1390- VersionChanged : ' 1.61 '
1390+ VersionChanged : ' 1.76 '
13911391Lint/EmptyWhen :
13921392 Description : Checks for `when` branches with empty bodies.
13931393 Enabled : false
@@ -1794,6 +1794,7 @@ Lint/ShadowingOuterLocalVariable:
17941794 or block local variables.
17951795 Enabled : false
17961796 VersionAdded : ' 0.9'
1797+ VersionChanged : ' 1.76'
17971798Lint/SharedMutableDefault :
17981799 Description : Checks for mutable literals used as default arguments during Hash initialization.
17991800 StyleGuide : " #no-mutable-defaults"
@@ -1954,6 +1955,13 @@ Lint/UselessConstantScoping:
19541955 Description : Checks for useless constant scoping.
19551956 Enabled : false
19561957 VersionAdded : ' 1.72'
1958+ Lint/UselessDefaultValueArgument :
1959+ Description : Checks for usage of `fetch` or `Array.new` with default value argument
1960+ and block.
1961+ Enabled : true
1962+ VersionAdded : ' 1.76'
1963+ Safe : false
1964+ AllowedReceivers : []
19571965Lint/UselessDefined :
19581966 Description : Checks for calls to `defined?` with strings and symbols. The result
19591967 of such a call will always be truthy.
@@ -1975,6 +1983,10 @@ Lint/UselessNumericOperation:
19751983 Description : Checks for useless numeric operations.
19761984 Enabled : false
19771985 VersionAdded : ' 1.66'
1986+ Lint/UselessOr :
1987+ Description : Checks for useless OR expressions.
1988+ Enabled : true
1989+ VersionAdded : ' 1.76'
19781990Lint/UselessRescue :
19791991 Description : Checks for useless `rescue`s.
19801992 Enabled : false
@@ -2309,8 +2321,16 @@ Naming/MethodParameterName:
23092321 - pp
23102322 - to
23112323 ForbiddenNames : []
2312- Naming/PredicateName :
2313- Description : Check the names of predicate methods.
2324+ Naming/PredicateMethod :
2325+ Description : Checks that predicate methods end with `?` and non-predicate methods
2326+ do not.
2327+ Enabled : false
2328+ VersionAdded : ' 1.76'
2329+ Mode : conservative
2330+ AllowedMethods :
2331+ - call
2332+ Naming/PredicatePrefix :
2333+ Description : Predicate method names should not be prefixed and end with a `?`.
23142334 StyleGuide : " #bool-methods-qmark"
23152335 Enabled : false
23162336 VersionAdded : ' 0.50'
@@ -2943,6 +2963,15 @@ Style/EmptyMethod:
29432963 SupportedStyles :
29442964 - compact
29452965 - expanded
2966+ Style/EmptyStringInsideInterpolation :
2967+ Description : Checks for empty strings being assigned inside string interpolation.
2968+ StyleGuide : " #empty-strings-in-interpolation"
2969+ Enabled : false
2970+ EnforcedStyle : trailing_conditional
2971+ SupportedStyles :
2972+ - trailing_conditional
2973+ - ternary
2974+ VersionAdded : ' 1.76'
29462975Style/Encoding :
29472976 Description : Use UTF-8 as the source file encoding.
29482977 StyleGuide : " #utf-8"
@@ -3331,12 +3360,14 @@ Style/ItBlockParameter:
33313360 Description : Checks for blocks with one argument where `it` block parameter can
33323361 be used.
33333362 Enabled : false
3334- EnforcedStyle : only_numbered_parameters
3363+ EnforcedStyle : allow_single_line
33353364 SupportedStyles :
3365+ - allow_single_line
33363366 - only_numbered_parameters
33373367 - always
33383368 - disallow
33393369 VersionAdded : ' 1.75'
3370+ VersionChanged : ' 1.76'
33403371Style/KeywordArgumentsMerging :
33413372 Description : When passing an existing hash as keyword arguments, provide additional
33423373 arguments directly rather than using `merge`.
@@ -3908,6 +3939,11 @@ Style/RedundantArrayConstructor:
39083939 Description : Checks for the instantiation of array using redundant `Array` constructor.
39093940 Enabled : false
39103941 VersionAdded : ' 1.52'
3942+ Style/RedundantArrayFlatten :
3943+ Description : Checks for redundant calls of `Array#flatten`.
3944+ Enabled : true
3945+ Safe : false
3946+ VersionAdded : ' 1.76'
39113947Style/RedundantAssignment :
39123948 Description : Checks for redundant assignment before returning.
39133949 Enabled : false
0 commit comments