chore(deps): update dependency rubocop to v1.69.2 #2357
Merged
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.67.0->1.69.2Release Notes
rubocop/rubocop (rubocop)
v1.69.2Compare Source
Bug fixes
Style/MultipleComparisonwhen a variable is compared multiple times after a method call. ([@koic][])Bundler/DuplicatedGemcop error in case of empty branch. ([@viralpraxis][])Lint/UnescapedBracketInRegexpcop failure with invalid multibyte escape. ([@earlopain][])Style/FileNullwhen using'nul'string. ([@koic][])--disable-uncorrectableto not insert directives inside a string. ([@dvandersluis][])Layout/LineContinuationLeadingSpaceandStyle/StringLiteralsautocorrects in the same pass. ([@dvandersluis][])Style/BlockDelimitersto always accept braces when an operator method argument is chained. ([@dvandersluis][])Style/RedundantLineContinuationfalse negatives when a redundant continuation follows a required continuation. ([@dvandersluis][])Style/IfWithSemicolonwhen using multi value assignment inifwith a semicolon is used. ([@koic][])Layout/LineLengthcop failure in case of YARD-comment-like string. ([@viralpraxis][])Lint/NonAtomicFileOperationcop error in case of implicit receiver. ([@viralpraxis][])Metrics/ClassLengthcop error in case of chained assignments. ([@viralpraxis][])Naming/RescuedExceptionsVariableNamecop error when exception is assigned with writer method. ([@viralpraxis][])Style/RedundantLineContinuationwhen a method definition is used as an argument for a method call. ([@davidrunger][])Style/ExactRegexpMatchcop error on invalid regular expression literal. ([@viralpraxis][])Style/FrozenStringLiteralCommentfalse positive in case of non-downcased value literal. ([@viralpraxis][])Style/MethodCallWithoutArgsParenthesescop error in case of mass hash assignment. ([@viralpraxis][])Style/RedundantConditioncop failure in case of empty arguments. ([@viralpraxis][])Layout/ExtraSpacingandLayout/SpaceAroundOperatorsto handle preceding operators inside strings. ([@dvandersluis][])v1.69.1Compare Source
Bug fixes
Style/DigChainwhen using safe navigation method chain withdigmethod. ([@koic][])Style/ParallelAssignmentwhen using the anonymous splat operator. ([@earlopain][])Lint/UnreachableCode. ([@isuckatcs][])Style/HashExceptcop when usingreject/!include?,reject/!in?orselect/!exclude?combinations. ([@lovro-bikic][])Lint/UnescapedBracketInRegexpcop failure with invalid regular expression. ([@viralpraxis][])Style::AccessModifierDeclarationscop failure in case ofifnode withoutelse. ([@viralpraxis][])Style/RedundantArgumentcop failure while inspecting string literal with invalid encoding. ([@viralpraxis][])Style/RedundantParenthesescop failure in case of splattedcasenode without condition. ([@viralpraxis][])Style/RedundantSelfcop failure withkwnilargargument node. ([@viralpraxis][])Style/StringConcatenationcop failure when there are mixed implicit and explicit concatenations. ([@viralpraxis][])Lint/UnescapedBracketInRegexpwhen using regexp_parser 2.9.2 and earlier. ([@dvandersluis][])Style/BlockDelimitersto not change braces when they are required for syntax. ([@dvandersluis][])Style/LambdaCallto be aware of safe navigation. ([@dvandersluis][])v1.69.0Compare Source
New features
Lint/HashNewWithKeywordArgumentsAsDefaultcop. ([@koic][])Lint/NumericOperationWithConstantResultcop. ([@zopolis4][])Style/DigChaincop. ([@dvandersluis][])Style/FileNullcop. ([@dvandersluis][])Style/FileTouchcop. ([@lovro-bikic][])Lint/UselessDefinedto detect cases such asdefined?('Foo')whendefined?(Foo)was intended. ([@earlopain][])Bug fixes
Layout/EmptyLineAfterGuardClausewhen using a guard clause outside oneliner block. ([@koic][])Style/RedundantLineContinuationwhen there is a line continuation at the end of Ruby code followed by__END__data. ([@koic][])Style/CommentedKeyword. ([@dak2][])Style/IfWithSemicolonwhen usingreturnwith value inifwith a semicolon is used. ([@koic][])Style/IfWithSemicolonwhen the then body contains an arithmetic operator method call with an argument. ([@koic][])Style/RedundantConditionskip autocorrection when a branch has a comment. ([@koic][])Style/BitwisePredicatewhen having regular method. ([@d4be4st][])Lint/FloatComparisonagainst nil. ([@lovro-bikic][])Lint/InterpolationCheckwhen using invalid syntax in interpolation. ([@koic][])Lint/SafeNavigationConsistencywhen using unsafe navigation with both&&and||. ([@koic][])Naming/MemoizedInstanceVariableNamefor assignment methods`. ([@earlopain][])Naming/MemoizedInstanceVariableNamewhen usinginitialize_clone,initialize_copy, orinitialize_dup. ([@koic][])Style/SafeNavigationwhen using a method chain that exceeds theMaxChainLengthvalue and includes safe navigation operator. ([@koic][])Style/AccessModifierDeclarationsfor multiple inline symbols. ([@dvandersluis][])Lint/Voidif an operator is called in a void context using a dot. ([@dvandersluis][])Lint/DeprecatedOpenSSLConstantfalse positive when the argument is a safe navigation method call. ([@dvandersluis][])Style/AccessModifierDeclarationsto register (as positive or negative, depending onAllowModifiersOnSymbolsvalue) access modifiers with multiple symbols. ([@dvandersluis][])Lint/RedundantSplatExpansionwhen percent literal array is used in a safe navigation method call. ([@lovro-bikic][])Style/NestedTernaryOperatorwhen ternary operators are nested and the inner condition is parenthesized. ([@koic][])Style/OneLineConditionalwhen the else branch of a ternary operator has multiple expressions. ([@koic][])Style/RedundantRegexpArgumentwhen using escaped double quote character. ([@koic][])Style/IfWithSemicolonwhen using nested if/;/end in if body. ([@koic][])Layout/LeadingCommentSpaceto accept multiline shebangs at the top of the file. ([@dvandersluis][])Style/AccessModifierDeclarationsto handleattr_*methods with multiple parameters. ([@dvandersluis][])Style/SingleLineDoEndBlockto not register an offense if it will introduce a conflictingLayout/RedundantLineBreakoffense. ([@dvandersluis][])Changes
Layout/LineLengthwhenSplitStringsis set totrue. ([@dvandersluis][])Style/ArrayIntersectaware ofnone?. ([@earlopain][])Lint/ItWithoutArgumentsInBlockto not register offenses in Ruby 3.4. ([@dvandersluis][])Lint/RedundantSafeNavigationto register an offense when the receiver isself. ([@dvandersluis][])Lint/UnusedMethodArgumentto allow the class names forIgnoreNotImplementedMethodsto be configured. ([@dvandersluis][])Style/AccessModifierDeclarationsto accept modifier with splatted method call. ([@dvandersluis][])v1.68.0Compare Source
New features
Style/BitwisePredicatecop. ([@koic][])Style/CombinableDefinedcop. ([@dvandersluis][])Style/AmbiguousEndlessMethodDefinitioncop. ([@dvandersluis][])Lint/UnescapedBracketInRegexpcop. ([@dvandersluis][])AllowSteepAnnotationconfig option toLayout/LeadingCommentSpace. ([@tk0miya][])IgnoreDuplicateElseBranchoption toLint/DuplicateBranch. ([@fatkodima][])Style/SafeNavigationChainLengthcop. ([@fatkodima][])Style/KeywordArgumentsMergingcop. ([@fatkodima][])Bug fixes
Style/RedundantLineContinuationwhen there is a line continuation at the EOF. ([@koic][])Naming/BlockForwardingwithStyle/ExplicitBlockArgument. ([@koic][])Style/BlockDelimitersautocorrection does not move other code between the block and comment. ([@dvandersluis][])Lint/UselessAssignmentcop when there is a useless assignment followed by a block. ([@pCosta99][])Style/MapIntoArraywhen using non-splatted arguments. ([@vlad-pisanov][])Layout/SpaceBeforeBracketswhen there is a dot before[]=. ([@earlopain][])Lint/SafeNavigationConsistencywhen using safe navigation on the LHS with operator method on the RHS of&&. ([@koic][])Style/GuardClausewhen using a local variable assigned in a conditional expression in a branch. ([@koic][])Style/RedundantLineContinuationwhen required line continuations for&&is used with an assignment after a line break. ([@koic][])Style/RedundantParentheseswhen parentheses are used around method chain withdo...endblock in keyword argument. ([@koic][])Lint/SafeNavigationChainwhen a safe navigation operator is used with a method call as the RHS operand of&&for the same receiver. ([@koic][])--disable-uncorrectableto not insert a comment inside a string continuation. ([@dvandersluis][])Lint/UselessAssignmenta multiple assignment orforcontains an inner assignment. ([@dvandersluis][])Style/BlockDelimiterswhenEnforcedStyle: semanticis set and used withLayout/SpaceInsideBlockBraces. ([@koic][])Style/RedundantInterpolationUnfreezeandStyle/RedundantFreezewhen strings contain interpolated global, instance, and class variables. ([@vlad-pisanov][])Layout/LineLengthfrom breaking up a method with arguments chained onto a heredoc delimiter. ([@dvandersluis][])--display-only-correctableand--display-only-safe-correctablewhen no offenses are displayed. ([@dvandersluis][])Style/MultipleComparisonwhenComparisonsThresholdexceeds 2. ([@fatkodima][],[@vlad-pisanov][])Lint/NonAtomicFileOperationwhen using a postfixunlessfor file existence checks before creating a file, in cases withDir.mkdir. ([@kotaro0522][])PercentLiteralCorrectorto be able to write pairs of delimiters without excessive escaping. ([@dvandersluis][])Style/SafeNavigationto not autocorrect if the RHS of anandnode is anornode. ([@dvandersluis][])Style/TernaryParentheseswith asendnode condition, ensure its arguments are parenthesized. ([@dvandersluis][])Changes
rubocop -V, show the analysis Ruby version of the current directory. ([@earlopain][])Configuration
📅 Schedule: Branch creation - "* 0-3 * * 1" in timezone Europe/Oslo, 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.