#12828: Fix a false positive for Lint/AssignmentInCondition if assigning inside a method call. (@earlopain)
#12823: Fixed "uninitialized constant RuboCop::Lockfile::Bundler", caused when running RuboCop without bundler exec on codebases that use rubocop-rails. (@amomchilov)
#12186: Add new requires_gem API for declaring which gems a Cop needs. (@amomchilov)
Bug fixes
#12769: Fix a false positive for Lint/RedundantWithIndex when calling with_index with receiver and a block. (@koic)
#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)
#12782: Fix an error for Style/Alias with EnforcedStyle: prefer_alias when calling alias_method with fewer than 2 arguments. (@earlopain)
#12781: Fix an error for Style/ExactRegexpMatch when calling match without a receiver. (@earlopain)
#12780: Fix an error for Style/RedundantEach when using reverse_each.each without a block. (@earlopain)
#12731: Treat &. the same way as . for setter methods in Lint/AssignmentInCondition. ([@jonas054][])
#12793: Fix false positives for Style/RedundantLineContinuation when using line continuation with modifier. (@koic)
#12807: Fix false positives for Naming/BlockForwarding when using explicit block forwarding in block method and others. (@koic)
#12796: Fix false positives for Style/EvalWithLocation when using eval with a line number from a method call or a variable. (@koic)
#12794: Fix false positives for Style/RedundantArgument when when single-quoted strings for cntrl character. (@koic)
#12797: Fix false positives for Style/RedundantLineContinuation when using line continuations with && or || operator in assignment. (@koic)
#12793: Fix false positives for Style/RedundantLineContinuation when multi-line continuations with operators. (@koic)
#12801: Fix incorrect autocorrect for Style/CollectionCompact when using delete_if. (@koic)
#12789: Make Style/RedundantPercentQ safe on multiline strings. ([@boardfish][])
#12802: Return global offenses for Naming/FileName and Naming/InclusiveLanguage for empty files. (@earlopain)
#12804: Return global offenses for Style/Copyright when the file is empty. (@earlopain)
Changes
#12813: Add rubocop-rspec_rails to suggested extensions and extension doc. ([@ydah][])
#12820: Add support more Capybara debugger entry points for Lint/Debugger. ([@ydah][])
#12828: Fix a false positive for Lint/AssignmentInCondition if assigning inside a method call. ([@earlopain][])
#12823: Fixed "uninitialized constant RuboCop::Lockfile::Bundler", caused when running RuboCop without bundler exec on codebases that use rubocop-rails. ([@amomchilov][])
1.63.0 (2024-04-08)
New features
#11878: Add new Style/MapIntoArray cop. ([@ymap][])
#12186: Add new requires_gem API for declaring which gems a Cop needs. ([@amomchilov][])
Bug fixes
#12769: Fix a false positive for Lint/RedundantWithIndex when calling with_index with receiver and a block. ([@koic][])
#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][])
#12782: Fix an error for Style/Alias with EnforcedStyle: prefer_alias when calling alias_method with fewer than 2 arguments. ([@earlopain][])
#12781: Fix an error for Style/ExactRegexpMatch when calling match without a receiver. ([@earlopain][])
#12780: Fix an error for Style/RedundantEach when using reverse_each.each without a block. ([@earlopain][])
#12731: Treat &. the same way as . for setter methods in Lint/AssignmentInCondition. ([@jonas054][])
#12793: Fix false positives for Style/RedundantLineContinuation when using line continuation with modifier. ([@koic][])
#12807: Fix false positives for Naming/BlockForwarding when using explicit block forwarding in block method and others. ([@koic][])
#12796: Fix false positives for Style/EvalWithLocation when using eval with a line number from a method call or a variable. ([@koic][])
#12794: Fix false positives for Style/RedundantArgument when when single-quoted strings for cntrl character. ([@koic][])
#12797: Fix false positives for Style/RedundantLineContinuation when using line continuations with && or || operator in assignment. ([@koic][])
#12793: Fix false positives for Style/RedundantLineContinuation when multi-line continuations with operators. ([@koic][])
#12801: Fix incorrect autocorrect for Style/CollectionCompact when using delete_if. ([@koic][])
#12789: Make Style/RedundantPercentQ safe on multiline strings. ([@boardfish][])
#12802: Return global offenses for Naming/FileName and Naming/InclusiveLanguage for empty files. ([@earlopain][])
#12804: Return global offenses for Style/Copyright when the file is empty. ([@earlopain][])
Changes
#12813: Add rubocop-rspec_rails to suggested extensions and extension doc. ([@ydah][])
#12820: Add support more Capybara debugger entry points for Lint/Debugger. ([@ydah][])
#12676: Adjust offending range in LSP. ([@koic][])
#12815: Ignore Rakefile.rb in Naming/FileName in the default config. ([@artur-intech][])
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will merge this PR once CI passes on it, as requested by @mburumaxwell.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the rubocop group in /updater with 2 updates: rubocop and rubocop-sorbet.
Updates
rubocop
from 1.62.1 to 1.63.1Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
Commits
d148ee5
Cut 1.63.17c9d1d8
Update Changelogb562b74
Fix a false positive forLint/AssignmentInConditional
if assigning inside a...f7d1a36
UseSource::Range#join
instead ofSource::Range#with
'b0c508a
Try to useBundler
, if available0663a07
[Fix #12823] Fix uninitialized constant error952bf9e
Remove a uselsss return valuea4447ea
Reset the docs version55df9e2
Cut 1.63752d351
Update ChangelogUpdates
rubocop-sorbet
from 0.8.0 to 0.8.1Release notes
Sourced from rubocop-sorbet's releases.
Commits
479aaef
Bump version to v0.8.123b9d82
Merge pull request #221 from Shopify/dependabot/bundler/rake-13.2.11eb6517
Bump rake from 13.1.0 to 13.2.1d5f72a2
Merge pull request #218 from Shopify/centralize_ruby_version107aa2e
Remove TargetRubyVersion fromconfig/rbi.yml
c15a2d2
Update Rubocop to 1.62.1b43acc9
Centralize Ruby Version to.ruby-version
7c44e60
Merge pull request #212 from Shopify/dependabot/github_actions/actions/stale-9c5d0a19
Merge pull request #211 from Shopify/dependabot/github_actions/actions/checko...b6b33d7
Merge pull request #216 from Shopify/dependabot/bundler/rspec-3.13.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will merge this PR once CI passes on it, as requested by @mburumaxwell.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show