#10307: Support Ruby 2.7's numbered parameter for Metrics/BlockLength, Metrics/ClassLength, Metrics/MethodLength, and Metrics/ModuleLength cops. (@koic)
#7671: Add cli option --show-docs-url to print out documentation url for given cops. (@HeroProtagonist)
#10308: Make Style/CollectionCompact aware of block pass argument. (@koic)
Bug fixes
#10285: Fix an incorrect autocorrect for Style/SoleNestedConditional when using nested if within if foo = bar. (@koic)
#10309: Fix a false positive for Bundler/DuplicatedGem when a gem conditionally duplicated within multi-statement bodies. (@fatkodima)
#10300: Fix an incorrect autocorrect for Layout/DotPosition and Style/RedundantSelf when auto-correction conflicts. (@koic)
#10284: Fix an incorrect autocorrect for Style/RedundantRegexpCharacterClass when regexp containing an unescaped #. (@koic)
#10265: Fix Style/IfInsideElse to be able to handle if-then nested inside an else without clobbering. (@dvandersluis)
#10297: Fix a false positive for Lint/DeprecatedOpenSSLConstant when building digest using an algorithm string and nested digest constants. (@koic)
#10282: Fix an incorrect autocorrect for Style/EmptyCaseCondition when using when ... then in case in a method call. (@koic)
#10273: Fix a false positive for InternalAffairs/UndefinedConfig to suppress a false wrong namespace warning. (@koic)
#10305: Fix an incorrect autocorrect for Style/HashConversion when using Hash[a || b]. (@koic)
#10264: Fix the following incorrect auto-correct for Style/MethodCallWithArgsParentheses with Layout/SpaceBeforeFirstArg. (@koic)
#10276: Fix an incorrect autocorrect for Style/RedundantInterpolation when using a method call without parentheses in string interpolation. (@koic)
#10307: Support Ruby 2.7's numbered parameter for Metrics/BlockLength, Metrics/ClassLength, Metrics/MethodLength, and Metrics/ModuleLength cops. ([@koic][])
#7671: Add cli option --show-docs-url to print out documentation url for given cops. ([@HeroProtagonist][])
#10308: Make Style/CollectionCompact aware of block pass argument. ([@koic][])
Bug fixes
#10285: Fix an incorrect autocorrect for Style/SoleNestedConditional when using nested if within if foo = bar. ([@koic][])
#10309: Fix a false positive for Bundler/DuplicatedGem when a gem conditionally duplicated within multi-statement bodies. ([@fatkodima][])
#10300: Fix an incorrect autocorrect for Layout/DotPosition and Style/RedundantSelf when auto-correction conflicts. ([@koic][])
#10284: Fix an incorrect autocorrect for Style/RedundantRegexpCharacterClass when regexp containing an unescaped #. ([@koic][])
#10265: Fix Style/IfInsideElse to be able to handle if-then nested inside an else without clobbering. ([@dvandersluis][])
#10297: Fix a false positive for Lint/DeprecatedOpenSSLConstant when building digest using an algorithm string and nested digest constants. ([@koic][])
#10282: Fix an incorrect autocorrect for Style/EmptyCaseCondition when using when ... then in case in a method call. ([@koic][])
#10273: Fix a false positive for InternalAffairs/UndefinedConfig to suppress a false wrong namespace warning. ([@koic][])
#10305: Fix an incorrect autocorrect for Style/HashConversion when using Hash[a || b]. ([@koic][])
#10264: Fix the following incorrect auto-correct for Style/MethodCallWithArgsParentheses with Layout/SpaceBeforeFirstArg. ([@koic][])
#10276: Fix an incorrect autocorrect for Style/RedundantInterpolation when using a method call without parentheses in string interpolation. ([@koic][])
You can trigger a rebase of this PR 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.23.0 to 1.24.0.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
Commits
477e3f7
Cut 1.2441eb827
Update Changelogf9995b3
Add newInternalAffairs/RedundantMethodDispatchNode
copc31b9d5
Add newNaming/BlockForwarding
coped5dc11
[Fix #10303] AddAllowedNumbers
option toStyle/NumericLiterals
bf10959
Merge pull request #10309 from fatkodima/duplicated_gem-multiple-statements396da49
Fix a false positive forBundler/DuplicatedGem
when a gem conditionally dup...d85a3c4
Support Ruby 3.1's hash value omission forStyle/HashSyntax
d745921
MakeStyle/CollectionCompact
aware of block pass1a1101e
Support Ruby 3.1's hash value omission forLayout/HashAlignment
You can trigger a rebase of this PR 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)