@@ -189,7 +189,7 @@ Gemspec/AddRuntimeDependency:
189189 Description : Prefer `add_dependency` over `add_runtime_dependency`.
190190 StyleGuide : " #add_dependency_vs_add_runtime_dependency"
191191 References :
192- - https://github.com/rubygems /rubygems/issues/7799#issuecomment-2192720316
192+ - https://github.com/ruby /rubygems/issues/7799#issuecomment-2192720316
193193 Enabled : false
194194 VersionAdded : ' 1.65'
195195 Include :
@@ -282,7 +282,7 @@ Gemspec/RubyVersionGlobalsUsage:
282282 Include :
283283 - " **/*.gemspec"
284284Layout/AccessModifierIndentation :
285- Description : Check indentation of private/protected visibility modifiers.
285+ Description : Checks indentation of private/protected visibility modifiers.
286286 StyleGuide : " #indent-public-private-protected"
287287 Enabled : true
288288 VersionAdded : ' 0.49'
@@ -458,6 +458,11 @@ Layout/EmptyLines:
458458 StyleGuide : " #two-or-more-empty-lines"
459459 Enabled : false
460460 VersionAdded : ' 0.49'
461+ Layout/EmptyLinesAfterModuleInclusion :
462+ Description : Keeps track of empty lines after module inclusion methods.
463+ StyleGuide : " #empty-lines-after-module-inclusion"
464+ Enabled : false
465+ VersionAdded : ' 1.79'
461466Layout/EmptyLinesAroundAccessModifier :
462467 Description : Keep blank lines around access modifiers.
463468 StyleGuide : " #empty-lines-around-access-modifier"
@@ -707,7 +712,7 @@ Layout/LeadingCommentSpace:
707712 AllowRBSInlineAnnotation : true
708713 AllowSteepAnnotation : false
709714Layout/LeadingEmptyLines :
710- Description : Check for unnecessary blank lines at the beginning of a file.
715+ Description : Checks for unnecessary blank lines at the beginning of a file.
711716 Enabled : true
712717 VersionAdded : ' 0.57'
713718 VersionChanged : ' 0.77'
@@ -774,7 +779,7 @@ Layout/MultilineArrayLineBreaks:
774779 VersionAdded : ' 0.67'
775780 AllowMultilineFinalElement : true
776781Layout/MultilineAssignmentLayout :
777- Description : Check for a newline after the assignment operator in multi-line assignments.
782+ Description : Checks for a newline after the assignment operator in multi-line assignments.
778783 StyleGuide : " #indent-conditional-assignment"
779784 Enabled : false
780785 VersionAdded : ' 0.49'
@@ -1162,7 +1167,7 @@ Lint/BinaryOperatorWithIdenticalOperands:
11621167 VersionAdded : ' 0.89'
11631168 VersionChanged : ' 1.69'
11641169Lint/BooleanSymbol :
1165- Description : Check for `:true` and `:false` symbols.
1170+ Description : Checks for `:true` and `:false` symbols.
11661171 Enabled : false
11671172 SafeAutoCorrect : false
11681173 VersionAdded : ' 0.50'
@@ -1190,7 +1195,7 @@ Lint/ConstantReassignment:
11901195 Enabled : true
11911196 VersionAdded : ' 1.70'
11921197Lint/ConstantResolution :
1193- Description : Check that constants are fully qualified with `::`.
1198+ Description : Checks that constants are fully qualified with `::`.
11941199 Enabled : false
11951200 VersionAdded : ' 0.86'
11961201 Only : []
@@ -1200,7 +1205,7 @@ Lint/CopDirectiveSyntax:
12001205 Enabled : true
12011206 VersionAdded : ' 1.72'
12021207Lint/Debugger :
1203- Description : Check for debugger calls.
1208+ Description : Checks for debugger calls.
12041209 Enabled : true
12051210 VersionAdded : ' 0.14'
12061211 VersionChanged : ' 1.63'
@@ -1248,7 +1253,7 @@ Lint/Debugger:
12481253 - debug/open
12491254 - debug/start
12501255Lint/DeprecatedClassMethods :
1251- Description : Check for deprecated class method calls.
1256+ Description : Checks for deprecated class method calls.
12521257 Enabled : true
12531258 VersionAdded : ' 0.19'
12541259Lint/DeprecatedConstants :
@@ -1306,28 +1311,28 @@ Lint/DuplicateElsifCondition:
13061311 Enabled : true
13071312 VersionAdded : ' 0.88'
13081313Lint/DuplicateHashKey :
1309- Description : Check for duplicate keys in hash literals.
1314+ Description : Checks for duplicate keys in hash literals.
13101315 Enabled : true
13111316 VersionAdded : ' 0.34'
13121317 VersionChanged : ' 0.77'
13131318Lint/DuplicateMagicComment :
1314- Description : Check for duplicated magic comments.
1319+ Description : Checks for duplicated magic comments.
13151320 Enabled : true
13161321 VersionAdded : ' 1.37'
13171322Lint/DuplicateMatchPattern :
13181323 Description : Do not repeat patterns in `in` keywords.
13191324 Enabled : true
13201325 VersionAdded : ' 1.50'
13211326Lint/DuplicateMethods :
1322- Description : Check for duplicate method definitions.
1327+ Description : Checks for duplicate method definitions.
13231328 Enabled : true
13241329 VersionAdded : ' 0.29'
13251330Lint/DuplicateRegexpCharacterClassElement :
13261331 Description : Checks for duplicate elements in Regexp character classes.
13271332 Enabled : true
13281333 VersionAdded : ' 1.1'
13291334Lint/DuplicateRequire :
1330- Description : Check for duplicate `require`s and `require_relative`s.
1335+ Description : Checks for duplicate `require`s and `require_relative`s.
13311336 Enabled : true
13321337 SafeAutoCorrect : false
13331338 VersionAdded : ' 0.90'
@@ -1341,11 +1346,11 @@ Lint/DuplicateSetElement:
13411346 Enabled : true
13421347 VersionAdded : ' 1.67'
13431348Lint/EachWithObjectArgument :
1344- Description : Check for immutable argument given to each_with_object.
1349+ Description : Checks for immutable argument given to each_with_object.
13451350 Enabled : true
13461351 VersionAdded : ' 0.31'
13471352Lint/ElseLayout :
1348- Description : Check for odd code arrangement in an else block.
1353+ Description : Checks for odd code arrangement in an else block.
13491354 Enabled : true
13501355 VersionAdded : ' 0.17'
13511356 VersionChanged : ' 1.2'
@@ -1673,13 +1678,20 @@ Lint/RedundantSafeNavigation:
16731678 Description : Checks for redundant safe navigation calls.
16741679 Enabled : false
16751680 VersionAdded : ' 0.93'
1681+ VersionChanged : ' 1.79'
16761682 AllowedMethods :
16771683 - instance_of?
16781684 - kind_of?
16791685 - is_a?
16801686 - eql?
16811687 - respond_to?
16821688 - equal?
1689+ InferNonNilReceiver : false
1690+ AdditionalNilMethods :
1691+ - present?
1692+ - blank?
1693+ - try
1694+ - try!
16831695 Safe : false
16841696Lint/RedundantSplatExpansion :
16851697 Description : Checks for splat unnecessarily being called on literals.
@@ -2123,7 +2135,7 @@ Migration/DepartmentName:
21232135 Enabled : false
21242136 VersionAdded : ' 0.75'
21252137Naming/AccessorMethodName :
2126- Description : Check the naming of accessor methods for get_/set_.
2138+ Description : Checks the naming of accessor methods for get_/set_.
21272139 StyleGuide : " #accessor_mutator_method_names"
21282140 Enabled : false
21292141 VersionAdded : ' 0.50'
@@ -2426,6 +2438,7 @@ Security/JSONLoad:
24262438 issues. See reference for more information.
24272439 References :
24282440 - https://ruby-doc.org/stdlib-2.7.0/libdoc/json/rdoc/JSON.html#method-i-load
2441+ - https://bugs.ruby-lang.org/issues/19528
24292442 Enabled : false
24302443 VersionAdded : ' 0.43'
24312444 VersionChanged : ' 1.22'
@@ -2538,6 +2551,11 @@ Style/ArrayIntersect:
25382551 Enabled : false
25392552 Safe : false
25402553 VersionAdded : ' 1.40'
2554+ Style/ArrayIntersectWithSingleElement :
2555+ Description : Use `include?(element)` instead of `intersect?([element])`.
2556+ Enabled : false
2557+ Safe : false
2558+ VersionAdded : ' 1.81'
25412559Style/ArrayJoin :
25422560 Description : Use Array#join instead of Array#*.
25432561 StyleGuide : " #array-join"
@@ -3174,7 +3192,7 @@ Style/GlobalVars:
31743192 VersionAdded : ' 0.13'
31753193 AllowedVariables : []
31763194Style/GuardClause :
3177- Description : Check for conditionals that can be replaced with guard clauses.
3195+ Description : Checks for conditionals that can be replaced with guard clauses.
31783196 StyleGuide : " #no-nested-conditionals"
31793197 Enabled : false
31803198 VersionAdded : ' 0.20'
@@ -3373,7 +3391,7 @@ Style/IpAddresses:
33733391 - " /**/gems.rb"
33743392 - " /**/*.gemspec"
33753393Style/ItAssignment :
3376- Description : Checks for assignment to `it` inside a block .
3394+ Description : Checks for local variables and method parameters named `it` .
33773395 Enabled : false
33783396 VersionAdded : ' 1.70'
33793397Style/ItBlockParameter :
@@ -3416,8 +3434,9 @@ Style/LambdaCall:
34163434 Description : Use lambda.call(...) instead of lambda.(...).
34173435 StyleGuide : " #proc-call"
34183436 Enabled : false
3437+ AutoCorrect : contextual
34193438 VersionAdded : ' 0.13'
3420- VersionChanged : ' 0.14 '
3439+ VersionChanged : " <<next>> "
34213440 EnforcedStyle : call
34223441 SupportedStyles :
34233442 - call
@@ -3942,7 +3961,7 @@ Style/RandomWithOffset:
39423961 Enabled : false
39433962 VersionAdded : ' 0.52'
39443963Style/RedundantArgument :
3945- Description : Check for a redundant argument passed to certain methods.
3964+ Description : Checks for a redundant argument passed to certain methods.
39463965 Enabled : false
39473966 Safe : false
39483967 VersionAdded : ' 1.4'
@@ -4071,7 +4090,7 @@ Style/RedundantInterpolationUnfreeze:
40714090 Enabled : false
40724091 VersionAdded : ' 1.66'
40734092Style/RedundantLineContinuation :
4074- Description : Check for redundant line continuation.
4093+ Description : Checks for redundant line continuation.
40754094 Enabled : false
40764095 VersionAdded : ' 1.49'
40774096Style/RedundantParentheses :
@@ -4316,7 +4335,7 @@ Style/SpecialGlobalVars:
43164335 - use_english_names
43174336 - use_builtin_english_names
43184337Style/StabbyLambdaParentheses :
4319- Description : Check for the usage of parentheses around stabby lambda arguments.
4338+ Description : Checks for the usage of parentheses around stabby lambda arguments.
43204339 StyleGuide : " #stabby-lambda-with-args"
43214340 Enabled : false
43224341 VersionAdded : ' 0.35'
@@ -4475,6 +4494,7 @@ Style/TrailingCommaInArguments:
44754494 SupportedStylesForMultiline :
44764495 - comma
44774496 - consistent_comma
4497+ - diff_comma
44784498 - no_comma
44794499Style/TrailingCommaInArrayLiteral :
44804500 Description : Checks for trailing comma in array literals.
0 commit comments