ruby_memcheck
ruby_memcheck copied to clipboard
Bump rubocop from 1.81.7 to 1.82.0
Bumps rubocop from 1.81.7 to 1.82.0.
Release notes
Sourced from rubocop's releases.
RuboCop v1.82.0
New features
- #14655: Add
AllowRBSInlineAnnotationoption toLayout/LineLength. (@koic)- #14569: Add
IncludedMacroPatternsconfiguration option toStyle/MethodCallWithArgsParenthesesfor pattern-based macro method enforcement. (@mmenanno)- #14670: Add new cop
Style/ModuleMemberExistenceCheck. (@lovro-bikic)- #14644: Support
TargetRubyVersion 4.0(experimental). (@koic)Bug fixes
- #14649: Fix an error for
Lint/LiteralAsConditionwhen there are literals in multiple branches. (@viralpraxis)- #14678: Fix an error when running deprecated
rake rubocop:auto_correcttask. (@koic)- #14650: Fix wrong autocorrect for
Lint/RedundantSplatExpansionwhen splatting a single literal. (@earlopain)- #14703: Fix false negatives for
Layout/RescueEnsureAlignmentwhen using self class definition. (@koic)- #14706: Fix false negatives for
Lint/NoReturnInBeginEndBlockswhen assigning instance variable, class variable, global variable, or constant. (@koic)- #14715: Fix false positives for
Layout/EmptyLineAfterGuardClausewhen a guard clause follows a multiline heredoc in a parenthesized method call. (@koic)- #14667: Fix false positives for
Layout/EndAlignmentwhen a conditional assignment is used on the same line and theendwith a safe navigation method call is aligned. (@koic)- #14688: Fix false positives for
Layout/EndAlignmentwhen a conditional assignment is used on the same line and theendwith a numbered block oritblock method call is aligned. (@koic)- #14699: Fix false positives for
Lint/RedundantSafeNavigationwhen the receiver is used outside the singleton method definition scope. (@koic)- #14663: Fix false positives for
Style/EndlessMethodwhen multiline or xstring heredoc is used in method body. (@koic)- #10173: Fix false positives for
Style/TrailingCommaInArgumentswhenEnforcedStyleForMultilineis set toconsistent_commaand a multiline braced hash argument appears after another argument. (@koic)- #14680: Handle all
OptionParsererrors when runningrubocopwith input that causes an error. (@dvandersluis)- #14658: Fix incorrect behavior when
Layout/LineLengthis disabled. (@koic)- #14704: Fix incorrect Position character value in LSP. (
@tmtm)- #14619: Store remote configuration caches in cache root. ([
@Jack12816][])- #14476: Fix
Style/ClassAndModuleChildrento skip compact style definitions inside another class or module whenEnforcedStyle: nested. ([@rscq][])- #14281: Update
Layout/EndAlignmentwithEnforcedStyleAlignWith: variableto handle conditionals insidebeginnodes properly. (@dvandersluis)Changes
- #14662: Add autocorrection for
Lint/UselessOr. ([@r7kamura][])- #14668: Exclude
Severityfrom configuration parameters. ([@r7kamura][])- #14684: Make
Style/CaseEqualityallow regexp case equality where the receiver is a regexp literal. (@koic)- #14645: Change
Lint/CircularArgumentReferenceto detect offenses within long assignment chains. (@viralpraxis)- #14642: Make
Gemspec/RubyVersionGlobalsUsageaware ofRuby::VERSION. (@koic)- #14695: Make
Layout/EmptyLineAfterMagicCommentaware of# rbs_inlinemagic comment. (@koic)- #10147: Make
Lint/ElseLayoutallow a single-lineelsebody inthensingle-line conditional. (@koic)- #14661: Make
Lint/RedundantRequireStatementaware ofpathnamewhen analyzing Ruby 4.0. (@koic)- #14698: Make
Lint/UnreachableCodeaware of singleton method redefinition. (@koic)- #14677: Make
Style/RedundantArgumentaware ofto_i. (@koic)- #14660: Rename
IgnoreCopDirectivestoAllowCopDirectivesinLayout/LineLength. (@koic)- #14492: Revert #14492, which added support for LSP positionEncoding 'utf-8' and 'utf-32' due to critical performance regression reports. (
@koic)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.82.0 (2025-12-17)
New features
- #14655: Add
AllowRBSInlineAnnotationoption toLayout/LineLength. ([@koic][])- #14569: Add
IncludedMacroPatternsconfiguration option toStyle/MethodCallWithArgsParenthesesfor pattern-based macro method enforcement. ([@mmenanno][])- #14670: Add new cop
Style/ModuleMemberExistenceCheck. ([@lovro-bikic][])- #14644: Support
TargetRubyVersion 4.0(experimental). ([@koic][])Bug fixes
- #14649: Fix an error for
Lint/LiteralAsConditionwhen there are literals in multiple branches. ([@viralpraxis][])- #14678: Fix an error when running deprecated
rake rubocop:auto_correcttask. ([@koic][])- #14650: Fix wrong autocorrect for
Lint/RedundantSplatExpansionwhen splatting a single literal. ([@earlopain][])- #14703: Fix false negatives for
Layout/RescueEnsureAlignmentwhen using self class definition. ([@koic][])- #14706: Fix false negatives for
Lint/NoReturnInBeginEndBlockswhen assigning instance variable, class variable, global variable, or constant. ([@koic][])- #14715: Fix false positives for
Layout/EmptyLineAfterGuardClausewhen a guard clause follows a multiline heredoc in a parenthesized method call. ([@koic][])- #14667: Fix false positives for
Layout/EndAlignmentwhen a conditional assignment is used on the same line and theendwith a safe navigation method call is aligned. ([@koic][])- #14688: Fix false positives for
Layout/EndAlignmentwhen a conditional assignment is used on the same line and theendwith a numbered block oritblock method call is aligned. ([@koic][])- #14699: Fix false positives for
Lint/RedundantSafeNavigationwhen the receiver is used outside the singleton method definition scope. ([@koic][])- #14663: Fix false positives for
Style/EndlessMethodwhen multiline or xstring heredoc is used in method body. ([@koic][])- #10173: Fix false positives for
Style/TrailingCommaInArgumentswhenEnforcedStyleForMultilineis set toconsistent_commaand a multiline braced hash argument appears after another argument. ([@koic][])- #14680: Handle all
OptionParsererrors when runningrubocopwith input that causes an error. ([@dvandersluis][])- #14658: Fix incorrect behavior when
Layout/LineLengthis disabled. ([@koic][])- #14704: Fix incorrect Position character value in LSP. ([
@tmtm][])- #14619: Store remote configuration caches in cache root. ([
@Jack12816][])- #14476: Fix
Style/ClassAndModuleChildrento skip compact style definitions inside another class or module whenEnforcedStyle: nested. ([@rscq][])- #14281: Update
Layout/EndAlignmentwithEnforcedStyleAlignWith: variableto handle conditionals insidebeginnodes properly. ([@dvandersluis][])Changes
- #14662: Add autocorrection for
Lint/UselessOr. ([@r7kamura][])- #14668: Exclude
Severityfrom configuration parameters. ([@r7kamura][])- #14684: Make
Style/CaseEqualityallow regexp case equality where the receiver is a regexp literal. ([@koic][])- #14645: Change
Lint/CircularArgumentReferenceto detect offenses within long assignment chains. ([@viralpraxis][])- #14642: Make
Gemspec/RubyVersionGlobalsUsageaware ofRuby::VERSION. ([@koic][])- #14695: Make
Layout/EmptyLineAfterMagicCommentaware of# rbs_inlinemagic comment. ([@koic][])- #10147: Make
Lint/ElseLayoutallow a single-lineelsebody inthensingle-line conditional. ([@koic][])- #14661: Make
Lint/RedundantRequireStatementaware ofpathnamewhen analyzing Ruby 4.0. ([@koic][])- #14698: Make
Lint/UnreachableCodeaware of singleton method redefinition. ([@koic][])- #14677: Make
Style/RedundantArgumentaware ofto_i. ([@koic][])- #14660: Rename
IgnoreCopDirectivestoAllowCopDirectivesinLayout/LineLength. ([@koic][])- #14492: Revert #14492, which added support for LSP positionEncoding 'utf-8' and 'utf-32' due to critical performance regression reports. ([
@koic][])
Commits
384aa2bCut 1.82f8a84faUpdate Changelogf8b40bc[Fix #13854 (Old issue)] add push/pop logic for handle local enable/disable70f76b1Add new cop Style/ModuleMemberExistenceCheckacbdbdaFix false positives forLayout/EmptyLineAfterGuardClause9cc142eFix incorrect Position character value in LSP5e07aa1Merge pull request #14712 from moznion/fix_escaped_single_quote8f5b029[Fix #14711] Fix broken auto-correction inStyle/RedundantRegexpArgumentrulebcfdf5fAdd some specs forStyle/RedundantCondition2c9071dMerge pull request #14707 from koic/fix_false_negatives_for_lint_no_return_in...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)