Bump rubocop from 1.23.0 to 1.24.0
Bumps rubocop from 1.23.0 to 1.24.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.24
New features
- #10279: Support Ruby 3.1's anonymous block forwarding syntax. (
@koic
)- #10295: Support Ruby 3.1's hash value omission syntax for
Layout/HashAlignment
. (@koic
)- #10303: Add
AllowedNumbers
option toStyle/NumericLiterals
. (@koic
)- #10290: Add new
Naming/BlockForwarding
cop. (@koic
)- #10289: Add
EnforcedShorthandSyntax
option toStyle/HashSyntax
cop to support Ruby 3.1's hash value omission syntax by default. (@koic
)- #10257: Add new
Style/MapToHash
cop. (@dvandersluis
)- #10261: Add new
Style/FileRead
cop. (@leoarnold
)- #10291: Support Ruby 3.1's hash value omission syntax for
Layout/SpaceAfterColon
. (@koic
)- #10260: Add new
Style/FileWrite
cop. (@leoarnold
)- #10307: Support Ruby 2.7's numbered parameter for
Metrics/BlockLength
,Metrics/ClassLength
,Metrics/MethodLength
, andMetrics/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 nestedif
withinif 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
andStyle/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 handleif-then
nested inside anelse
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 usingwhen ... then
incase
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 usingHash[a || b]
. (@koic
)- #10264: Fix the following incorrect auto-correct for
Style/MethodCallWithArgsParentheses
withLayout/SpaceBeforeFirstArg
. (@koic
)- #10276: Fix an incorrect autocorrect for
Style/RedundantInterpolation
when using a method call without parentheses in string interpolation. (@koic
)Changes
- #10253: Deprecate
RuboCop::Cop::EnforceSuperclass
module. (@koic
)- #10248: Make
Lint/DeprecatedClassMethods
aware ofENV.freeze
. (@koic
)- #10269: Mark
Lint/IncompatibleIoSelectWithFiberScheduler
as unsafe auto-correction. (@koic
)- #8586: Add configuration parameter
AllowForAlignment
inLayout/CommentIndentation
. (@jonas054
)
Changelog
Sourced from rubocop's changelog.
1.24.0 (2021-12-23)
New features
- #10279: Support Ruby 3.1's anonymous block forwarding syntax. ([
@koic
][])- #10295: Support Ruby 3.1's hash value omission syntax for
Layout/HashAlignment
. ([@koic
][])- #10303: Add
AllowedNumbers
option toStyle/NumericLiterals
. ([@koic
][])- #10290: Add new
Naming/BlockForwarding
cop. ([@koic
][])- #10289: Add
EnforcedShorthandSyntax
option toStyle/HashSyntax
cop to support Ruby 3.1's hash value omission syntax by default. ([@koic
][])- #10257: Add new
Style/MapToHash
cop. ([@dvandersluis
][])- #10261: Add new
Style/FileRead
cop. ([@leoarnold
][])- #10291: Support Ruby 3.1's hash value omission syntax for
Layout/SpaceAfterColon
. ([@koic
][])- #10260: Add new
Style/FileWrite
cop. ([@leoarnold
][])- #10307: Support Ruby 2.7's numbered parameter for
Metrics/BlockLength
,Metrics/ClassLength
,Metrics/MethodLength
, andMetrics/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 nestedif
withinif 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
andStyle/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 handleif-then
nested inside anelse
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 usingwhen ... then
incase
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 usingHash[a || b]
. ([@koic
][])- #10264: Fix the following incorrect auto-correct for
Style/MethodCallWithArgsParentheses
withLayout/SpaceBeforeFirstArg
. ([@koic
][])- #10276: Fix an incorrect autocorrect for
Style/RedundantInterpolation
when using a method call without parentheses in string interpolation. ([@koic
][])Changes
- #10253: Deprecate
RuboCop::Cop::EnforceSuperclass
module. ([@koic
][])- #10248: Make
Lint/DeprecatedClassMethods
aware ofENV.freeze
. ([@koic
][])- #10269: Mark
Lint/IncompatibleIoSelectWithFiberScheduler
as unsafe auto-correction. ([@koic
][])- #8586: Add configuration parameter
AllowForAlignment
inLayout/CommentIndentation
. ([@jonas054
][])
Commits
-
477e3f7
Cut 1.24 -
41eb827
Update Changelog -
f9995b3
Add newInternalAffairs/RedundantMethodDispatchNode
cop -
c31b9d5
Add newNaming/BlockForwarding
cop -
ed5dc11
[Fix #10303] AddAllowedNumbers
option toStyle/NumericLiterals
-
bf10959
Merge pull request #10309 from fatkodima/duplicated_gem-multiple-statements -
396da49
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 pass -
1a1101e
Support Ruby 3.1's hash value omission forLayout/HashAlignment
- Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
@dependabot-bot rebase
will rebase this MR -
@dependabot-bot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts