@@ -1358,10 +1358,9 @@ Lint/EmptyConditionalBody:
1358
1358
a body.
1359
1359
Enabled : false
1360
1360
AutoCorrect : contextual
1361
- SafeAutoCorrect : false
1362
1361
AllowComments : true
1363
1362
VersionAdded : ' 0.89'
1364
- VersionChanged : ' 1.61 '
1363
+ VersionChanged : ' 1.73 '
1365
1364
Lint/EmptyEnsure :
1366
1365
Description : Checks for empty ensure block.
1367
1366
Enabled : false
@@ -1489,6 +1488,7 @@ Lint/LambdaWithoutLiteralBlock:
1489
1488
Lint/LiteralAsCondition :
1490
1489
Description : Checks of literals used in conditions.
1491
1490
Enabled : false
1491
+ AutoCorrect : contextual
1492
1492
VersionAdded : ' 0.51'
1493
1493
Lint/LiteralAssignmentInCondition :
1494
1494
Description : Checks for literal assignments in the conditions.
@@ -1658,9 +1658,8 @@ Lint/RedundantRegexpQuantifiers:
1658
1658
Lint/RedundantRequireStatement :
1659
1659
Description : Checks for unnecessary `require` statement.
1660
1660
Enabled : false
1661
- SafeAutoCorrect : false
1662
1661
VersionAdded : ' 0.76'
1663
- VersionChanged : ' 1.57 '
1662
+ VersionChanged : ' 1.73 '
1664
1663
Lint/RedundantSafeNavigation :
1665
1664
Description : Checks for redundant safe navigation calls.
1666
1665
Enabled : false
@@ -2332,13 +2331,15 @@ Naming/VariableName:
2332
2331
StyleGuide : " #snake-case-symbols-methods-vars"
2333
2332
Enabled : false
2334
2333
VersionAdded : ' 0.50'
2335
- VersionChanged : ' 1.8 '
2334
+ VersionChanged : ' 1.73 '
2336
2335
EnforcedStyle : snake_case
2337
2336
SupportedStyles :
2338
2337
- snake_case
2339
2338
- camelCase
2340
2339
AllowedIdentifiers : []
2341
2340
AllowedPatterns : []
2341
+ ForbiddenIdentifiers : []
2342
+ ForbiddenPatterns : []
2342
2343
Naming/VariableNumber :
2343
2344
Description : Use the configured style when numbering symbols, methods and variables.
2344
2345
StyleGuide : " #snake-case-symbols-methods-vars-with-numbers"
@@ -2353,6 +2354,8 @@ Naming/VariableNumber:
2353
2354
CheckMethodNames : true
2354
2355
CheckSymbols : true
2355
2356
AllowedIdentifiers :
2357
+ - TLS1_1
2358
+ - TLS1_2
2356
2359
- capture3
2357
2360
- iso8601
2358
2361
- rfc1123_date
@@ -2611,10 +2614,21 @@ Style/ClassAndModuleChildren:
2611
2614
SafeAutoCorrect : false
2612
2615
Enabled : false
2613
2616
VersionAdded : ' 0.19'
2617
+ VersionChanged : ' 1.74'
2614
2618
EnforcedStyle : nested
2615
2619
SupportedStyles :
2616
2620
- nested
2617
2621
- compact
2622
+ EnforcedStyleForClasses :
2623
+ SupportedStylesForClasses :
2624
+ -
2625
+ - nested
2626
+ - compact
2627
+ EnforcedStyleForModules :
2628
+ SupportedStylesForModules :
2629
+ -
2630
+ - nested
2631
+ - compact
2618
2632
Style/ClassCheck :
2619
2633
Description : Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
2620
2634
StyleGuide : " #is-a-vs-kind-of"
@@ -2737,6 +2751,11 @@ Style/CommentedKeyword:
2737
2751
SafeAutoCorrect : false
2738
2752
VersionAdded : ' 0.51'
2739
2753
VersionChanged : ' 1.19'
2754
+ Style/ComparableBetween :
2755
+ Description : Enforces the use of `Comparable#between?` instead of logical comparison.
2756
+ Enabled : pending
2757
+ VersionAdded : ' 1.74'
2758
+ StyleGuide : " #ranges-or-between"
2740
2759
Style/ComparableClamp :
2741
2760
Description : Enforces the use of `Comparable#clamp` instead of comparison by minimum
2742
2761
and maximum.
@@ -2933,6 +2952,8 @@ Style/EndlessMethod:
2933
2952
- allow_single_line
2934
2953
- allow_always
2935
2954
- disallow
2955
+ - require_single_line
2956
+ - require_always
2936
2957
Style/EnvHome :
2937
2958
Description : Checks for consistent usage of `ENV['HOME']`.
2938
2959
Enabled : false
@@ -3053,8 +3074,9 @@ Style/FormatStringToken:
3053
3074
- template
3054
3075
- unannotated
3055
3076
MaxUnannotatedPlaceholdersAllowed : 1
3077
+ Mode : aggressive
3056
3078
VersionAdded : ' 0.49'
3057
- VersionChanged : ' 1.0 '
3079
+ VersionChanged : ' 1.74 '
3058
3080
AllowedMethods : []
3059
3081
AllowedPatterns : []
3060
3082
Style/FrozenStringLiteralComment :
@@ -3873,6 +3895,9 @@ Style/RedundantCondition:
3873
3895
Description : Checks for unnecessary conditional expressions.
3874
3896
Enabled : false
3875
3897
VersionAdded : ' 0.76'
3898
+ VersionChanged : ' 1.73'
3899
+ AllowedMethods :
3900
+ - nonzero?
3876
3901
Style/RedundantConditional :
3877
3902
Description : Don't return true/false from a conditional.
3878
3903
Enabled : false
@@ -4371,6 +4396,7 @@ Style/TrailingCommaInArrayLiteral:
4371
4396
SupportedStylesForMultiline :
4372
4397
- comma
4373
4398
- consistent_comma
4399
+ - diff_comma
4374
4400
- no_comma
4375
4401
Style/TrailingCommaInBlockArgs :
4376
4402
Description : Checks for useless trailing commas in block arguments.
@@ -4384,6 +4410,7 @@ Style/TrailingCommaInHashLiteral:
4384
4410
SupportedStylesForMultiline :
4385
4411
- comma
4386
4412
- consistent_comma
4413
+ - diff_comma
4387
4414
- no_comma
4388
4415
VersionAdded : ' 0.53'
4389
4416
Style/TrailingMethodEndStatement :
0 commit comments