rubocop/rubocop (rubocop)
### [`v1.57.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1571-2023-10-13)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.57.0...v1.57.1)
##### Bug fixes
- [#12271](https://togithub.com/rubocop/rubocop/issues/12271): Fix a false positive for `Lint/RedundantSafeNavigation` when using snake case constant receiver. (\[[@koic](https://togithub.com/koic)]\[])
- [#12265](https://togithub.com/rubocop/rubocop/issues/12265): Fix an error for `Layout/MultilineMethodCallIndentation` when usingarithmetic operation with block inside a grouped expression. (\[[@koic](https://togithub.com/koic)]\[])
- [#12177](https://togithub.com/rubocop/rubocop/pull/12177): Fix an incorrect autocorrect for `Style/RedundantException`. (\[[@ydah](https://togithub.com/ydah)]\[])
- [#12261](https://togithub.com/rubocop/rubocop/issues/12261): Fix an infinite loop for `Layout/MultilineMethodCallIndentation` when multiline method chain with a block argument and method chain. (\[[@ydah](https://togithub.com/ydah)]\[])
- [#12263](https://togithub.com/rubocop/rubocop/issues/12263): Fix false positives for `Style/RedundantDoubleSplatHashBraces` when method call for no hash braced double splat receiver. (\[[@koic](https://togithub.com/koic)]\[])
- [#12262](https://togithub.com/rubocop/rubocop/pull/12262): Fix an incorrect autocorrect for `Style/RedundantDoubleSplatHashBraces` when using double splat hash braces with `merge` method call twice. (\[[@koic](https://togithub.com/koic)]\[])
### [`v1.57.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1570-2023-10-11)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.4...v1.57.0)
##### New features
- [#12227](https://togithub.com/rubocop/rubocop/pull/12227): Add new `Style/SingleLineDoEndBlock` cop. (\[[@koic](https://togithub.com/koic)]\[])
- [#12246](https://togithub.com/rubocop/rubocop/pull/12246): Make `Lint/RedundantSafeNavigation` aware of constant receiver. (\[[@koic](https://togithub.com/koic)]\[])
- [#12257](https://togithub.com/rubocop/rubocop/issues/12257): Make `Style/RedundantDoubleSplatHashBraces` aware of `merge` methods. (\[[@koic](https://togithub.com/koic)]\[])
##### Bug fixes
- [#12244](https://togithub.com/rubocop/rubocop/issues/12244): Fix a false negative for `Lint/Debugger` when using debugger method inside block. (\[[@koic](https://togithub.com/koic)]\[])
- [#12231](https://togithub.com/rubocop/rubocop/issues/12231): Fix a false negative for `Metrics/ModuleLength` when defining a singleton class in a module. (\[[@koic](https://togithub.com/koic)]\[])
- [#12249](https://togithub.com/rubocop/rubocop/issues/12249): Fix a false positive `Style/IdenticalConditionalBranches` when `if`..`else` with identical leading lines and assign to condition value. (\[[@koic](https://togithub.com/koic)]\[])
- [#12253](https://togithub.com/rubocop/rubocop/pull/12253): Fix `Lint/LiteralInInterpolation` to accept an empty string literal interpolated in words literal. (\[[@knu](https://togithub.com/knu)]\[])
- [#12198](https://togithub.com/rubocop/rubocop/issues/12198): Fix an error for flip-flop with beginless or endless ranges. (\[[@koic](https://togithub.com/koic)]\[])
- [#12259](https://togithub.com/rubocop/rubocop/issues/12259): Fix an error for `Lint/MixedCaseRange` when using nested character class in regexp. (\[[@koic](https://togithub.com/koic)]\[])
- [#12237](https://togithub.com/rubocop/rubocop/issues/12237): Fix an error for `Style/NestedTernaryOperator` when a ternary operator has a nested ternary operator within an `if`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12228](https://togithub.com/rubocop/rubocop/pull/12228): Fix false negatives for `Style/MultilineBlockChain` when using multiline block chain with safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[])
- [#12247](https://togithub.com/rubocop/rubocop/pull/12247): Fix false negatives for `Style/RedundantParentheses` when using logical or comparison expressions with redundant parentheses. (\[[@koic](https://togithub.com/koic)]\[])
- [#12226](https://togithub.com/rubocop/rubocop/issues/12226): Fix false positives for `Layout/MultilineMethodCallIndentation` when aligning methods in multiline block chain. (\[[@koic](https://togithub.com/koic)]\[])
- [#12076](https://togithub.com/rubocop/rubocop/issues/12076): Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. (\[[@K-S-A](https://togithub.com/K-S-A)]\[])
##### Changes
- [#12235](https://togithub.com/rubocop/rubocop/pull/12235): Enable auto parallel inspection when config file is specified. (\[[@aboutNisblee](https://togithub.com/aboutNisblee)]\[])
- [#12234](https://togithub.com/rubocop/rubocop/pull/12234): Enhance `Style/FormatString`'s autocorrection when using known conversion methods whose return value is not an array. (\[[@koic](https://togithub.com/koic)]\[])
- [#12128](https://togithub.com/rubocop/rubocop/issues/12128): Make `Style/GuardClause` aware of `define_method`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12126](https://togithub.com/rubocop/rubocop/pull/12126): Make `Style/RedundantFilterChain` aware of `select.present?` when `ActiveSupportExtensionsEnabled` config is `true`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12250](https://togithub.com/rubocop/rubocop/pull/12250): Mark `Lint/RedundantRequireStatement` as unsafe autocorrect. (\[[@koic](https://togithub.com/koic)]\[])
- [#12097](https://togithub.com/rubocop/rubocop/issues/12097): Mark unsafe autocorrect for `Style/ClassEqualityComparison`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12210](https://togithub.com/rubocop/rubocop/issues/12210): Mark `Style/RedundantFilterChain` as unsafe autocorrect. (\[[@koic](https://togithub.com/koic)]\[])
### [`v1.56.4`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1564-2023-09-28)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.3...v1.56.4)
##### Bug fixes
- [#12221](https://togithub.com/rubocop/rubocop/issues/12221): Fix a false positive for `Layout/EmptyLineAfterGuardClause` when using `return` before guard condition with heredoc. (\[[@koic](https://togithub.com/koic)]\[])
- [#12213](https://togithub.com/rubocop/rubocop/issues/12213): Fix a false positive for `Lint/OrderedMagicComments` when comment text `# encoding: ISO-8859-1` is embedded within example code as source code comment. (\[[@koic](https://togithub.com/koic)]\[])
- [#12205](https://togithub.com/rubocop/rubocop/issues/12205): Fix an error for `Style/OperatorMethodCall` when using `foo bar./ baz`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12208](https://togithub.com/rubocop/rubocop/issues/12208): Fix an incorrect autocorrect for the `--disable-uncorrectable` command line option when registering an offense is outside a percent array. (\[[@koic](https://togithub.com/koic)]\[])
- [#12203](https://togithub.com/rubocop/rubocop/pull/12203): Fix an incorrect autocorrect for `Lint/SafeNavigationChain` when using safe navigation with comparison operator as an expression of logical operator or comparison operator's operand. (\[[@koic](https://togithub.com/koic)]\[])
- [#12206](https://togithub.com/rubocop/rubocop/pull/12206): Fix an incorrect autocorrect for `Style/OperatorMethodCall` when using `foo./bar`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12202](https://togithub.com/rubocop/rubocop/pull/12202): Fix an incorrect autocorrect for `Style/RedundantConditional` when unless/else with boolean results. (\[[@ydah](https://togithub.com/ydah)]\[])
- [#12199](https://togithub.com/rubocop/rubocop/issues/12199): Fix false negatives for `Layout/MultilineMethodCallIndentation` when using safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[])
##### Changes
- [#12197](https://togithub.com/rubocop/rubocop/pull/12197): Make `Style/CollectionMethods` aware of `collect_concat`. (\[[@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.56.3
->1.57.1
Release Notes
rubocop/rubocop (rubocop)
### [`v1.57.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1571-2023-10-13) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.57.0...v1.57.1) ##### Bug fixes - [#12271](https://togithub.com/rubocop/rubocop/issues/12271): Fix a false positive for `Lint/RedundantSafeNavigation` when using snake case constant receiver. (\[[@koic](https://togithub.com/koic)]\[]) - [#12265](https://togithub.com/rubocop/rubocop/issues/12265): Fix an error for `Layout/MultilineMethodCallIndentation` when usingarithmetic operation with block inside a grouped expression. (\[[@koic](https://togithub.com/koic)]\[]) - [#12177](https://togithub.com/rubocop/rubocop/pull/12177): Fix an incorrect autocorrect for `Style/RedundantException`. (\[[@ydah](https://togithub.com/ydah)]\[]) - [#12261](https://togithub.com/rubocop/rubocop/issues/12261): Fix an infinite loop for `Layout/MultilineMethodCallIndentation` when multiline method chain with a block argument and method chain. (\[[@ydah](https://togithub.com/ydah)]\[]) - [#12263](https://togithub.com/rubocop/rubocop/issues/12263): Fix false positives for `Style/RedundantDoubleSplatHashBraces` when method call for no hash braced double splat receiver. (\[[@koic](https://togithub.com/koic)]\[]) - [#12262](https://togithub.com/rubocop/rubocop/pull/12262): Fix an incorrect autocorrect for `Style/RedundantDoubleSplatHashBraces` when using double splat hash braces with `merge` method call twice. (\[[@koic](https://togithub.com/koic)]\[]) ### [`v1.57.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1570-2023-10-11) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.4...v1.57.0) ##### New features - [#12227](https://togithub.com/rubocop/rubocop/pull/12227): Add new `Style/SingleLineDoEndBlock` cop. (\[[@koic](https://togithub.com/koic)]\[]) - [#12246](https://togithub.com/rubocop/rubocop/pull/12246): Make `Lint/RedundantSafeNavigation` aware of constant receiver. (\[[@koic](https://togithub.com/koic)]\[]) - [#12257](https://togithub.com/rubocop/rubocop/issues/12257): Make `Style/RedundantDoubleSplatHashBraces` aware of `merge` methods. (\[[@koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#12244](https://togithub.com/rubocop/rubocop/issues/12244): Fix a false negative for `Lint/Debugger` when using debugger method inside block. (\[[@koic](https://togithub.com/koic)]\[]) - [#12231](https://togithub.com/rubocop/rubocop/issues/12231): Fix a false negative for `Metrics/ModuleLength` when defining a singleton class in a module. (\[[@koic](https://togithub.com/koic)]\[]) - [#12249](https://togithub.com/rubocop/rubocop/issues/12249): Fix a false positive `Style/IdenticalConditionalBranches` when `if`..`else` with identical leading lines and assign to condition value. (\[[@koic](https://togithub.com/koic)]\[]) - [#12253](https://togithub.com/rubocop/rubocop/pull/12253): Fix `Lint/LiteralInInterpolation` to accept an empty string literal interpolated in words literal. (\[[@knu](https://togithub.com/knu)]\[]) - [#12198](https://togithub.com/rubocop/rubocop/issues/12198): Fix an error for flip-flop with beginless or endless ranges. (\[[@koic](https://togithub.com/koic)]\[]) - [#12259](https://togithub.com/rubocop/rubocop/issues/12259): Fix an error for `Lint/MixedCaseRange` when using nested character class in regexp. (\[[@koic](https://togithub.com/koic)]\[]) - [#12237](https://togithub.com/rubocop/rubocop/issues/12237): Fix an error for `Style/NestedTernaryOperator` when a ternary operator has a nested ternary operator within an `if`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12228](https://togithub.com/rubocop/rubocop/pull/12228): Fix false negatives for `Style/MultilineBlockChain` when using multiline block chain with safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[]) - [#12247](https://togithub.com/rubocop/rubocop/pull/12247): Fix false negatives for `Style/RedundantParentheses` when using logical or comparison expressions with redundant parentheses. (\[[@koic](https://togithub.com/koic)]\[]) - [#12226](https://togithub.com/rubocop/rubocop/issues/12226): Fix false positives for `Layout/MultilineMethodCallIndentation` when aligning methods in multiline block chain. (\[[@koic](https://togithub.com/koic)]\[]) - [#12076](https://togithub.com/rubocop/rubocop/issues/12076): Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. (\[[@K-S-A](https://togithub.com/K-S-A)]\[]) ##### Changes - [#12235](https://togithub.com/rubocop/rubocop/pull/12235): Enable auto parallel inspection when config file is specified. (\[[@aboutNisblee](https://togithub.com/aboutNisblee)]\[]) - [#12234](https://togithub.com/rubocop/rubocop/pull/12234): Enhance `Style/FormatString`'s autocorrection when using known conversion methods whose return value is not an array. (\[[@koic](https://togithub.com/koic)]\[]) - [#12128](https://togithub.com/rubocop/rubocop/issues/12128): Make `Style/GuardClause` aware of `define_method`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12126](https://togithub.com/rubocop/rubocop/pull/12126): Make `Style/RedundantFilterChain` aware of `select.present?` when `ActiveSupportExtensionsEnabled` config is `true`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12250](https://togithub.com/rubocop/rubocop/pull/12250): Mark `Lint/RedundantRequireStatement` as unsafe autocorrect. (\[[@koic](https://togithub.com/koic)]\[]) - [#12097](https://togithub.com/rubocop/rubocop/issues/12097): Mark unsafe autocorrect for `Style/ClassEqualityComparison`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12210](https://togithub.com/rubocop/rubocop/issues/12210): Mark `Style/RedundantFilterChain` as unsafe autocorrect. (\[[@koic](https://togithub.com/koic)]\[]) ### [`v1.56.4`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1564-2023-09-28) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.56.3...v1.56.4) ##### Bug fixes - [#12221](https://togithub.com/rubocop/rubocop/issues/12221): Fix a false positive for `Layout/EmptyLineAfterGuardClause` when using `return` before guard condition with heredoc. (\[[@koic](https://togithub.com/koic)]\[]) - [#12213](https://togithub.com/rubocop/rubocop/issues/12213): Fix a false positive for `Lint/OrderedMagicComments` when comment text `# encoding: ISO-8859-1` is embedded within example code as source code comment. (\[[@koic](https://togithub.com/koic)]\[]) - [#12205](https://togithub.com/rubocop/rubocop/issues/12205): Fix an error for `Style/OperatorMethodCall` when using `foo bar./ baz`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12208](https://togithub.com/rubocop/rubocop/issues/12208): Fix an incorrect autocorrect for the `--disable-uncorrectable` command line option when registering an offense is outside a percent array. (\[[@koic](https://togithub.com/koic)]\[]) - [#12203](https://togithub.com/rubocop/rubocop/pull/12203): Fix an incorrect autocorrect for `Lint/SafeNavigationChain` when using safe navigation with comparison operator as an expression of logical operator or comparison operator's operand. (\[[@koic](https://togithub.com/koic)]\[]) - [#12206](https://togithub.com/rubocop/rubocop/pull/12206): Fix an incorrect autocorrect for `Style/OperatorMethodCall` when using `foo./bar`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12202](https://togithub.com/rubocop/rubocop/pull/12202): Fix an incorrect autocorrect for `Style/RedundantConditional` when unless/else with boolean results. (\[[@ydah](https://togithub.com/ydah)]\[]) - [#12199](https://togithub.com/rubocop/rubocop/issues/12199): Fix false negatives for `Layout/MultilineMethodCallIndentation` when using safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[]) ##### Changes - [#12197](https://togithub.com/rubocop/rubocop/pull/12197): Make `Style/CollectionMethods` aware of `collect_concat`. (\[[@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.