#11126: Have Lint/RedundantRequireStatement mark set as a redundant require in Ruby 3.2+. ([@drenmi][])
#11001: Add option to raise cop errors --raise-cop-error. ([@wildmaples][])
#10987: Opt-in cop compatibility in redundant directives. ([@tdeo][])
Bug fixes
#11125: Fix an error for Layout/SpaceInsideHashLiteralBraces when using method argument that both key and value are hash literals. ([@koic][])
#11132: Fix clobbering error on Lint/EmptyConditionalBody. ([@r7kamura][])
#11117: Fix a false positive for Style/BlockDelimiters when specifying EnforcedStyle: semantic and using a single line block with {} followed by a safe navigation method call. ([@koic][])
#11120: Fix an incorrect autocorrect for Lint/RedundantRequireStatement when using redundant require with modifier form. ([@koic][])
Changes
#11131: Check newline in empty reference bracket on Layout/SpaceInsideReferenceBrackets. ([@r7kamura][])
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 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 ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on rubocop to permit the latest version.
Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
6bdf42b
Cut 1.39a0ecf1b
Update Changelogd6345ac
Merge pull request #11177 from epaew/bugfix/style/object_thenb13c21a
Fix a false positive forStyle/ObjectThen
cop with TargetRubyVersion < 2.63f3c829
Fix a false positive forLint/DuplicateMethods
31720ce
[Fix #11150] Improve redundant_regex_escape.rb57e7c45
Merge pull request #11144 from si-lens/fix_auto_correction_bug_for_Style/Stri...45da59a
[Fix #11123 ] Fix auto correction bug for Style/StringLiterals7b265aa
[Fix #11173] Fix an incorrect autocorrect forStyle/CollectionCompact
dfb1ca5
Add autocorrect forLayout/LineContinuationLeadingSpace
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 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 ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)