chore(deps): update dependency rubocop to v1.86.0#82
Merged
Conversation
b63e0dc to
43b9e38
Compare
43b9e38 to
6a8c737
Compare
6a8c737 to
1077a4e
Compare
1077a4e to
f33d575
Compare
f33d575 to
82d28ac
Compare
82d28ac to
73032e9
Compare
Owner
|
@rultor please, try to merge, since 11 checks have passed |
yegor256
approved these changes
Mar 29, 2026
Collaborator
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.82.1→1.86.0Release Notes
rubocop/rubocop (rubocop)
v1.86.0Compare Source
New features
AllowedParentClassesoption toStyle/EmptyClassDefinition. ([@hammadkhan][])AllowedReceiversforStyle/HashLookupMethod. ([@koic][])Bug fixes
Style/ConcatArrayLiteralsautocorrect deleting code for percent literals with interpolation. ([@bbatsov][])Lint/ConstantReassignment. ([@ydakuka][])Lint/DuplicateMethodswhen duplicate methods are defined in anonymous classes and modules not assigned to a constant. ([@Darhazer][])Style/RedundantParentheseswhen redundant parentheses around range literals in block body. ([@koic][])Layout/MultilineMethodCallIndentationwhen method chain is inside a hash pair value passed to a multiline chained method call. ([@ydakuka][])Lint/DuplicateMethodswhen modules blocks are passed as method arguments. ([@5hun-s][])Lint/DuplicateMethodswhen the same method is defined in different anonymous module blocks passed to a no-receiver call (e.g.stub_const). ([@Darhazer][])Layout/EmptyLineAfterGuardClausewhen using a guard clause followed by a multi-line guard clause withraise,fail,return,break, ornext. ([@koic][])Layout/RedundantLineBreakwhen settingInspectBlocks: trueand usingrescueorensurein the block. ([@koic][])Style/FileOpenwhen assigningFile.opento an instance variable, class variable, global variable, or constant. ([@koic][])Lint/DuplicateMethodswhen the same method is defined in anonymous module blocks passed to different receivers. ([@koic][])Style/IfWithSemicolonwhenreturnwith value is in theelsebranch. ([@koic][])Style/IfUnlessModifierwhen multipleif/unlessmodifier forms are on the same line inside a collection. ([@ydakuka][])Lint/SafeNavigationChainwhen chaining a method call after safe navigation in the if branch of a ternary. ([@koic][])Layout/EndAlignmentwhenendis followed by||or&&. ([@koic][])Safe/SafeAutoCorrectparameter" when those parameters are set for cops that don't have them in their default configuration. ([@dduugg][])Lint/UselessDefaultValueArgumentwhenfetchwithout a receiver is inside afetchblock. ([@koic][])Style/IfWithSemicolonwhen using single-lineunless/;/end. ([@koic][])Style/NonNilCheckautocorrect for receivers containing spaces. ([@bbatsov][])Style/RaiseArgsto allow anonymous keyword forwarding (raise Ex.new(**)). ([@bbatsov][])Lint/RedundantCopDisableDirectivewhen arubocop:disablecomment is used to suppressLint/EmptyWhen,Lint/EmptyConditionalBody,Lint/EmptyInPattern, orStyle/SymbolProc. ([@eugeneius][])Style/RedundantPercentQfor%qstrings with interpolation-like syntax. ([@bbatsov][])Style/AndOradding unnecessary parentheses aroundreturnwithout arguments. ([@eugeneius][])Lint/UselessConstantScoping. ([@h-lame][])Style/TrailingMethodEndStatementto detect singleton methods (def self.foo). ([@bbatsov][])Changes
MaxFilesInCachetofalseto entirely disable cache pruning. ([@byroot][])Lint/RedundantSafeNavigationaware of safe navigation in conditional true branch. ([@koic][])mcpgem from runtime dependencies. ([@koic][])v1.85.1Compare Source
Bug fixes
Style/FileOpenwhenFile.openis passed as an argument or returned from a method. ([@sferik][])Style/ReduceToHashfalse positive when accumulator is read in key/value. ([@sferik][])Style/RedundantParentheseswhen parenthesizing a range in a block body. ([@koic][])Changes
v1.85.0Compare Source
New features
mise.tomlas source for TargetRubyVersion. ([@kitsane][])Lint/UnreachablePatternBranchcop. ([@sferik][])Style/FileOpencop. ([@sferik][])Style/MapJoincop. ([@sferik][])Style/OneClassPerFilecop. ([@sferik][])Style/PartitionInsteadOfDoubleSelectcop. ([@sferik][])Style/PredicateWithKindcop. ([@sferik][])Style/ReduceToHashcop. ([@sferik][])Style/RedundantMinMaxBycop. ([@sferik][])Style/RedundantStructKeywordInitcop. ([@koic][])Style/SelectByKindcop. ([@sferik][])Style/SelectByRangecop. ([@sferik][])Style/TallyMethodcop. ([@sferik][])Lint/DataDefineOverridecop. ([@bbatsov][])InternalAffairs/ItblockHandlercop. ([@bbatsov][])Bug fixes
Style/EmptyClassDefinition. ([@koic][])Style/NegatedWhilewhen the last expression of anuntilcondition is negated. ([@koic][])Style/EmptyClassDefinitionmessage wording. ([@bbatsov][])Lint/Voidwhennilis used incasebranch. ([@5hun-s][])Style/IfUnlessModifierwhen modifier forms are used inside string interpolations. ([@koic][])Style/HashTransformKeysandStyle/HashTransformValues. ([@sferik][])Lint/Voidforeachblocks where the return value may be meaningful (e.g.,Enumerator#each). ([@sferik][])Layout/IndentationWidthfalse positive for chained method blocks whenEnforcedStyleAlignWithisstart_of_line. ([@krororo][])Lint/Voidto detect void expressions incase/whenbranches. ([@bbatsov][])Parser::ClobberingErrorinLint/UselessAssignmentwhen autocorrecting a useless assignment that wraps a block containing another useless assignment. ([@koic][])Layout/MultilineAssignmentLayoutwhen usingnumblockoritblockwithSupportedTypes: ['block']. ([@bbatsov][])Layout/FirstHashElementIndentation. ([@ydakuka][])Layout/MultilineAssignmentLayout. ([@sanfrecce-osaka][])Lint/RedundantSafeNavigationwhen using&.respond_to?with methods defined onObject(e.g.,:class). ([@bbatsov][])Lint/SafeNavigationConsistencyautocorrect as unsafe. ([@bbatsov][])SyntaxErrorinLint/InterpolationCheckwhen single quoted string contains double quotes with invalid interpolation. ([@ydakuka][])Changes
Style/HashAsLastArrayItemwhen multiline hash elements. ([@koic][])Style/EndlessMethodcop to consider receivers. ([@fatkodima][])class_definitiontoclass_keywordinEnforcedStyleofStyle/EmptyClassDefinition. ([@koic][])String.newwith interpolated strings toStyle/RedundantInterpolationUnfreeze. ([@lovro-bikic][])Style/RedundantParentheses. ([@lovro-bikic][])v1.84.2Compare Source
Bug fixes
Style/BlockDelimiterswhen autocorrecting nested multi-line blocks with adjacent curly braces. ([@koic][])Style/IfUnlessModifierwhen the first value uses a normalifand the others use modifierif. ([@koic][])Layout/FirstArgumentIndentationwhen first arguments are over-indented in nested method calls. ([@koic][])Layout/MultilineMethodCallIndentationwhen a multiline method call follows a hash access. ([@koic][])Layout/MultilineMethodCallIndentationwhen a multiline method call includes a keyword argument whose value is a method call with a block. ([@koic][])Layout/EmptyLinesAfterModuleInclusionwhenincludeis nested inside an array. ([@eugeneius][])Style/FormatStringTokento not autocorrect strings outside of format method context in aggressive mode. ([@ydakuka][])Style/HashAsLastArrayItemwhen an array contains only a single hash element. ([@koic][])Style/MethodDefParentheseswhen using splat or forwarding arguments without parentheses. ([@koic][])Layout/MultilineMethodCallIndentationwhen a multi-dot method chain is inside a hash pair value. ([@ydakuka][])Layout/MultilineMethodCallIndentationwhen a method is chained after a single-line block. ([@ydakuka][])Offense#highlighted_areaforPseudoSourceRangelocations. ([@rafaelfranca][])Style/IfUnlessModifierwhen the first value uses a normalifand the others use ternary operator. ([@koic][])v1.84.1Compare Source
Bug fixes
Layout/IndentationWidthcop. ([@viralpraxis][])Style/NegativeArrayIndexwhen usingselfas array with implicitselfreceiver. ([@koic][])Style/GuardClausewhen using heredoc as an argument of method call in raise inelsebranch. ([@koic][])Style/IfUnlessModifierwhen multipleif/unlessstatements share the same line in arrays, method arguments, or hash values. ([@ydakuka][])Layout/FirstArgumentIndentationandLayout/LineLengthwhen correcting method chains. ([@ydakuka][])Layout/MultilineMethodCallIndentationto properly handle method chains inside hash pair values. ([@ydakuka][])Changes
infinite?method to the allowlists forNaming/PredicateMethod,Style/IfWithBooleanLiteralBranches, andStyle/RedundantCondition, in addition to the existingnonzero?. ([@koic][])v1.84.0Compare Source
New features
AllowImplicitArrayLiteralstoLayout/FirstArrayElementLineBreak. ([@koic][])Style/ReverseFindcop. ([@koic][])Style/EmptyClassDefinitioncop to enforce consistent style for empty class definitions. The cop can enforce either a two-line class definition orClass.newfor classes with no body. ([@ydakuka][])Style/HashLookupMethodcop to enforceHash#[]vsHash#fetchpreference. ([@sferik][])Style/NegativeArrayIndexcop to enforce using negative array indices instead of calculating array length minus a value. The cop handles both simple index patterns and range patterns, and recognizes preserving methods and their combinations. ([@ydakuka][])TargetRubyVersion 4.1(experimental). ([@koic][])Bug fixes
CategoriesforLayout/ClassStructure. ([@fatkodima][])Style/GuardClausewhen using heredoc as an argument of raise inelsebranch andifbranch is empty. ([@koic][])Style/HashLookupMethodcop when there's no receiver. ([@viralpraxis][])ruby_extractorwhen usingoffset: 0and different source buffers. ([@ydakuka][])Style/RedundantConditionwhen the branches contains constant assignment. ([@koic][])--force-default-confignot preventing project config loading when used with options that access configuration. ([@sakuro][])Style/HashSyntaxwhen shorthand syntax is used in condition ofif/unless/while/until. ([@ydakuka][])Layout/IndentationWidthby adding a newEnforcedStyleAlignWithstyle parameter. ([@MikeMcQuaid][])Layout/LineLengthwhenSplitStringsoption is enabled and strings span multiple lines. ([@HariprasanthMSH][])Layout/IndentationWidthandLayout/IndentationConsistencywhen usingEnforcedStyle: indented_internal_methodswith method chain blocks. ([@ydakuka][])Layout/IndentationWidthwhen autocorrecting mixed tabs and spaces in blocks. Fix an infinite loop error forLayout/DefEndAlignmentandLayout/IndentationStylewhen autocorrecting mixed tabs and spaces. Autocorrection for tabs is disabled inAlignmentCorrectorfor indentation offenses, but enabled foralign_end. ([@ydakuka][])Layout/FirstArgumentIndentationto correct entire method calls and chains for nested calls. ([@ydakuka][])Offense#highlighted_areato return a validParser::Source::Range. ([@ydakuka][])Security/JSONLoadwhencreate_additionsoption is passed with other options in a hash. ([@wktk][])Changes
squishandsquish!applied to heredoc toLayout/HeredocIndentation. ([@lovro-bikic][])Forwardablemethods inLint/DuplicateMethods. ([@lovro-bikic][])Lint/RedundantSplatExpansionaware of constant assignment. ([@koic][])Style/AccessModifierDeclarationsaware of self class. ([@koic][])Modulemember existence methods toStyle/ModuleMemberExistenceCheck. ([@lovro-bikic][])AllowedMethodsconfiguration toStyle/ModuleMemberExistenceCheck. ([@lovro-bikic][])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.