rubocop/rubocop (rubocop)
### [`v1.63.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1630-2024-04-08)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.62.1...v1.63.0)
##### New features
- [#11878](https://togithub.com/rubocop/rubocop/issues/11878): Add new `Style/MapIntoArray` cop. (\[[@ymap](https://togithub.com/ymap)]\[])
- [#12186](https://togithub.com/rubocop/rubocop/pull/12186): Add new `requires_gem` API for declaring which gems a Cop needs. (\[[@amomchilov](https://togithub.com/amomchilov)]\[])
##### Bug fixes
- [#12769](https://togithub.com/rubocop/rubocop/issues/12769): Fix a false positive for `Lint/RedundantWithIndex` when calling `with_index` with receiver and a block. (\[[@koic](https://togithub.com/koic)]\[])
- [#12547](https://togithub.com/rubocop/rubocop/issues/12547): Added a comment recommending upgrading to the latest version of Rubocop in the error text when an Infinite loop detected error occurs. (\[[@Hiroto-Iizuka](https://togithub.com/Hiroto-Iizuka)]\[])
- [#12782](https://togithub.com/rubocop/rubocop/pull/12782): Fix an error for `Style/Alias` with `EnforcedStyle: prefer_alias` when calling `alias_method` with fewer than 2 arguments. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12781](https://togithub.com/rubocop/rubocop/pull/12781): Fix an error for `Style/ExactRegexpMatch` when calling `match` without a receiver. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12780](https://togithub.com/rubocop/rubocop/issues/12780): Fix an error for `Style/RedundantEach` when using `reverse_each.each` without a block. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12731](https://togithub.com/rubocop/rubocop/pull/12731): Treat `&.` the same way as `.` for setter methods in `Lint/AssignmentInCondition`. (\[[@jonas054](https://togithub.com/jonas054)]\[])
- [#12793](https://togithub.com/rubocop/rubocop/issues/12793): Fix false positives for `Style/RedundantLineContinuation` when using line continuation with modifier. (\[[@koic](https://togithub.com/koic)]\[])
- [#12807](https://togithub.com/rubocop/rubocop/issues/12807): Fix false positives for `Naming/BlockForwarding` when using explicit block forwarding in block method and others. (\[[@koic](https://togithub.com/koic)]\[])
- [#12796](https://togithub.com/rubocop/rubocop/pull/12796): Fix false positives for `Style/EvalWithLocation` when using `eval` with a line number from a method call or a variable. (\[[@koic](https://togithub.com/koic)]\[])
- [#12794](https://togithub.com/rubocop/rubocop/issues/12794): Fix false positives for `Style/RedundantArgument` when when single-quoted strings for cntrl character. (\[[@koic](https://togithub.com/koic)]\[])
- [#12797](https://togithub.com/rubocop/rubocop/issues/12797): Fix false positives for `Style/RedundantLineContinuation` when using line continuations with `&&` or `||` operator in assignment. (\[[@koic](https://togithub.com/koic)]\[])
- [#12793](https://togithub.com/rubocop/rubocop/issues/12793): Fix false positives for `Style/RedundantLineContinuation` when multi-line continuations with operators. (\[[@koic](https://togithub.com/koic)]\[])
- [#12801](https://togithub.com/rubocop/rubocop/issues/12801): Fix incorrect autocorrect for `Style/CollectionCompact` when using `delete_if`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12789](https://togithub.com/rubocop/rubocop/pull/12789): Make `Style/RedundantPercentQ` safe on multiline strings. (\[[@boardfish](https://togithub.com/boardfish)]\[])
- [#12802](https://togithub.com/rubocop/rubocop/pull/12802): Return global offenses for `Naming/FileName` and `Naming/InclusiveLanguage` for empty files. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12804](https://togithub.com/rubocop/rubocop/pull/12804): Return global offenses for `Style/Copyright` when the file is empty. (\[[@earlopain](https://togithub.com/earlopain)]\[])
##### Changes
- [#12813](https://togithub.com/rubocop/rubocop/pull/12813): Add rubocop-rspec_rails to suggested extensions and extension doc. (\[[@ydah](https://togithub.com/ydah)]\[])
- [#12820](https://togithub.com/rubocop/rubocop/pull/12820): Add support more Capybara debugger entry points for `Lint/Debugger`. (\[[@ydah](https://togithub.com/ydah)]\[])
- [#12676](https://togithub.com/rubocop/rubocop/issues/12676): Adjust offending range in LSP. (\[[@koic](https://togithub.com/koic)]\[])
- [#12815](https://togithub.com/rubocop/rubocop/issues/12815): Ignore `Rakefile.rb` in `Naming/FileName` in the default config. (\[[@artur-intech](https://togithub.com/artur-intech)]\[])
- [#12800](https://togithub.com/rubocop/rubocop/pull/12800): Handle empty obsoletion config. (\[[@sambostock](https://togithub.com/sambostock)]\[])
- [#12721](https://togithub.com/rubocop/rubocop/issues/12721): Make `Lint/Debugger` aware of `ruby/debug` requires. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12817](https://togithub.com/rubocop/rubocop/pull/12817): Make `rubocop -V` display rubocop-rspec_rails version when using it. (\[[@ydah](https://togithub.com/ydah)]\[])
- [#12180](https://togithub.com/rubocop/rubocop/pull/12180): Replace regex with `Bundler::LockfileParser`. (\[[@amomchilov](https://togithub.com/amomchilov)]\[])
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.62.0'
->'~> 1.63.0'
Release Notes
rubocop/rubocop (rubocop)
### [`v1.63.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1630-2024-04-08) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.62.1...v1.63.0) ##### New features - [#11878](https://togithub.com/rubocop/rubocop/issues/11878): Add new `Style/MapIntoArray` cop. (\[[@ymap](https://togithub.com/ymap)]\[]) - [#12186](https://togithub.com/rubocop/rubocop/pull/12186): Add new `requires_gem` API for declaring which gems a Cop needs. (\[[@amomchilov](https://togithub.com/amomchilov)]\[]) ##### Bug fixes - [#12769](https://togithub.com/rubocop/rubocop/issues/12769): Fix a false positive for `Lint/RedundantWithIndex` when calling `with_index` with receiver and a block. (\[[@koic](https://togithub.com/koic)]\[]) - [#12547](https://togithub.com/rubocop/rubocop/issues/12547): Added a comment recommending upgrading to the latest version of Rubocop in the error text when an Infinite loop detected error occurs. (\[[@Hiroto-Iizuka](https://togithub.com/Hiroto-Iizuka)]\[]) - [#12782](https://togithub.com/rubocop/rubocop/pull/12782): Fix an error for `Style/Alias` with `EnforcedStyle: prefer_alias` when calling `alias_method` with fewer than 2 arguments. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12781](https://togithub.com/rubocop/rubocop/pull/12781): Fix an error for `Style/ExactRegexpMatch` when calling `match` without a receiver. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12780](https://togithub.com/rubocop/rubocop/issues/12780): Fix an error for `Style/RedundantEach` when using `reverse_each.each` without a block. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12731](https://togithub.com/rubocop/rubocop/pull/12731): Treat `&.` the same way as `.` for setter methods in `Lint/AssignmentInCondition`. (\[[@jonas054](https://togithub.com/jonas054)]\[]) - [#12793](https://togithub.com/rubocop/rubocop/issues/12793): Fix false positives for `Style/RedundantLineContinuation` when using line continuation with modifier. (\[[@koic](https://togithub.com/koic)]\[]) - [#12807](https://togithub.com/rubocop/rubocop/issues/12807): Fix false positives for `Naming/BlockForwarding` when using explicit block forwarding in block method and others. (\[[@koic](https://togithub.com/koic)]\[]) - [#12796](https://togithub.com/rubocop/rubocop/pull/12796): Fix false positives for `Style/EvalWithLocation` when using `eval` with a line number from a method call or a variable. (\[[@koic](https://togithub.com/koic)]\[]) - [#12794](https://togithub.com/rubocop/rubocop/issues/12794): Fix false positives for `Style/RedundantArgument` when when single-quoted strings for cntrl character. (\[[@koic](https://togithub.com/koic)]\[]) - [#12797](https://togithub.com/rubocop/rubocop/issues/12797): Fix false positives for `Style/RedundantLineContinuation` when using line continuations with `&&` or `||` operator in assignment. (\[[@koic](https://togithub.com/koic)]\[]) - [#12793](https://togithub.com/rubocop/rubocop/issues/12793): Fix false positives for `Style/RedundantLineContinuation` when multi-line continuations with operators. (\[[@koic](https://togithub.com/koic)]\[]) - [#12801](https://togithub.com/rubocop/rubocop/issues/12801): Fix incorrect autocorrect for `Style/CollectionCompact` when using `delete_if`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12789](https://togithub.com/rubocop/rubocop/pull/12789): Make `Style/RedundantPercentQ` safe on multiline strings. (\[[@boardfish](https://togithub.com/boardfish)]\[]) - [#12802](https://togithub.com/rubocop/rubocop/pull/12802): Return global offenses for `Naming/FileName` and `Naming/InclusiveLanguage` for empty files. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12804](https://togithub.com/rubocop/rubocop/pull/12804): Return global offenses for `Style/Copyright` when the file is empty. (\[[@earlopain](https://togithub.com/earlopain)]\[]) ##### Changes - [#12813](https://togithub.com/rubocop/rubocop/pull/12813): Add rubocop-rspec_rails to suggested extensions and extension doc. (\[[@ydah](https://togithub.com/ydah)]\[]) - [#12820](https://togithub.com/rubocop/rubocop/pull/12820): Add support more Capybara debugger entry points for `Lint/Debugger`. (\[[@ydah](https://togithub.com/ydah)]\[]) - [#12676](https://togithub.com/rubocop/rubocop/issues/12676): Adjust offending range in LSP. (\[[@koic](https://togithub.com/koic)]\[]) - [#12815](https://togithub.com/rubocop/rubocop/issues/12815): Ignore `Rakefile.rb` in `Naming/FileName` in the default config. (\[[@artur-intech](https://togithub.com/artur-intech)]\[]) - [#12800](https://togithub.com/rubocop/rubocop/pull/12800): Handle empty obsoletion config. (\[[@sambostock](https://togithub.com/sambostock)]\[]) - [#12721](https://togithub.com/rubocop/rubocop/issues/12721): Make `Lint/Debugger` aware of `ruby/debug` requires. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12817](https://togithub.com/rubocop/rubocop/pull/12817): Make `rubocop -V` display rubocop-rspec_rails version when using it. (\[[@ydah](https://togithub.com/ydah)]\[]) - [#12180](https://togithub.com/rubocop/rubocop/pull/12180): Replace regex with `Bundler::LockfileParser`. (\[[@amomchilov](https://togithub.com/amomchilov)]\[])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.