rubocop/rubocop (rubocop)
### [`v1.60.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1600-2024-01-15)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.59.0...v1.60.0)
##### Bug fixes
- [#12603](https://togithub.com/rubocop/rubocop/issues/12603): Fix an infinite loop error for `Style/MultilineTernaryOperator` when using a method call as a ternary operator condition with a line break between receiver and method. (\[[@koic](https://togithub.com/koic)]\[])
- [#12549](https://togithub.com/rubocop/rubocop/issues/12549): Fix a false positive for `Style/RedundantLineContinuation` when line continuations for multiline leading dot method chain with a blank line. (\[[@koic](https://togithub.com/koic)]\[])
- [#12610](https://togithub.com/rubocop/rubocop/pull/12610): Accept parentheses in argument calls with blocks for `Style/MethodCallWithArgsParentheses` `omit_parentheses` style. (\[[@gsamokovarov](https://togithub.com/gsamokovarov)]\[])
- [#12580](https://togithub.com/rubocop/rubocop/pull/12580): Fix an infinite loop error for `Layout/EndAlignment` when misaligned in singleton class assignments with `EnforcedStyleAlignWith: variable`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12548](https://togithub.com/rubocop/rubocop/issues/12548): Fix an infinite loop error for `Layout/FirstArgumentIndentation` when specifying `EnforcedStyle: with_fixed_indentation` of `Layout/ArrayAlignment`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12236](https://togithub.com/rubocop/rubocop/issues/12236): Fix an error for `Lint/ShadowedArgument` when self assigning to a block argument in `for`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12569](https://togithub.com/rubocop/rubocop/issues/12569): Fix an error for `Style/IdenticalConditionalBranches` when using `if`...`else` with identical leading lines that assign to `self.foo`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12437](https://togithub.com/rubocop/rubocop/issues/12437): Fix an infinite loop error for `EnforcedStyle: omit_parentheses` of `Style/MethodCallWithArgsParentheses` with `Style/SuperWithArgsParentheses`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12558](https://togithub.com/rubocop/rubocop/issues/12558): Fix an incorrect autocorrect for `Style/MapToHash` when using `map.to_h` without receiver. (\[[@koic](https://togithub.com/koic)]\[])
- [#12179](https://togithub.com/rubocop/rubocop/issues/12179): Let `--auto-gen-config` generate `Exclude` when `Max` is overridden. (\[[@jonas054](https://togithub.com/jonas054)]\[])
- [#12574](https://togithub.com/rubocop/rubocop/issues/12574): Fix bug for unrecognized style in --auto-gen-config. (\[[@jonas054](https://togithub.com/jonas054)]\[])
- [#12542](https://togithub.com/rubocop/rubocop/issues/12542): Fix false positive for `Lint/MixedRegexpCaptureTypes` when using look-ahead matcher. (\[[@marocchino](https://togithub.com/marocchino)]\[])
- [#12607](https://togithub.com/rubocop/rubocop/pull/12607): Fix a false positive for `Style/RedundantParentheses` when regexp literal attempts to match against a parenthesized condition. (\[[@koic](https://togithub.com/koic)]\[])
- [#12539](https://togithub.com/rubocop/rubocop/pull/12539): Fix false positives for `Lint/LiteralAssignmentInCondition` when a collection literal contains non-literal elements. (\[[@koic](https://togithub.com/koic)]\[])
- [#12571](https://togithub.com/rubocop/rubocop/issues/12571): Fix false positives for `Naming/BlockForwarding` when using explicit block forwarding in block method. (\[[@koic](https://togithub.com/koic)]\[])
- [#12537](https://togithub.com/rubocop/rubocop/issues/12537): Fix false positives for `Style/RedundantParentheses` when `AllowInMultilineConditions: true` of `Style/ParenthesesAroundCondition`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12578](https://togithub.com/rubocop/rubocop/pull/12578): Fix false positives for `Style/ArgumentsForwarding` when rest arguments forwarding to a method in block. (\[[@koic](https://togithub.com/koic)]\[])
- [#12540](https://togithub.com/rubocop/rubocop/issues/12540): Fix false positives for `Style/HashEachMethods` when rest block argument of `Enumerable#each` method is used. (\[[@koic](https://togithub.com/koic)]\[])
- [#12529](https://togithub.com/rubocop/rubocop/issues/12529): Fix false positives for `Style/ParenthesesAroundCondition`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12556](https://togithub.com/rubocop/rubocop/issues/12556): Fix false positives for `Style/RedundantParentheses` when parentheses are used around a semantic operator in expressions within assignments. (\[[@koic](https://togithub.com/koic)]\[])
- [#12541](https://togithub.com/rubocop/rubocop/pull/12541): Fix false negative in `Style/ArgumentsForwarding` when a block is forwarded but other args aren't. (\[[@dvandersluis](https://togithub.com/dvandersluis)]\[])
- [#12581](https://togithub.com/rubocop/rubocop/pull/12581): Handle trailing line continuation in `Layout/LineContinuationLeadingSpace`. (\[[@eugeneius](https://togithub.com/eugeneius)]\[])
- [#12601](https://togithub.com/rubocop/rubocop/issues/12601): Make `Style/EachForSimpleLoop` accept block with no parameters. (\[[@koic](https://togithub.com/koic)]\[])
##### Changes
- [#12535](https://togithub.com/rubocop/rubocop/pull/12535): Allow --autocorrect with --display-only-fail-level-offenses. (\[[@naveg](https://togithub.com/naveg)]\[])
- [#12572](https://togithub.com/rubocop/rubocop/pull/12572): Follow a Ruby 3.3 warning for `Security/Open` when `open` with a literal string starting with a pipe. (\[[@koic](https://togithub.com/koic)]\[])
- [#12453](https://togithub.com/rubocop/rubocop/issues/12453): Make `Style/RedundantEach` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[])
- [#12233](https://togithub.com/rubocop/rubocop/issues/12233): Make `Style/SlicingWithRange` aware of redundant and beginless range. (\[[@koic](https://togithub.com/koic)]\[])
- [#12388](https://togithub.com/rubocop/rubocop/pull/12388): Reject additional 'expanded' `EnforcedStyle` options when `--no-auto-gen-enforced-style` is given. (\[[@kpost](https://togithub.com/kpost)]\[])
- [#12593](https://togithub.com/rubocop/rubocop/pull/12593): Require Parser 3.3.0.2 or higher. (\[[@koic](https://togithub.com/koic)]\[])
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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
'1.59.0'
->'1.60.0'
Release Notes
rubocop/rubocop (rubocop)
### [`v1.60.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1600-2024-01-15) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.59.0...v1.60.0) ##### Bug fixes - [#12603](https://togithub.com/rubocop/rubocop/issues/12603): Fix an infinite loop error for `Style/MultilineTernaryOperator` when using a method call as a ternary operator condition with a line break between receiver and method. (\[[@koic](https://togithub.com/koic)]\[]) - [#12549](https://togithub.com/rubocop/rubocop/issues/12549): Fix a false positive for `Style/RedundantLineContinuation` when line continuations for multiline leading dot method chain with a blank line. (\[[@koic](https://togithub.com/koic)]\[]) - [#12610](https://togithub.com/rubocop/rubocop/pull/12610): Accept parentheses in argument calls with blocks for `Style/MethodCallWithArgsParentheses` `omit_parentheses` style. (\[[@gsamokovarov](https://togithub.com/gsamokovarov)]\[]) - [#12580](https://togithub.com/rubocop/rubocop/pull/12580): Fix an infinite loop error for `Layout/EndAlignment` when misaligned in singleton class assignments with `EnforcedStyleAlignWith: variable`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12548](https://togithub.com/rubocop/rubocop/issues/12548): Fix an infinite loop error for `Layout/FirstArgumentIndentation` when specifying `EnforcedStyle: with_fixed_indentation` of `Layout/ArrayAlignment`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12236](https://togithub.com/rubocop/rubocop/issues/12236): Fix an error for `Lint/ShadowedArgument` when self assigning to a block argument in `for`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12569](https://togithub.com/rubocop/rubocop/issues/12569): Fix an error for `Style/IdenticalConditionalBranches` when using `if`...`else` with identical leading lines that assign to `self.foo`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12437](https://togithub.com/rubocop/rubocop/issues/12437): Fix an infinite loop error for `EnforcedStyle: omit_parentheses` of `Style/MethodCallWithArgsParentheses` with `Style/SuperWithArgsParentheses`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12558](https://togithub.com/rubocop/rubocop/issues/12558): Fix an incorrect autocorrect for `Style/MapToHash` when using `map.to_h` without receiver. (\[[@koic](https://togithub.com/koic)]\[]) - [#12179](https://togithub.com/rubocop/rubocop/issues/12179): Let `--auto-gen-config` generate `Exclude` when `Max` is overridden. (\[[@jonas054](https://togithub.com/jonas054)]\[]) - [#12574](https://togithub.com/rubocop/rubocop/issues/12574): Fix bug for unrecognized style in --auto-gen-config. (\[[@jonas054](https://togithub.com/jonas054)]\[]) - [#12542](https://togithub.com/rubocop/rubocop/issues/12542): Fix false positive for `Lint/MixedRegexpCaptureTypes` when using look-ahead matcher. (\[[@marocchino](https://togithub.com/marocchino)]\[]) - [#12607](https://togithub.com/rubocop/rubocop/pull/12607): Fix a false positive for `Style/RedundantParentheses` when regexp literal attempts to match against a parenthesized condition. (\[[@koic](https://togithub.com/koic)]\[]) - [#12539](https://togithub.com/rubocop/rubocop/pull/12539): Fix false positives for `Lint/LiteralAssignmentInCondition` when a collection literal contains non-literal elements. (\[[@koic](https://togithub.com/koic)]\[]) - [#12571](https://togithub.com/rubocop/rubocop/issues/12571): Fix false positives for `Naming/BlockForwarding` when using explicit block forwarding in block method. (\[[@koic](https://togithub.com/koic)]\[]) - [#12537](https://togithub.com/rubocop/rubocop/issues/12537): Fix false positives for `Style/RedundantParentheses` when `AllowInMultilineConditions: true` of `Style/ParenthesesAroundCondition`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12578](https://togithub.com/rubocop/rubocop/pull/12578): Fix false positives for `Style/ArgumentsForwarding` when rest arguments forwarding to a method in block. (\[[@koic](https://togithub.com/koic)]\[]) - [#12540](https://togithub.com/rubocop/rubocop/issues/12540): Fix false positives for `Style/HashEachMethods` when rest block argument of `Enumerable#each` method is used. (\[[@koic](https://togithub.com/koic)]\[]) - [#12529](https://togithub.com/rubocop/rubocop/issues/12529): Fix false positives for `Style/ParenthesesAroundCondition`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12556](https://togithub.com/rubocop/rubocop/issues/12556): Fix false positives for `Style/RedundantParentheses` when parentheses are used around a semantic operator in expressions within assignments. (\[[@koic](https://togithub.com/koic)]\[]) - [#12541](https://togithub.com/rubocop/rubocop/pull/12541): Fix false negative in `Style/ArgumentsForwarding` when a block is forwarded but other args aren't. (\[[@dvandersluis](https://togithub.com/dvandersluis)]\[]) - [#12581](https://togithub.com/rubocop/rubocop/pull/12581): Handle trailing line continuation in `Layout/LineContinuationLeadingSpace`. (\[[@eugeneius](https://togithub.com/eugeneius)]\[]) - [#12601](https://togithub.com/rubocop/rubocop/issues/12601): Make `Style/EachForSimpleLoop` accept block with no parameters. (\[[@koic](https://togithub.com/koic)]\[]) ##### Changes - [#12535](https://togithub.com/rubocop/rubocop/pull/12535): Allow --autocorrect with --display-only-fail-level-offenses. (\[[@naveg](https://togithub.com/naveg)]\[]) - [#12572](https://togithub.com/rubocop/rubocop/pull/12572): Follow a Ruby 3.3 warning for `Security/Open` when `open` with a literal string starting with a pipe. (\[[@koic](https://togithub.com/koic)]\[]) - [#12453](https://togithub.com/rubocop/rubocop/issues/12453): Make `Style/RedundantEach` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[]) - [#12233](https://togithub.com/rubocop/rubocop/issues/12233): Make `Style/SlicingWithRange` aware of redundant and beginless range. (\[[@koic](https://togithub.com/koic)]\[]) - [#12388](https://togithub.com/rubocop/rubocop/pull/12388): Reject additional 'expanded' `EnforcedStyle` options when `--no-auto-gen-enforced-style` is given. (\[[@kpost](https://togithub.com/kpost)]\[]) - [#12593](https://togithub.com/rubocop/rubocop/pull/12593): Require Parser 3.3.0.2 or higher. (\[[@koic](https://togithub.com/koic)]\[])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 has been generated by Mend Renovate. View repository job log here.