Update dependency rubocop to '~> 1.80.0'#94
Merged
Conversation
7ae9a74 to
ef9f5c7
Compare
ef9f5c7 to
cdcead0
Compare
silug
approved these changes
Sep 22, 2025
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.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
'~> 1.68.0'->'~> 1.80.0'Release Notes
rubocop/rubocop (rubocop)
v1.80.2Compare Source
Bug fixes
Style/SafeNavigationwhen using ternary expression with index access call with method chain. ([@koic][])Style/RedundantParentheseswith unary operators andyield,super, ordefined?. ([@earlopain][])Style/RedundantParentheseswith method calls taking argument without parentheses likereturn (x y) if z. ([@earlopain][])Style/StringConcatenationwhen a double-quoted string contains escaped quotes and interpolation. ([@earlopain][])Style/StringConcatenationwhen a single-quoted string contains interpolation like'#{foo}'. ([@earlopain][])Changes
Naming/PredicateMethodallow theinitializemethod. ([@koic][])v1.80.1Compare Source
Bug fixes
--display-timeoption is used on the CLI. ([@lovro-bikic][])Style/RedundantBeginusingbeginwith multiple statements withoutrescueorensure. ([@koic][])Changes
Layout/EndAlignmentwhenendis not on a separate line. ([@lovro-bikic][])v1.80.0Compare Source
Bug fixes
Style/BitwisePredicatewhen using&with LHS flags in conjunction with==for comparisons. ([@koic][])Style/Forwith save navigation in the collection. ([@earlopain][])Lint/DuplicateRegexpCharacterClassElementis enabled. ([@earlopain][])Lint/UselessAssignmentwhen duplicate assignments appear in nestedifbranches inside a loop and the variable is used outsidewhileloop. ([@koic][])Naming/MethodNamewhen an operator method is defined using a string. ([@koic][])Style/RedundantParentheseswhendo...endblock is wrapped in parentheses as a method argument. ([@koic][])Style/SafeNavigation. ([@issyl0][])Layout/EmptyLinesAfterModuleInclusionwhenincludedoes not have exactly one argument. ([@issyl0][])Style/SafeNavigationcop to preserve existing safe navigation in fixed code. ([@martinemde][])Lint/UselessAssignmentwithforloops when the variable is referenced in the collection. ([@earlopain][])Style/RedundantConditionwith a parenthesised method call in the condition. ([@earlopain][])Changes
Lint/SelfAssignmentto handle indexed assignment with multiple arguments. ([@viralpraxis][])AutoCorrectandIncludefrom configuration parameters. ([@r7kamura][])Style/RedundantBeginaware ofcasepattern matching. ([@koic][])Style/ArrayIntersect. ([@lovro-bikic][])TextDocumentSyncKind.Incremental. ([@tmtm][])Style/RedundantBeginto registerbeginblocks insideif,unless,case,whileanduntilas redundant. ([@dvandersluis][])v1.79.2Compare Source
Bug fixes
Layout/EmptyLinesAroundClassBodywhen a class body starts with a blank line and defines a multiline superclass. ([@koic][])Layout/EmptyLinesAroundArgumentswith multiline strings that contain only whitespace. ([@earlopain][])Layout/EmptyLinesAfterModuleInclusionwhen inclusion is called with modifier. ([@r7kamura][])Lint/UselessAssignmentwhen duplicate assignments appear inifbranch inside a loop and the variable is used outsidewhileloop. ([@koic][])Style/MapToHashwhen usingto_hwith block argument. ([@koic][])Style/MapToSetwhen usingto_setwith block argument. ([@koic][])Style/SafeNavigationwhen ternary expression with operator method call with method chain. ([@koic][])Changes
Style/RedundantParentheses. ([@lovro-bikic][])v1.79.1Compare Source
Bug fixes
Style/ArgumentsForwardingwhen the method arguments contain*,**or&, and the method call containsselfas the first argument. ([@earlopain][])Layout/EmptyLinesAfterModuleInclusionwhenprependis used with block methods. ([@koic][])Style/RedundantParentheseswhen parentheses are used around a one-linerescueexpression inside a ternary operator. ([@koic][])Lint/UselessAssignmentwhen duplicate assignments inifbranch inside a loop. ([@koic][])Lint/UselessAssignmentwithretryinrescuebranch. ([@earlopain][])Style/RedundantParentheseswhen parentheses are used around a one-linerescueexpression inside array or hash literals. ([@koic][])Changes
Naming/MethodNamecop to detect offenses withinaliasandalias_methodcalls. ([@viralpraxis][])||toLint/LiteralAsCondition. ([@zopolis4][])v1.79.0Compare Source
New features
Layout/EmptyLinesAfterModuleInclusion. ([@lovro-bikic][])Naming/MethodNamecop to detect offenses withinDatamembers. ([@viralpraxis][])Bug fixes
Style/ParallelAssignmentwhen a lambda with parallel assignment is used on the RHS. ([@koic][])Style/AccessorGroupingseparated autocorrect. ([@r7kamura][])Lint/UselessAssignmentwhen the assignment is inside a loop body. ([@5hun-s][])Style/RedundantParentheseswhen using parentheses around arescueexpression on a one-line. ([@koic][])Style/AccessModifierDeclarationswhen using a grouped access modifier declaration. ([@girasquid][])Style/SingleLineMethodswhen defining a single-line singleton method. ([@koic][])Style/SingleLineMethodswhen a single-line method definition contains a modifier. ([@koic][])Naming/MethodNamecop false positives withdefine_methodand operator names. ([@viralpraxis][])Naming/PredicateMethodignoring the implicitnilfrom missingelsebranches. ([@earlopain][])Style/ItBlockParametercop error onalwaysstyle and missing block body. ([@viralpraxis][])Lint/RequireRangeParenthesesto not register false positives when range elements span multiple lines. ([@dvandersluis][])Style/SoleNestedConditionalto properly correct assignments withinand. ([@dvandersluis][])Changes
tsortgem to runtime dependency for Ruby 3.5-dev. ([@koic][])Style/ItAssignmentto consider all local variable and method parameter names. ([@dvandersluis][])Layout/SpaceAroundKeywordto offend for missing whitespace betweenreturnand opening parenthesis. ([@lovro-bikic][])Layout/SpaceAroundOperatorsaware of alternative and as pattern matchings. ([@koic][])Lint/RedundantSafeNavigationaware of builtin convert methodsto_s,to_i,to_f,to_a, andto_h. ([@koic][])InferNonNilReceiverconfig toLint/RedundantSafeNavigationto check previous code paths if the receiver is non-nil. ([@fatkodima][])array1.any? { |elem| array2.member?(elem) }andarray1.none? { |elem| array2.member?(elem) }inStyle/ArrayIntersect. ([@lovro-bikic][])v1.78.0Compare Source
New features
Naming/MethodNamecop to detect offenses withindefine_methodcalls. ([@viralpraxis][])Naming/MethodNamecop to handle offenses withinStructmembers. ([@viralpraxis][])Security/Evalcop to detectKernel.evalcalls. ([@viralpraxis][])Bug fixes
Style/HashConversionto avoid syntax error. ([@koic][])Style/SingleLineMethods. ([@koic][])--formatdisables parallelization. ([@r7kamura][])Lint/DuplicateMethodscop when self-alias trick is used. ([@viralpraxis][])Lint/LiteralAsConditionwhen a literal is used inside||incasecondition. ([@koic][])Style/HashConversionfor nestedHash[]calls. ([@dvandersluis][])Lint/RedundantTypeConversionwhen using parentheses with no arguments or any arguments. ([@koic][])Style/ItBlockParameterwhen using a single numbered parameter after multiple numbered parameters in a method chain. ([@koic][])Changes
WaywardPredicatesconfig toNaming/PredicateMethodto handle methods that look like predicates but aren't. ([@dvandersluis][])v1.77.0Compare Source
New features
Gemspec/AttributeAssignmentcop. ([@viralpraxis][])Style/CollectionQuerying. ([@lovro-bikic][])DefaultToNiloption toStyle/FetchEnvVarcop. ([@Yuhi-Sato][])Gemspec/RequireMFAcop autocorrect to insert MFA directive after lastmetadataassignment. ([@viralpraxis][])Layout/SpaceInsideArrayLiteralBracketscop to analyze nested constant patterns. ([@viralpraxis][])Bug fixes
Style/HashConversionwhen using nestedHash[]. ([@koic][])Style/SoleNestedConditionalwhen autocorrecting nested if/unless/if. ([@ssagara00][])Layout/SpaceBeforeBracketswhen call desugaredHash#[]to lvar receiver with a space around the dot. ([@koic][])Style/RedundantParentheseswhen assigning a parenthesized one-lineinpattern matching. ([@koic][])Style/RedundantSelfwhen receiver and lvalue have the same name in or-assignment. ([@koic][])Lint/SelfAssignmentto allow inline RBS comments. ([@Morriar][])Style/MethodCallWithArgsParenthesesfalse positive on forwarded keyword argument with additional arguments. ([@viralpraxis][])Style/RedundantParentheses. ([@lovro-bikic][])Changes
Naming/PredicateMethodto consider negation (!/not) as boolean values. ([@dvandersluis][])Naming/PredicateMethodto treat returned predicate method calls as boolean values. ([@dvandersluis][])v1.76.2Compare Source
Bug fixes
Lint/EmptyInterpolationwhen using a boolean literal inside interpolation. ([@koic][])Lint/UselessDefaultValueArgumentwhenfetchcall without a receiver. ([@koic][])Style/ConditionalAssignmentcop when using one-line branches. ([@viralpraxis][])Style/RedundantParentheseswhen using parenthesized one-line pattern matching in endless method definition. ([@koic][])Style/RedundantSelfwhen local variable assignment name is used in nestedif. ([@koic][])Lint/SafeNavigationChainwhen a safe navigation is used on the left-hand side of a-operator when inside an array. ([@koic][])Changes
AllowedPatternsandAllowBangMethodsconfiguration toNaming/PredicateMethod. ([@dvandersluis][])Lint/AmbiguousRange. ([@lovro-bikic][])Lint/UselessAccessModifier. ([@lovro-bikic][])Style/MinMaxComparison. ([@lovro-bikic][])v1.76.1Compare Source
Bug fixes
Lint/EmptyInterpolationwhen using primitives in interpolation. ([@ka8725][])Style/SafeNavigationwhen using ternary expression with index access call. ([@koic][])Style/SafeNavigationwhen using ternary expression with operator method call. ([@koic][])Style/RedundantArrayFlattenwhenArray#joinis used with an argument other than the defaultnil. ([@koic][])Style/RedundantParentheseswhen using one-lineinpattern matching in operator. ([@koic][])Naming/PredicateMethodcop error on empty parentheses method body. ([@viralpraxis][])Style/SafeNavigationcop error on indexed assignment in ternary expression. ([@viralpraxis][])Style/SafeNavigationinvalid autocorrection on double colon method call. ([@viralpraxis][])v1.76.0Compare Source
New features
Naming/PredicateMethodcop to check that predicate methods end with?and non-predicate methods do not. ([@dvandersluis][])Style/EmptyStringInsideInterpolationcop. ([@zopolis4][])Style/RedundantArrayFlatten. ([@lovro-bikic][])Lint/UselessOr. ([@lovro-bikic][])Gemspecdepartment cops to detect offenses if specification variable isitor a numbered parameter. ([@viralpraxis][])Lint/UselessDefaultValueArgument. ([@lovro-bikic][])Bug fixes
Style/RedundantParentheseswhen using a one-linerescueexpression as a method argument. ([@koic][])Style/RedundantParentheseswhen using one-line pattern matching. ([@koic][])Style/SafeNavigationwhen a ternary expression is used in a method argument. ([@steiley][])Lint/LiteralAsConditionautocorrect when branches of a condition have comments. ([@zopolis4][])Changes
EnforcedStyle: allow_single_lineas the default toStyle/ItBlockParameter. ([@koic][])Lint/ShadowingOuterLocalVariableby default. ([@nekketsuuu][])!=) inLint/IdentityComparison. ([@lovro-bikic][])v1.75.8Compare Source
Bug fixes
Lint/FloatComparisoncop to detect floating-point number comparisons incasestatements. ([@daisuke][])Style/RedundantFormatwith invalid format arguments. ([@earlopain][])Style/DefWithParentheseswhen using endless method definition with empty parentheses and a space before=. ([@koic][])EnforcedStyle: with_fixed_indentationofLayout/ArgumentAlignmentandEnforcedStyle: consistentofLayout/FirstArgumentIndentationandLayout/HashAlignment. ([@koic][])Layout/EmptyLinesAroundAccessModifiercop error on trailing access modifier. ([@viralpraxis][])Lint/DuplicateMethodscop error ontooption is dynamically generated andprefixis enabled. ([@viralpraxis][])Style/MapToHashwith destructuring argument. ([@lovro-bikic][])rubocop:todoEOL comment. ([@jonas054][])v1.75.7Compare Source
Bug fixes
Style/IfUnlessModifierOfIfUnlesswhen using nested modifier. ([@koic][])Layout/SpaceBeforeBracketswhen using space between method argument parentheses and left bracket. ([@koic][])Layout/SpaceBeforeBracketswhen using space between receiver and left brackets, and a space inside left bracket. ([@koic][])Style/AccessModifierDeclarationscop error on semicolon after modifier. ([@viralpraxis][])Style/AccessModifierDeclarationscop error on symbol modifier without surrounding scope. ([@viralpraxis][])Style/AccessModifierDeclarationscop false positives when there are no method definitions and style isinline. ([@viralpraxis][])Lint/UselessAssignmentcop error when using nested assignment with splat. ([@earlopain][])Changes
Gemspec/DuplicatedAssignmentcop to detect duplicated indexed assignment. ([@viralpraxis][])prefixargument fordelegatemethod inLint/DuplicateMethods. ([@lovro-bikic][])v1.75.6Compare Source
Bug fixes
Style/MultilineIfModifierwhen using nested modifier. ([@koic][])nilrepresentation in todo file comments. ([@jonas054][])Lint/UselessAssignmentwhen variables are assigned using unary operator in chained assignment and remain unreferenced. ([@koic][])Style/StringConcatenationwhen using implicit concatenation with string interpolation. ([@koic][])Style/SoleNestedConditionalwhen using nestedifandnotin condition. ([@koic][])Layout/SpaceInsideArrayLiteralBracketscop error on array pattern without brackets. ([@viralpraxis][])Style/PercentQLiteralscop error on Unicode escape sequence. ([@viralpraxis][])Changes
Style/ComparableBetweenas unsafe. ([@earlopain][])Lint/DuplicateMethodsaware of Active Support'sdelegatemethod. ([@lovro-bikic][])Style/IfUnlessModifierallow endless method definition in theifbody. ([@koic][])v1.75.5Compare Source
Bug fixes
Layout/SpaceAfterSemicolonwithLayout/SpaceBeforeSemicolonwhen a sequence of semicolons appears. ([@koic][])Lint/ArrayLiteralInRegexpcop error on empty interpolation. ([@viralpraxis][])Layout/HashAlignment. ([@jonas054][])Style/ArgumentsForwardingwhen using anonymous block argument forwarding to a method with a block. ([@koic][])Layout/LeadingCommentSpaceto allow splitting long inline RBS comment signatures across multiple lines. ([@Morriar][])Lint/LiteralAsConditioncop error onifwithout body. ([@viralpraxis][])Lint/Voidcop error on nested emptybegin. ([@viralpraxis][])Style/IdenticalConditionalBranchescop failure in case ofifnode with implicitthen. ([@viralpraxis][])Style/MethodCallWithArgsParenthesescop error on complex numbers whenEnforcedStyleis set toomit_parentheses. ([@viralpraxis][])Style/TrailingCommaInArgumentscop error ifEnforcedStyleForMultilineis set tocomma. ([@viralpraxis][])Changes
Layout/SpaceInsideArrayLiteralBracketsmake aware of array pattern matching. ([@koic][])Layout/SpaceInsideHashLiteralBracesmake aware of hash pattern matching. ([@koic][])v1.75.4Compare Source
Bug fixes
Lint/BooleanSymbolwhen using the rocket hash syntax with a boolean symbol key. ([@koic][])Style/ComparableBetweenwhen comparing the value with itself. ([@earlopain][])Style/SafeNavigationwhen the RHS of&&is a complex||expression composed of&&conditions. ([@koic][])Style/ArgumentsForwardingwhen using default positional arg, keyword arg, and block arg in Ruby 3.1. ([@koic][])Style/RedundantParentheseswhen parens around basic conditional as the second argument of a parenthesized method call. ([@koic][])Style/RedundantParentheseswhen parens around unparenthesized method call as the second argument of a parenthesized method call. ([@koic][])Lint/LiteralAsConditionautocorrect when a literal is the condition of an elsif followed by an else. ([@zopolis4][])Style/TrailingCommaInArgumentscop aware of trailing commas in[]method call. ([@viralpraxis][])Style/ClassAndModuleChildrencop error on tab-intended compactable modules. ([@viralpraxis][])Changes
Lint/CircularArgumentReferenceon Ruby 3.4. ([@earlopain][])v1.75.3Compare Source
Bug fixes
#:after end keyword inStyle/CommentedKeyword. ([@dak2][])Layout/EmptyLineAfterGuardClausewhen calling a method on the result of a single-lineifwithreturn. ([@koic][])Style/RedundantParentheseswhen using parens around singleton method body. ([@koic][])EnforcedStyleForMultiline: diff_commaofStyle/TrailingCommaInArrayLiteralandStyle/TrailingCommaInHashLiteralwhen trailing comma with comment. ([@koic][])Style/RedundantParentheseswhen using some operator methods with a parenthesized argument. ([@koic][])Layout/MultilineOperationIndentationcop error onindexasgnnode without arguments. ([@viralpraxis][])Style/ClassAndModuleChildrencop error on one-liner class definition and nested enforced style. ([@viralpraxis][])Style/ConditionalAssignmentcop error on one-line if-then-else. ([@viralpraxis][])Style/ConditionalAssignmentcop error on indexed assignment without arguments. ([@viralpraxis][])Style/RedundantLineContinuationcop error on multiline assignment with line continuation. ([@viralpraxis][])Style/SafeNavigationwith longer&&chain (e.g.a && a.b && a.b.c). ([@lovro-bikic][])Style/MapIntoArraywhen usingpushorappendwith hash argument without braces. ([@lovro-bikic][])Changes
Style/RedundantParentheses. ([@lovro-bikic][])ReferencesoverReferencein cop configs. ([@sambostock][])v1.75.2Compare Source
Changes
Lint/RedundantTypeConversionto register an offense forto_json.to_s. ([@lovro-bikic][])Bug fixes
Lint/DeprecatedOpenSSLConstantcipher constant argument is notcbc. ([@koic][])Style/RedundantConditionwhen true is used as the true branch and the condition takes arguments. ([@koic][])Lint/ReturnInVoidContextwhen returning insidedefine_methodor a nested singleton method. ([@earlopain][])Style/ConditionalAssignmentcop error on dynamic string node in branch. ([@viralpraxis][])Style/FrozenStringLiteralCommentcop errors on emacs-styled magic comment. ([@viralpraxis][])v1.75.1Compare Source
Changes
EnforcedStyle: allow_named_parametertoEnforcedStyle: only_numbered_parametersinStyle/ItBlockParameter. ([@koic][])v1.75.0Compare Source
New features
Style/HashFetchChaincop to detect chainedfetchcalls that can be replaced with a single call todig. ([@dvandersluis][])Style/ItBlockParametercop. ([@koic][])itblock parameter inLayoutcops. ([@koic][])itblock parameter inLintcops. ([@koic][])itblock parameter inMetricscops. ([@koic][])itblock parameter inStylecops. ([@koic][])TargetRubyVersion: 3.5(experimental). ([@earlopain][])Bug fixes
Style/HashFetchChainwhen no arguments are given tofetch. ([@koic][])Layout/MultilineMethodParameterLineBreakswhen class method definitions are used. ([@vlad-pisanov][])Layout/LineLengthwhen autocorrecting class method definitions. ([@vlad-pisanov][])Layout/SpaceAroundOperatorsandLayout/HashAlignmentwithEnforcedHashRocketStylebeing an array containingtable. ([@dvandersluis][])InternalAffairs/RedundantDescribedClassAsSubjectcop error on missingdescribe. ([@viralpraxis][])Lint/ShadowingOuterLocalVariablewhen block local variable is used inside a condition. ([@lovro-bikic][])Lint/UselessAssignmentwhen a variable is reassigned in a different branch. ([@eugeneius][])Style/SoleNestedConditional. ([@lovro-bikic][])Style/IfInsideElse. ([@lovro-bikic][])Changes
doesas a forbidden prefix toNaming/PredicateName. ([@dvandersluis][])ForbiddenIdentifiersandForbiddenPatternsconfig options toNaming/MethodNamecop. ([@tejasbubane][])Array#intersectiontoStyle/ArrayIntersect. ([[@&[puppetsync] Clean up for linters #82Configuration
📅 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 is behind base branch, 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.