rubocop/rubocop (rubocop)
### [`v1.63.2`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1632-2024-04-16)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.63.1...v1.63.2)
##### Bug fixes
- [#12843](https://togithub.com/rubocop/rubocop/issues/12843): Fix an error for `Lint/MixedCaseRange` when a character between `Z` and `a` is used in the regexp range. (\[[@koic](https://togithub.com/koic)]\[])
- [#12846](https://togithub.com/rubocop/rubocop/issues/12846): Fix an error for `RuboCop::Lockfile` when there is no Bundler environment. (\[[@koic](https://togithub.com/koic)]\[])
- [#12832](https://togithub.com/rubocop/rubocop/issues/12832): Fix an error for `Style/ArgumentsForwarding` when using block arg in nested method definitions. (\[[@koic](https://togithub.com/koic)]\[])
- [#12841](https://togithub.com/rubocop/rubocop/pull/12841): Fix false negatives for `Lint/UnreachableLoop` when using pattern matching. (\[[@koic](https://togithub.com/koic)]\[])
- [#12835](https://togithub.com/rubocop/rubocop/issues/12835): Allow global offenses to be disabled by directive comments. (\[[@earlopain](https://togithub.com/earlopain)]\[])
##### Changes
- [#12845](https://togithub.com/rubocop/rubocop/pull/12845): Exclude `debug/open_nonstop` from `Lint/Debugger` by default. (\[[@koic](https://togithub.com/koic)]\[])
### [`v1.63.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1631-2024-04-10)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.63.0...v1.63.1)
##### Bug fixes
- [#12828](https://togithub.com/rubocop/rubocop/pull/12828): Fix a false positive for `Lint/AssignmentInCondition` if assigning inside a method call. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12823](https://togithub.com/rubocop/rubocop/issues/12823): Fixed "uninitialized constant `RuboCop::Lockfile::Bundler`", caused when running RuboCop without `bundler exec` on codebases that use `rubocop-rails`. (\[[@amomchilov](https://togithub.com/amomchilov)]\[])
### [`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)]\[])
### [`v1.62.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1621-2024-03-11)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.62.0...v1.62.1)
##### Bug fixes
- [#12761](https://togithub.com/rubocop/rubocop/issues/12761): Fix a false positive for `Style/HashEachMethods` when the key block argument of `Enumerable#each` method is unused after `chunk`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12768](https://togithub.com/rubocop/rubocop/pull/12768): Fix a false positive for `Style/NilComparison` without receiver and `EnforcedStyle: comparison`. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12752](https://togithub.com/rubocop/rubocop/pull/12752): Fix an error for `Gemspec/RequiredRubyVersion` when the file is empty. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12770](https://togithub.com/rubocop/rubocop/pull/12770): Fix an error for `Lint/RedundantWithIndex` when the method has no receiver. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12775](https://togithub.com/rubocop/rubocop/pull/12775): Fix an error for `Lint/UselessTimes` when no block is present. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12772](https://togithub.com/rubocop/rubocop/pull/12772): Fix an error for `Style/ClassVars` when calling `class_variable_set` without arguments. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12773](https://togithub.com/rubocop/rubocop/pull/12773): Fix an error for `Style/For` with `EnforcedStyle: for` when no receiver. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12765](https://togithub.com/rubocop/rubocop/pull/12765): Fix an error for `Layout/MultilineMethodCallIndentation` with safe navigation and assignment method. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12703](https://togithub.com/rubocop/rubocop/issues/12703): Fix an error for `Lint/MixedCaseRange` with invalid byte sequence in UTF-8. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12755](https://togithub.com/rubocop/rubocop/pull/12755): Fix an exception for `RedundantCurrentDirectoryInPath` in case of `require_relative` without arguments. (\[[@viralpraxis](https://togithub.com/viralpraxis)]\[])
- [#12710](https://togithub.com/rubocop/rubocop/issues/12710): Fix a false negative for `Layout/EmptyLineAfterMagicComment` when the file is comments only. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12758](https://togithub.com/rubocop/rubocop/issues/12758): Fix false positives for `Layout/RedundantLineBreak` when using `&&` or `||` after a backslash newline. (\[[@koic](https://togithub.com/koic)]\[])
- [#12763](https://togithub.com/rubocop/rubocop/pull/12763): Fix an infinite loop for `Style/MultilineMethodSignature` when there is a newline directly after the def keyword. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12774](https://togithub.com/rubocop/rubocop/pull/12774): Fix an infinite loop for `Style/RaiseArgs` with `EnforcedStyle: compact` when passing more than 2 arguments to `raise`. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12663](https://togithub.com/rubocop/rubocop/issues/12663): Fix `Lint/Syntax` getting disabled by `rubocop:disable Lint/Syntax`. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#12756](https://togithub.com/rubocop/rubocop/pull/12756): Only parse target Ruby from gemspec if array elements are strings. (\[[@davidrunger](https://togithub.com/davidrunger)]\[])
##### Changes
- [#12730](https://togithub.com/rubocop/rubocop/pull/12730): Skip `LineLength` phase on `--auto-gen-only-exclude`. (\[[@sambostock](https://togithub.com/sambostock)]\[])
### [`v1.62.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1620-2024-03-06)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.61.0...v1.62.0)
##### New features
- [#12600](https://togithub.com/rubocop/rubocop/issues/12600): Support Prism as a Ruby parser (experimental). (\[[@koic](https://togithub.com/koic)]\[])
- [#12725](https://togithub.com/rubocop/rubocop/pull/12725): Support `TargetRubyVersion 3.4` (experimental). (\[[@koic](https://togithub.com/koic)]\[])
##### Bug fixes
- [#12746](https://togithub.com/rubocop/rubocop/pull/12746): Fix a false positive for `Lint/ToEnumArguments` when enumerator is created for another method in no arguments method definition. (\[[@koic](https://togithub.com/koic)]\[])
- [#12726](https://togithub.com/rubocop/rubocop/issues/12726): Fix a false positive for `Style/RedundantLineContinuation` when using line concatenation and calling a method with keyword arguments without parentheses. (\[[@koic](https://togithub.com/koic)]\[])
- [#12738](https://togithub.com/rubocop/rubocop/issues/12738): Fix an error for `Style/Encoding` when magic encoding with mixed case present. (\[[@koic](https://togithub.com/koic)]\[])
- [#12732](https://togithub.com/rubocop/rubocop/pull/12732): Fix error determining target Ruby when gemspec `required_ruby_version` is read from another file. (\[[@davidrunger](https://togithub.com/davidrunger)]\[])
- [#12736](https://togithub.com/rubocop/rubocop/issues/12736): Fix invalid autocorrect in `Layout/SpaceInsideHashLiteralBraces`. (\[[@bquorning](https://togithub.com/bquorning)]\[])
- [#12667](https://togithub.com/rubocop/rubocop/issues/12667): Don't load excluded configuration. (\[[@jonas054](https://togithub.com/jonas054)]\[])
### [`v1.61.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1610-2024-02-29)
[Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.60.2...v1.61.0)
##### New features
- [#12682](https://togithub.com/rubocop/rubocop/issues/12682): Add `--editor-mode` CLI option. (\[[@koic](https://togithub.com/koic)]\[])
- [#12657](https://togithub.com/rubocop/rubocop/pull/12657): Support `AutoCorrect: contextual` option for LSP. (\[[@koic](https://togithub.com/koic)]\[])
- [#12273](https://togithub.com/rubocop/rubocop/issues/12273): Make `OffenseCountFormatter` display autocorrection information. (\[[@koic](https://togithub.com/koic)]\[])
- [#12679](https://togithub.com/rubocop/rubocop/pull/12679): Publish `RuboCop::LSP.enable` API to enable LSP mode. (\[[@koic](https://togithub.com/koic)]\[])
- [#12699](https://togithub.com/rubocop/rubocop/issues/12699): Support searching for `.rubocop.yml` and `rubocop/config.yml` in compliance with dot-config. (\[[@koic](https://togithub.com/koic)]\[])
##### Bug fixes
- [#12720](https://togithub.com/rubocop/rubocop/issues/12720): Fix a false positive for `Style/ArgumentsForwarding` when using block arg forwarding to within block with Ruby 3.3.0. (\[[@koic](https://togithub.com/koic)]\[])
- [#12714](https://togithub.com/rubocop/rubocop/issues/12714): Fix an error for `Gemspec/RequiredRubyVersion` when `required_ruby_version` is specified with `Gem::Requirement.new` and is higher than `TargetRubyVersion`. (\[[@koic](https://togithub.com/koic)]\[])
- [#12690](https://togithub.com/rubocop/rubocop/issues/12690): Fix an error for `Style/CaseLikeIf` when using `==` with literal and using ternary operator. (\[[@koic](https://togithub.com/koic)]\[])
- [#12668](https://togithub.com/rubocop/rubocop/issues/12668): Fix an incorrect autocorrect for `Lint/EmptyConditionalBody` when missing `if` body with conditional `else` body. (\[[@koic](https://togithub.com/koic)]\[])
- [#12683](https://togithub.com/rubocop/rubocop/issues/12683): Fix an incorrect autocorrect for `Style/MapCompactWithConditionalBlock` when using guard clause with `next` implicitly nil. (\[[@koic](https://togithub.com/koic)]\[])
- [#12693](https://togithub.com/rubocop/rubocop/issues/12693): Fix an incorrect autocorrect for `Style/ObjectThen` when using `yield_self` without receiver. (\[[@koic](https://togithub.com/koic)]\[])
- [#12646](https://togithub.com/rubocop/rubocop/issues/12646): Fix `--auto-gen-config` bug for `Layout/SpaceBeforeBlockBraces`. (\[[@jonas054](https://togithub.com/jonas054)]\[])
- [#12717](https://togithub.com/rubocop/rubocop/issues/12717): Fix regexp for inline disable comments in `Style/CommentedKeyword`. (\[[@jonas054](https://togithub.com/jonas054)]\[])
- [#12695](https://togithub.com/rubocop/rubocop/issues/12695): Fix bug in `Include` from inherited file in a parent directory. (\[[@jonas054](https://togithub.com/jonas054)]\[])
- [#12656](https://togithub.com/rubocop/rubocop/pull/12656): Fix an error for `Layout/RedundantLineBreak` when using index access call chained on multiline hash literal. (\[[@koic](https://togithub.com/koic)]\[])
- [#12691](https://togithub.com/rubocop/rubocop/issues/12691): Fix an error for `Style/MultilineTernaryOperator` when nesting multiline ternary operators. (\[[@koic](https://togithub.com/koic)]\[])
- [#12707](https://togithub.com/rubocop/rubocop/pull/12707): Fix false negative for `Style/RedundantAssignment` when using pattern matching. (\[[@koic](https://togithub.com/koic)]\[])
- [#12674](https://togithub.com/rubocop/rubocop/pull/12674): Fix false negatives for `Style/RedundantReturn` when using pattern matching. (\[[@koic](https://togithub.com/koic)]\[])
- [#12673](https://togithub.com/rubocop/rubocop/pull/12673): Fix false negatives for `Lint/RedundantSafeNavigation` when using safe navigation operator for literal receiver. (\[[@koic](https://togithub.com/koic)]\[])
- [#12719](https://togithub.com/rubocop/rubocop/pull/12719): Fix false negatives for `Style/ArgumentsForwarding` when using forwardable block arguments with Ruby 3.2+. (\[[@koic](https://togithub.com/koic)]\[])
- [#12687](https://togithub.com/rubocop/rubocop/issues/12687): Fix a false positive for `Lint/Void` when `each` block with conditional expressions that has multiple statements. (\[[@koic](https://togithub.com/koic)]\[])
- [#12649](https://togithub.com/rubocop/rubocop/issues/12649): Fix false positives for `Style/InverseMethods` when using relational comparison operator with safe navigation. (\[[@koic](https://togithub.com/koic)]\[])
- [#12711](https://togithub.com/rubocop/rubocop/pull/12711): Handle implicit receivers in `Style/InvertibleUnlessCondition`. (\[[@sambostock](https://togithub.com/sambostock)]\[])
- [#12648](https://togithub.com/rubocop/rubocop/pull/12648): Fix numblock regressions in `omit_parentheses` `Style/MethodCallWithArgsParentheses`. (\[[@gsamokovarov](https://togithub.com/gsamokovarov)]\[])
##### Changes
- [#12641](https://togithub.com/rubocop/rubocop/pull/12641): Make error message clearer when the namespace is incorrect. (\[[@maruth-stripe](https://togithub.com/maruth-stripe)]\[])
- [#12637](https://togithub.com/rubocop/rubocop/pull/12637): Mark `Style/RaiseArgs` as unsafe. (\[[@r7kamura](https://togithub.com/r7kamura)]\[])
- [#12645](https://togithub.com/rubocop/rubocop/pull/12645): Change source order for target ruby to check gemspec after RuboCop configuration. (\[[@jenshenny](https://togithub.com/jenshenny)]\[])
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.60.2
->1.63.2
Release Notes
rubocop/rubocop (rubocop)
### [`v1.63.2`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1632-2024-04-16) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.63.1...v1.63.2) ##### Bug fixes - [#12843](https://togithub.com/rubocop/rubocop/issues/12843): Fix an error for `Lint/MixedCaseRange` when a character between `Z` and `a` is used in the regexp range. (\[[@koic](https://togithub.com/koic)]\[]) - [#12846](https://togithub.com/rubocop/rubocop/issues/12846): Fix an error for `RuboCop::Lockfile` when there is no Bundler environment. (\[[@koic](https://togithub.com/koic)]\[]) - [#12832](https://togithub.com/rubocop/rubocop/issues/12832): Fix an error for `Style/ArgumentsForwarding` when using block arg in nested method definitions. (\[[@koic](https://togithub.com/koic)]\[]) - [#12841](https://togithub.com/rubocop/rubocop/pull/12841): Fix false negatives for `Lint/UnreachableLoop` when using pattern matching. (\[[@koic](https://togithub.com/koic)]\[]) - [#12835](https://togithub.com/rubocop/rubocop/issues/12835): Allow global offenses to be disabled by directive comments. (\[[@earlopain](https://togithub.com/earlopain)]\[]) ##### Changes - [#12845](https://togithub.com/rubocop/rubocop/pull/12845): Exclude `debug/open_nonstop` from `Lint/Debugger` by default. (\[[@koic](https://togithub.com/koic)]\[]) ### [`v1.63.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1631-2024-04-10) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.63.0...v1.63.1) ##### Bug fixes - [#12828](https://togithub.com/rubocop/rubocop/pull/12828): Fix a false positive for `Lint/AssignmentInCondition` if assigning inside a method call. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12823](https://togithub.com/rubocop/rubocop/issues/12823): Fixed "uninitialized constant `RuboCop::Lockfile::Bundler`", caused when running RuboCop without `bundler exec` on codebases that use `rubocop-rails`. (\[[@amomchilov](https://togithub.com/amomchilov)]\[]) ### [`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)]\[]) ### [`v1.62.1`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1621-2024-03-11) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.62.0...v1.62.1) ##### Bug fixes - [#12761](https://togithub.com/rubocop/rubocop/issues/12761): Fix a false positive for `Style/HashEachMethods` when the key block argument of `Enumerable#each` method is unused after `chunk`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12768](https://togithub.com/rubocop/rubocop/pull/12768): Fix a false positive for `Style/NilComparison` without receiver and `EnforcedStyle: comparison`. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12752](https://togithub.com/rubocop/rubocop/pull/12752): Fix an error for `Gemspec/RequiredRubyVersion` when the file is empty. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12770](https://togithub.com/rubocop/rubocop/pull/12770): Fix an error for `Lint/RedundantWithIndex` when the method has no receiver. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12775](https://togithub.com/rubocop/rubocop/pull/12775): Fix an error for `Lint/UselessTimes` when no block is present. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12772](https://togithub.com/rubocop/rubocop/pull/12772): Fix an error for `Style/ClassVars` when calling `class_variable_set` without arguments. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12773](https://togithub.com/rubocop/rubocop/pull/12773): Fix an error for `Style/For` with `EnforcedStyle: for` when no receiver. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12765](https://togithub.com/rubocop/rubocop/pull/12765): Fix an error for `Layout/MultilineMethodCallIndentation` with safe navigation and assignment method. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12703](https://togithub.com/rubocop/rubocop/issues/12703): Fix an error for `Lint/MixedCaseRange` with invalid byte sequence in UTF-8. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12755](https://togithub.com/rubocop/rubocop/pull/12755): Fix an exception for `RedundantCurrentDirectoryInPath` in case of `require_relative` without arguments. (\[[@viralpraxis](https://togithub.com/viralpraxis)]\[]) - [#12710](https://togithub.com/rubocop/rubocop/issues/12710): Fix a false negative for `Layout/EmptyLineAfterMagicComment` when the file is comments only. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12758](https://togithub.com/rubocop/rubocop/issues/12758): Fix false positives for `Layout/RedundantLineBreak` when using `&&` or `||` after a backslash newline. (\[[@koic](https://togithub.com/koic)]\[]) - [#12763](https://togithub.com/rubocop/rubocop/pull/12763): Fix an infinite loop for `Style/MultilineMethodSignature` when there is a newline directly after the def keyword. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12774](https://togithub.com/rubocop/rubocop/pull/12774): Fix an infinite loop for `Style/RaiseArgs` with `EnforcedStyle: compact` when passing more than 2 arguments to `raise`. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12663](https://togithub.com/rubocop/rubocop/issues/12663): Fix `Lint/Syntax` getting disabled by `rubocop:disable Lint/Syntax`. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#12756](https://togithub.com/rubocop/rubocop/pull/12756): Only parse target Ruby from gemspec if array elements are strings. (\[[@davidrunger](https://togithub.com/davidrunger)]\[]) ##### Changes - [#12730](https://togithub.com/rubocop/rubocop/pull/12730): Skip `LineLength` phase on `--auto-gen-only-exclude`. (\[[@sambostock](https://togithub.com/sambostock)]\[]) ### [`v1.62.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1620-2024-03-06) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.61.0...v1.62.0) ##### New features - [#12600](https://togithub.com/rubocop/rubocop/issues/12600): Support Prism as a Ruby parser (experimental). (\[[@koic](https://togithub.com/koic)]\[]) - [#12725](https://togithub.com/rubocop/rubocop/pull/12725): Support `TargetRubyVersion 3.4` (experimental). (\[[@koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#12746](https://togithub.com/rubocop/rubocop/pull/12746): Fix a false positive for `Lint/ToEnumArguments` when enumerator is created for another method in no arguments method definition. (\[[@koic](https://togithub.com/koic)]\[]) - [#12726](https://togithub.com/rubocop/rubocop/issues/12726): Fix a false positive for `Style/RedundantLineContinuation` when using line concatenation and calling a method with keyword arguments without parentheses. (\[[@koic](https://togithub.com/koic)]\[]) - [#12738](https://togithub.com/rubocop/rubocop/issues/12738): Fix an error for `Style/Encoding` when magic encoding with mixed case present. (\[[@koic](https://togithub.com/koic)]\[]) - [#12732](https://togithub.com/rubocop/rubocop/pull/12732): Fix error determining target Ruby when gemspec `required_ruby_version` is read from another file. (\[[@davidrunger](https://togithub.com/davidrunger)]\[]) - [#12736](https://togithub.com/rubocop/rubocop/issues/12736): Fix invalid autocorrect in `Layout/SpaceInsideHashLiteralBraces`. (\[[@bquorning](https://togithub.com/bquorning)]\[]) - [#12667](https://togithub.com/rubocop/rubocop/issues/12667): Don't load excluded configuration. (\[[@jonas054](https://togithub.com/jonas054)]\[]) ### [`v1.61.0`](https://togithub.com/rubocop/rubocop/blob/HEAD/CHANGELOG.md#1610-2024-02-29) [Compare Source](https://togithub.com/rubocop/rubocop/compare/v1.60.2...v1.61.0) ##### New features - [#12682](https://togithub.com/rubocop/rubocop/issues/12682): Add `--editor-mode` CLI option. (\[[@koic](https://togithub.com/koic)]\[]) - [#12657](https://togithub.com/rubocop/rubocop/pull/12657): Support `AutoCorrect: contextual` option for LSP. (\[[@koic](https://togithub.com/koic)]\[]) - [#12273](https://togithub.com/rubocop/rubocop/issues/12273): Make `OffenseCountFormatter` display autocorrection information. (\[[@koic](https://togithub.com/koic)]\[]) - [#12679](https://togithub.com/rubocop/rubocop/pull/12679): Publish `RuboCop::LSP.enable` API to enable LSP mode. (\[[@koic](https://togithub.com/koic)]\[]) - [#12699](https://togithub.com/rubocop/rubocop/issues/12699): Support searching for `.rubocop.yml` and `rubocop/config.yml` in compliance with dot-config. (\[[@koic](https://togithub.com/koic)]\[]) ##### Bug fixes - [#12720](https://togithub.com/rubocop/rubocop/issues/12720): Fix a false positive for `Style/ArgumentsForwarding` when using block arg forwarding to within block with Ruby 3.3.0. (\[[@koic](https://togithub.com/koic)]\[]) - [#12714](https://togithub.com/rubocop/rubocop/issues/12714): Fix an error for `Gemspec/RequiredRubyVersion` when `required_ruby_version` is specified with `Gem::Requirement.new` and is higher than `TargetRubyVersion`. (\[[@koic](https://togithub.com/koic)]\[]) - [#12690](https://togithub.com/rubocop/rubocop/issues/12690): Fix an error for `Style/CaseLikeIf` when using `==` with literal and using ternary operator. (\[[@koic](https://togithub.com/koic)]\[]) - [#12668](https://togithub.com/rubocop/rubocop/issues/12668): Fix an incorrect autocorrect for `Lint/EmptyConditionalBody` when missing `if` body with conditional `else` body. (\[[@koic](https://togithub.com/koic)]\[]) - [#12683](https://togithub.com/rubocop/rubocop/issues/12683): Fix an incorrect autocorrect for `Style/MapCompactWithConditionalBlock` when using guard clause with `next` implicitly nil. (\[[@koic](https://togithub.com/koic)]\[]) - [#12693](https://togithub.com/rubocop/rubocop/issues/12693): Fix an incorrect autocorrect for `Style/ObjectThen` when using `yield_self` without receiver. (\[[@koic](https://togithub.com/koic)]\[]) - [#12646](https://togithub.com/rubocop/rubocop/issues/12646): Fix `--auto-gen-config` bug for `Layout/SpaceBeforeBlockBraces`. (\[[@jonas054](https://togithub.com/jonas054)]\[]) - [#12717](https://togithub.com/rubocop/rubocop/issues/12717): Fix regexp for inline disable comments in `Style/CommentedKeyword`. (\[[@jonas054](https://togithub.com/jonas054)]\[]) - [#12695](https://togithub.com/rubocop/rubocop/issues/12695): Fix bug in `Include` from inherited file in a parent directory. (\[[@jonas054](https://togithub.com/jonas054)]\[]) - [#12656](https://togithub.com/rubocop/rubocop/pull/12656): Fix an error for `Layout/RedundantLineBreak` when using index access call chained on multiline hash literal. (\[[@koic](https://togithub.com/koic)]\[]) - [#12691](https://togithub.com/rubocop/rubocop/issues/12691): Fix an error for `Style/MultilineTernaryOperator` when nesting multiline ternary operators. (\[[@koic](https://togithub.com/koic)]\[]) - [#12707](https://togithub.com/rubocop/rubocop/pull/12707): Fix false negative for `Style/RedundantAssignment` when using pattern matching. (\[[@koic](https://togithub.com/koic)]\[]) - [#12674](https://togithub.com/rubocop/rubocop/pull/12674): Fix false negatives for `Style/RedundantReturn` when using pattern matching. (\[[@koic](https://togithub.com/koic)]\[]) - [#12673](https://togithub.com/rubocop/rubocop/pull/12673): Fix false negatives for `Lint/RedundantSafeNavigation` when using safe navigation operator for literal receiver. (\[[@koic](https://togithub.com/koic)]\[]) - [#12719](https://togithub.com/rubocop/rubocop/pull/12719): Fix false negatives for `Style/ArgumentsForwarding` when using forwardable block arguments with Ruby 3.2+. (\[[@koic](https://togithub.com/koic)]\[]) - [#12687](https://togithub.com/rubocop/rubocop/issues/12687): Fix a false positive for `Lint/Void` when `each` block with conditional expressions that has multiple statements. (\[[@koic](https://togithub.com/koic)]\[]) - [#12649](https://togithub.com/rubocop/rubocop/issues/12649): Fix false positives for `Style/InverseMethods` when using relational comparison operator with safe navigation. (\[[@koic](https://togithub.com/koic)]\[]) - [#12711](https://togithub.com/rubocop/rubocop/pull/12711): Handle implicit receivers in `Style/InvertibleUnlessCondition`. (\[[@sambostock](https://togithub.com/sambostock)]\[]) - [#12648](https://togithub.com/rubocop/rubocop/pull/12648): Fix numblock regressions in `omit_parentheses` `Style/MethodCallWithArgsParentheses`. (\[[@gsamokovarov](https://togithub.com/gsamokovarov)]\[]) ##### Changes - [#12641](https://togithub.com/rubocop/rubocop/pull/12641): Make error message clearer when the namespace is incorrect. (\[[@maruth-stripe](https://togithub.com/maruth-stripe)]\[]) - [#12637](https://togithub.com/rubocop/rubocop/pull/12637): Mark `Style/RaiseArgs` as unsafe. (\[[@r7kamura](https://togithub.com/r7kamura)]\[]) - [#12645](https://togithub.com/rubocop/rubocop/pull/12645): Change source order for target ruby to check gemspec after RuboCop configuration. (\[[@jenshenny](https://togithub.com/jenshenny)]\[])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.