Bumps rubocop from 1.76.0 to 1.79.1.
Release notes
Sourced from rubocop's releases.
RuboCop v1.79.1
Bug fixes
- #14390: Fix wrong autocorrect for
Style/ArgumentsForwarding when the method arguments contain *, ** or &, and the method call contains self as the first argument. (@earlopain)
- #14399: Fix false positives for
Layout/EmptyLinesAfterModuleInclusion when prepend is used with block methods. (@koic)
- #14396: Fix a false positive for
Style/RedundantParentheses when parentheses are used around a one-line rescue expression inside a ternary operator. (@koic)
- #14383: Fix false positives for
Lint/UselessAssignment when duplicate assignments in if branch inside a loop. (@koic)
- #14394: Fix false positive for
Lint/UselessAssignment with retry in rescue branch. (@earlopain)
- #14386: Fix false positives for
Style/RedundantParentheses when parentheses are used around a one-line rescue expression inside array or hash literals. (@koic)
- #14395: Fix LSP handling of URI-encoded paths with spaces. (
@hakanensari)
Changes
- #14403: Enhance
Naming/MethodName cop to detect offenses within alias and alias_method calls. (@viralpraxis)
- #14389: Add support for
|| to Lint/LiteralAsCondition. (@zopolis4)
RuboCop v1.79.0
New features
Bug fixes
- #14373: Fix an error for
Style/ParallelAssignment when a lambda with parallel assignment is used on the RHS. (@koic)
- #14370: Fix comment duplication bug in
Style/AccessorGrouping separated autocorrect. ([@r7kamura][])
- #14377: Fix a false positive for
Lint/UselessAssignment when the assignment is inside a loop body. ([@5hun-s][])
- #14355: Fix a false negative for
Style/RedundantParentheses when using parentheses around a rescue expression on a one-line. (@koic)
- #14354: Fix incorrect autocorrect for
Style/AccessModifierDeclarations when using a grouped access modifier declaration. ([@girasquid][])
- #14367: Fix an incorrect autocorrect for
Style/SingleLineMethods when defining a single-line singleton method. (@koic)
- #14344: Fix incorrect autocorrect for
Style/SingleLineMethods when a single-line method definition contains a modifier. (@koic)
- #14350: Fix
Naming/MethodName cop false positives with define_method and operator names. (@viralpraxis)
- #14333: Fix
Naming/PredicateMethod ignoring the implicit nil from missing else branches. (@earlopain)
- #14356: Fix
Style/ItBlockParameter cop error on always style and missing block body. (@viralpraxis)
- #14362: Update
Lint/RequireRangeParentheses to not register false positives when range elements span multiple lines. ([@dvandersluis][])
- #14309: Update
Style/SoleNestedConditional to properly correct assignments within and. ([@dvandersluis][])
Changes
- #14358: Add
tsort gem to runtime dependency for Ruby 3.5-dev. (@koic)
- #14322: Expand the scope of
Style/ItAssignment to consider all local variable and method parameter names. ([@dvandersluis][])
- #14378: Change
Layout/SpaceAroundKeyword to offend for missing whitespace between return and opening parenthesis. ([@lovro-bikic][])
- #14360: Make
Layout/SpaceAroundOperators aware of alternative and as pattern matchings. (@koic)
- #14375: Make
Lint/RedundantSafeNavigation aware of builtin convert methods to_s, to_i, to_f, to_a, and to_h. (@koic)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.79.1 (2025年07月31日)
Bug fixes
- #14390: Fix wrong autocorrect for
Style/ArgumentsForwarding when the method arguments contain *, ** or &, and the method call contains self as the first argument. ([@earlopain][])
- #14399: Fix false positives for
Layout/EmptyLinesAfterModuleInclusion when prepend is used with block methods. ([@koic][])
- #14396: Fix a false positive for
Style/RedundantParentheses when parentheses are used around a one-line rescue expression inside a ternary operator. ([@koic][])
- #14383: Fix false positives for
Lint/UselessAssignment when duplicate assignments in if branch inside a loop. ([@koic][])
- #14394: Fix false positive for
Lint/UselessAssignment with retry in rescue branch. ([@earlopain][])
- #14386: Fix false positives for
Style/RedundantParentheses when parentheses are used around a one-line rescue expression inside array or hash literals. ([@koic][])
- #14395: Fix LSP handling of URI-encoded paths with spaces. ([
@hakanensari][])
Changes
- #14403: Enhance
Naming/MethodName cop to detect offenses within alias and alias_method calls. ([@viralpraxis][])
- #14389: Add support for
|| to Lint/LiteralAsCondition. ([@zopolis4][])
1.79.0 (2025年07月24日)
New features
Bug fixes
- #14373: Fix an error for
Style/ParallelAssignment when a lambda with parallel assignment is used on the RHS. ([@koic][])
- #14370: Fix comment duplication bug in
Style/AccessorGrouping separated autocorrect. ([@r7kamura][])
- #14377: Fix a false positive for
Lint/UselessAssignment when the assignment is inside a loop body. ([@5hun-s][])
- #14355: Fix a false negative for
Style/RedundantParentheses when using parentheses around a rescue expression on a one-line. ([@koic][])
- #14354: Fix incorrect autocorrect for
Style/AccessModifierDeclarations when using a grouped access modifier declaration. ([@girasquid][])
- #14367: Fix an incorrect autocorrect for
Style/SingleLineMethods when defining a single-line singleton method. ([@koic][])
- #14344: Fix incorrect autocorrect for
Style/SingleLineMethods when a single-line method definition contains a modifier. ([@koic][])
- #14350: Fix
Naming/MethodName cop false positives with define_method and operator names. ([@viralpraxis][])
- #14333: Fix
Naming/PredicateMethod ignoring the implicit nil from missing else branches. ([@earlopain][])
- #14356: Fix
Style/ItBlockParameter cop error on always style and missing block body. ([@viralpraxis][])
- #14362: Update
Lint/RequireRangeParentheses to not register false positives when range elements span multiple lines. ([@dvandersluis][])
- #14309: Update
Style/SoleNestedConditional to properly correct assignments within and. ([@dvandersluis][])
Changes
- #14358: Add
tsort gem to runtime dependency for Ruby 3.5-dev. ([@koic][])
- #14322: Expand the scope of
Style/ItAssignment to consider all local variable and method parameter names. ([@dvandersluis][])
- #14378: Change
Layout/SpaceAroundKeyword to offend for missing whitespace between return and opening parenthesis. ([@lovro-bikic][])
- #14360: Make
Layout/SpaceAroundOperators aware of alternative and as pattern matchings. ([@koic][])
- #14375: Make
Lint/RedundantSafeNavigation aware of builtin convert methods to_s, to_i, to_f, to_a, and to_h. ([@koic][])
- #13835: Add
InferNonNilReceiver config to Lint/RedundantSafeNavigation to check previous code paths if the receiver is non-nil. ([@fatkodima][])
- #14381: Offend
array1.any? { |elem| array2.member?(elem) } and array1.none? { |elem| array2.member?(elem) } in Style/ArrayIntersect. ([@lovro-bikic][])
1.78.0 (2025年07月08日)
... (truncated)
Commits
5ecd375 Cut 1.79.1
0b19d92 Tweak a couple of changelog entries
300bc86 Update Changelog
8e6be28 Add support for or nodes to Lint/LiteralAsCondition
6adbb27 Merge pull request #14405 from viralpraxis/fix-naming-method-name-cop-spec-de...
9682294 Fix Naming/MethodName cop spec descriptions
fc0e660 Merge pull request #14403 from viralpraxis/enhance-naming-method-name-to-hand...
19f9c0b Enhance Naming/MethodName cop to detect offenses within alias and `alias_...
9d262b1 Merge pull request #14400 from koic/fix_false_positive_for_layout_empty_lines...
13c5050 [Fix #14399] Fix false positives for Layout/EmptyLinesAfterModuleInclusion
- Additional commits viewable in compare view
Dependabot compatibility score
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 rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps rubocop from 1.76.0 to 1.79.1.
Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
5ecd375Cut 1.79.10b19d92Tweak a couple of changelog entries300bc86Update Changelog8e6be28Add support for or nodes to Lint/LiteralAsCondition6adbb27Merge pull request #14405 from viralpraxis/fix-naming-method-name-cop-spec-de...9682294FixNaming/MethodNamecop spec descriptionsfc0e660Merge pull request #14403 from viralpraxis/enhance-naming-method-name-to-hand...19f9c0bEnhanceNaming/MethodNamecop to detect offenses withinaliasand `alias_...9d262b1Merge pull request #14400 from koic/fix_false_positive_for_layout_empty_lines...13c5050[Fix #14399] Fix false positives forLayout/EmptyLinesAfterModuleInclusionDependabot compatibility score
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)