#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][])
1.37.1 (2022-10-24)
Bug fixes
#11102: Fix an error for Style/AccessModifierDeclarations when using access modifier in a block. ([@koic][])
#11107: Fix a false positive for Style/OperatorMethodCall when a constant receiver uses an operator method. ([@koic][])
#11104: Fix an error for Style/CollectionCompact when using reject method and receiver is a variable. ([@koic][])
#11114: Fix an error for Style/OperatorMethodCall when using obj.!. ([@koic][])
#11088: Fix an error when specifying SuggestExtensions: true. ([@koic][])
#11089: Fix an error for Style/RedundantStringEscape when using character literals (e.g. ?a). ([@ydah][])
#11098: Fix false positive for Style/RedundantStringEscape. ([@tdeo][])
#11095: Fix an error for Style/RedundantStringEscape cop when using ?\n string character literal. ([@koic][])
1.37.0 (2022-10-20)
New features
#11043: Add new Lint/DuplicateMagicComment cop. ([@koic][])
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.
Changelog
Sourced from rubocop's changelog.
... (truncated)
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)