rubocop/rubocop (rubocop)
### [`v1.58.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1580-2023-12-01)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.57.2...v1.58.0)
##### New features
- [#12420](https://togithub.com/rubocop/rubocop/pull/12420): Add new `Lint/LiteralAssignmentInCondition` cop. (\[[@koic](https://togithub.com/koic)]\[])
- [#12353](https://togithub.com/rubocop/rubocop/issues/12353): Add new `Style/SuperWithArgsParentheses` cop. (\[[@koic](https://togithub.com/koic)]\[])
- [#12406](https://togithub.com/rubocop/rubocop/issues/12406): Add new `Style/ArrayFirstLast` cop. (\[[@fatkodima](https://togithub.com/fatkodima)]\[])
##### Bug fixes
- [#12372](https://togithub.com/rubocop/rubocop/issues/12372): Fix a false negative for `Lint/Debugger` when used within method arguments a `begin`...`end` block. (\[[@koic](https://togithub.com/koic)]\[])
- [#12378](https://togithub.com/rubocop/rubocop/pull/12378): Fix a false negative for `Style/Semicolon` when a semicolon at the beginning of a lambda block. (\[[@koic](https://togithub.com/koic)]\[])
- [#12146](https://togithub.com/rubocop/rubocop/issues/12146): Fix a false positive for `Lint/FloatComparison` when comparing against zero. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12404](https://togithub.com/rubocop/rubocop/issues/12404): Fix a false positive for `Layout/RescueEnsureAlignment` when aligned `rescue` in `do`-`end` numbered block in a method. (\[[@koic](https://togithub.com/koic)]\[])
- [#12374](https://togithub.com/rubocop/rubocop/issues/12374): Fix a false positive for `Layout/SpaceBeforeSemicolon` when a space between an opening lambda brace and a semicolon. (\[[@koic](https://togithub.com/koic)]\[])
- [#12326](https://togithub.com/rubocop/rubocop/pull/12326): Fix an error for `Style/RedundantDoubleSplatHashBraces` when method call for parenthesized no hash double double splat. (\[[@koic](https://togithub.com/koic)]\[])
- [#12361](https://togithub.com/rubocop/rubocop/issues/12361): Fix an incorrect autocorrect for `Naming/BlockForwarding` and `Style/ArgumentsForwarding` when autocorrection conflicts for anonymous arguments. (\[[@koic](https://togithub.com/koic)]\[])
- [#12324](https://togithub.com/rubocop/rubocop/issues/12324): Fix an error for `Layout/RescueEnsureAlignment` when using `rescue` in `do`...`end` block assigned to object attribute. (\[[@koic](https://togithub.com/koic)]\[])
- [#12322](https://togithub.com/rubocop/rubocop/issues/12322): Fix an error for `Style/CombinableLoops` when looping over the same data for the third consecutive time or more. (\[[@koic](https://togithub.com/koic)]\[])
- [#12366](https://togithub.com/rubocop/rubocop/pull/12366): Fix a false negative for `Layout/ExtraSpacing` when a file has exactly two comments. (\[[@eugeneius](https://togithub.com/eugeneius)]\[])
- [#12373](https://togithub.com/rubocop/rubocop/issues/12373): Fix a false negative for `Lint/SymbolConversion` when using string interpolation. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12402](https://togithub.com/rubocop/rubocop/issues/12402): Fix false negatives for `Style/RedundantLineContinuation` when redundant line continuations for a block are used, especially without parentheses around first argument. (\[[@koic](https://togithub.com/koic)]\[])
- [#12311](https://togithub.com/rubocop/rubocop/issues/12311): Fix false negatives for `Style/RedundantParentheses` when parentheses around logical operator keywords in method definition. (\[[@koic](https://togithub.com/koic)]\[])
- [#12394](https://togithub.com/rubocop/rubocop/issues/12394): Fix false negatives for `Style/RedundantReturn` when `lambda` (`->`) ending with `return`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12377](https://togithub.com/rubocop/rubocop/issues/12377): Fix false positives for `Lint/Void` when a collection literal that includes non-literal elements in a method definition. (\[[@koic](https://togithub.com/koic)]\[])
- [#12407](https://togithub.com/rubocop/rubocop/pull/12407): Fix an incorrect autocorrect for `Style/MapToHash` with `Layout/SingleLineBlockChain`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12409](https://togithub.com/rubocop/rubocop/issues/12409): Fix an incorrect autocorrect for `Lint/SafeNavigationChain` when ordinary method chain exists after safe navigation leading dot method call. (\[[@koic](https://togithub.com/koic)]\[])
- [#12363](https://togithub.com/rubocop/rubocop/issues/12363): Fix incorrect rendering of HTML character entities in `HTMLFormatter` formatter. (\[[@koic](https://togithub.com/koic)]\[])
- [#12424](https://togithub.com/rubocop/rubocop/issues/12424): Make `Style/HashEachMethods` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[])
- [#12413](https://togithub.com/rubocop/rubocop/issues/12413): Make `Style/InverseMethods` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[])
- [#12408](https://togithub.com/rubocop/rubocop/pull/12408): Make `Style/MapToHash` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[])
##### Changes
- [#12328](https://togithub.com/rubocop/rubocop/issues/12328): Make `Style/AutoResourceCleanup` aware of `Tempfile.open`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12412](https://togithub.com/rubocop/rubocop/issues/12412): Enhance `Lint/RedundantSafeNavigation` to handle conversion methods with defaults. (\[[@fatkodima](https://togithub.com/fatkodima)]\[])
- [#12410](https://togithub.com/rubocop/rubocop/issues/12410): Enhance `Lint/SelfAssignment` to check attribute assignment and key assignment. (\[[@fatkodima](https://togithub.com/fatkodima)]\[])
- [#12370](https://togithub.com/rubocop/rubocop/issues/12370): Make `Style/HashEachMethods` aware of unused block value. (\[[@koic](https://togithub.com/koic)]\[])
- [#12380](https://togithub.com/rubocop/rubocop/issues/12380): Make `Style/RedundantParentheses` aware of lambda or proc. (\[[@koic](https://togithub.com/koic)]\[])
- [#12421](https://togithub.com/rubocop/rubocop/pull/12421): Make `Style/SelfAssignment` aware of `%`, `^`, `<<`, and `>>` operators. (\[[@koic](https://togithub.com/koic)]\[])
- [#12305](https://togithub.com/rubocop/rubocop/pull/12305): Require `rubocop-ast` version 1.30 or greater. (\[[@sambostock](https://togithub.com/sambostock)]\[])
- [#12337](https://togithub.com/rubocop/rubocop/issues/12337): Supports `EnforcedStyleForRationalLiterals` option for `Layout/SpaceAroundOperators`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12296](https://togithub.com/rubocop/rubocop/issues/12296): Support `RedundantRestArgumentNames`, `RedundantKeywordRestArgumentNames`, and `RedundantBlockArgumentNames` options for `Style/ArgumentsForwarding`. (\[[@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.57.0'
->'~> 1.58.0'
Release Notes
rubocop/rubocop (rubocop)
### [`v1.58.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1580-2023-12-01) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.57.2...v1.58.0) ##### New features - [#12420](https://togithub.com/rubocop/rubocop/pull/12420): Add new `Lint/LiteralAssignmentInCondition` cop. (\[[@koic](https://togithub.com/koic)]\[]) - [#12353](https://togithub.com/rubocop/rubocop/issues/12353): Add new `Style/SuperWithArgsParentheses` cop. (\[[@koic](https://togithub.com/koic)]\[]) - [#12406](https://togithub.com/rubocop/rubocop/issues/12406): Add new `Style/ArrayFirstLast` cop. (\[[@fatkodima](https://togithub.com/fatkodima)]\[]) ##### Bug fixes - [#12372](https://togithub.com/rubocop/rubocop/issues/12372): Fix a false negative for `Lint/Debugger` when used within method arguments a `begin`...`end` block. (\[[@koic](https://togithub.com/koic)]\[]) - [#12378](https://togithub.com/rubocop/rubocop/pull/12378): Fix a false negative for `Style/Semicolon` when a semicolon at the beginning of a lambda block. (\[[@koic](https://togithub.com/koic)]\[]) - [#12146](https://togithub.com/rubocop/rubocop/issues/12146): Fix a false positive for `Lint/FloatComparison` when comparing against zero. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12404](https://togithub.com/rubocop/rubocop/issues/12404): Fix a false positive for `Layout/RescueEnsureAlignment` when aligned `rescue` in `do`-`end` numbered block in a method. (\[[@koic](https://togithub.com/koic)]\[]) - [#12374](https://togithub.com/rubocop/rubocop/issues/12374): Fix a false positive for `Layout/SpaceBeforeSemicolon` when a space between an opening lambda brace and a semicolon. (\[[@koic](https://togithub.com/koic)]\[]) - [#12326](https://togithub.com/rubocop/rubocop/pull/12326): Fix an error for `Style/RedundantDoubleSplatHashBraces` when method call for parenthesized no hash double double splat. (\[[@koic](https://togithub.com/koic)]\[]) - [#12361](https://togithub.com/rubocop/rubocop/issues/12361): Fix an incorrect autocorrect for `Naming/BlockForwarding` and `Style/ArgumentsForwarding` when autocorrection conflicts for anonymous arguments. (\[[@koic](https://togithub.com/koic)]\[]) - [#12324](https://togithub.com/rubocop/rubocop/issues/12324): Fix an error for `Layout/RescueEnsureAlignment` when using `rescue` in `do`...`end` block assigned to object attribute. (\[[@koic](https://togithub.com/koic)]\[]) - [#12322](https://togithub.com/rubocop/rubocop/issues/12322): Fix an error for `Style/CombinableLoops` when looping over the same data for the third consecutive time or more. (\[[@koic](https://togithub.com/koic)]\[]) - [#12366](https://togithub.com/rubocop/rubocop/pull/12366): Fix a false negative for `Layout/ExtraSpacing` when a file has exactly two comments. (\[[@eugeneius](https://togithub.com/eugeneius)]\[]) - [#12373](https://togithub.com/rubocop/rubocop/issues/12373): Fix a false negative for `Lint/SymbolConversion` when using string interpolation. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12402](https://togithub.com/rubocop/rubocop/issues/12402): Fix false negatives for `Style/RedundantLineContinuation` when redundant line continuations for a block are used, especially without parentheses around first argument. (\[[@koic](https://togithub.com/koic)]\[]) - [#12311](https://togithub.com/rubocop/rubocop/issues/12311): Fix false negatives for `Style/RedundantParentheses` when parentheses around logical operator keywords in method definition. (\[[@koic](https://togithub.com/koic)]\[]) - [#12394](https://togithub.com/rubocop/rubocop/issues/12394): Fix false negatives for `Style/RedundantReturn` when `lambda` (`->`) ending with `return`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12377](https://togithub.com/rubocop/rubocop/issues/12377): Fix false positives for `Lint/Void` when a collection literal that includes non-literal elements in a method definition. (\[[@koic](https://togithub.com/koic)]\[]) - [#12407](https://togithub.com/rubocop/rubocop/pull/12407): Fix an incorrect autocorrect for `Style/MapToHash` with `Layout/SingleLineBlockChain`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12409](https://togithub.com/rubocop/rubocop/issues/12409): Fix an incorrect autocorrect for `Lint/SafeNavigationChain` when ordinary method chain exists after safe navigation leading dot method call. (\[[@koic](https://togithub.com/koic)]\[]) - [#12363](https://togithub.com/rubocop/rubocop/issues/12363): Fix incorrect rendering of HTML character entities in `HTMLFormatter` formatter. (\[[@koic](https://togithub.com/koic)]\[]) - [#12424](https://togithub.com/rubocop/rubocop/issues/12424): Make `Style/HashEachMethods` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[]) - [#12413](https://togithub.com/rubocop/rubocop/issues/12413): Make `Style/InverseMethods` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[]) - [#12408](https://togithub.com/rubocop/rubocop/pull/12408): Make `Style/MapToHash` aware of safe navigation operator. (\[[@koic](https://togithub.com/koic)]\[]) ##### Changes - [#12328](https://togithub.com/rubocop/rubocop/issues/12328): Make `Style/AutoResourceCleanup` aware of `Tempfile.open`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12412](https://togithub.com/rubocop/rubocop/issues/12412): Enhance `Lint/RedundantSafeNavigation` to handle conversion methods with defaults. (\[[@fatkodima](https://togithub.com/fatkodima)]\[]) - [#12410](https://togithub.com/rubocop/rubocop/issues/12410): Enhance `Lint/SelfAssignment` to check attribute assignment and key assignment. (\[[@fatkodima](https://togithub.com/fatkodima)]\[]) - [#12370](https://togithub.com/rubocop/rubocop/issues/12370): Make `Style/HashEachMethods` aware of unused block value. (\[[@koic](https://togithub.com/koic)]\[]) - [#12380](https://togithub.com/rubocop/rubocop/issues/12380): Make `Style/RedundantParentheses` aware of lambda or proc. (\[[@koic](https://togithub.com/koic)]\[]) - [#12421](https://togithub.com/rubocop/rubocop/pull/12421): Make `Style/SelfAssignment` aware of `%`, `^`, `<<`, and `>>` operators. (\[[@koic](https://togithub.com/koic)]\[]) - [#12305](https://togithub.com/rubocop/rubocop/pull/12305): Require `rubocop-ast` version 1.30 or greater. (\[[@sambostock](https://togithub.com/sambostock)]\[]) - [#12337](https://togithub.com/rubocop/rubocop/issues/12337): Supports `EnforcedStyleForRationalLiterals` option for `Layout/SpaceAroundOperators`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12296](https://togithub.com/rubocop/rubocop/issues/12296): Support `RedundantRestArgumentNames`, `RedundantKeywordRestArgumentNames`, and `RedundantBlockArgumentNames` options for `Style/ArgumentsForwarding`. (\[[@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.