#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)
#11045: Update the Style/ModuleFunction documentation to suggest class << self as an alternative. (@rdeckard)
#11006: Allow multiple elsif for Style/IfWithBooleanLiteralBranches. (@koic)
#11113: Report the count of files in the Worst and the Offense Count formatters. (@hosamaly)
#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][])
#11045: Update the Style/ModuleFunction documentation to suggest class << self as an alternative. ([@rdeckard][])
#11006: Allow multiple elsif for Style/IfWithBooleanLiteralBranches. ([@koic][])
#11113: Report the count of files in the Worst and the Offense Count formatters. ([@hosamaly][])
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)
Bumps rubocop from 1.37.1 to 1.38.0.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
Commits
52a56f0
Cut 1.38c87ed48
Update Changelogd984482
Set whitespace-line-column to 100 in .dir-locals.ele423552
Fix the CI build360f043
Improve Style/IfWithBooleanLiteralBranches's documentation6e910eb
[Fix #11006] Allow multipleelsif
forStyle/IfWithBooleanLiteralBranches
c4b2bb1
Use broken vertical bar as adoc table separator41a8249
Tweak wording72f8c69
Update theStyle/ModuleFunction
documentation to suggestclass << self
as...06cacae
[Fix #11120] Fix an incorrect autocorrect forLint/RedundantRequireStatement
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)