Bump rubocop from 1.46.0 to 1.47.0
Bumps rubocop from 1.46.0 to 1.47.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.47
New features
- #11475: Add autocorrect for hash in
Lint/LiteralInInterpolation
. (@KessaPassa
)- #11584: Add
Metrics/CollectionLiteralLength
cop. (@sambostock
)Bug fixes
- #11615: Fix a false negative for
Lint/MissingSuper
when nosuper
call withClass.new
block. (@koic
)- #11615: Fix a false negative for
Lint/MissingSuper
when usingClass.new
without parent class argument. (@koic
)- #11040: Fix a false positive for
Style/IfUnlessModifier
whendefined?
's argument value is undefined. (@koic
)- #11607: Fix a false positive for
Style/RedundantRegexpEscape
when an escaped hyphen follows after an escaped opening square bracket within a character class. (@SparLaimor
)- #11626: Fix a false positive for
Style/ZeroLengthPredicate
when usingFile.new(path).size.zero?
. (@koic
)- #11620: Fix an error for
Lint/ConstantResolution
when using__ENCODING__
. (@koic
)- #11625: Fix an error for
Lint/EmptyConditionalBody
when missingif
body and using method call for return value. (@koic
)- #11631: Fix an incorrect autocorrect for
Style/ArgumentsForwarding
when using arguments forwarding for.()
call. (@koic
)- #11621: Fix an incorrect autocorrect for
Layout/ClassStructure
using heredoc inside method. (@fatkodima
)- #3591: Handle modifier
while
anduntil
expressions inLint/UselessAssignment
. (@bfad
)- #11202: Fixed usage of
--only
flag with--auto-gen-config
. (@istvanfazakas
)Changes
Changelog
Sourced from rubocop's changelog.
1.47.0 (2023-03-01)
New features
- #11475: Add autocorrect for hash in
Lint/LiteralInInterpolation
. ([@KessaPassa
][])- #11584: Add
Metrics/CollectionLiteralLength
cop. ([@sambostock
][])Bug fixes
- #11615: Fix a false negative for
Lint/MissingSuper
when nosuper
call withClass.new
block. ([@koic
][])- #11615: Fix a false negative for
Lint/MissingSuper
when usingClass.new
without parent class argument. ([@koic
][])- #11040: Fix a false positive for
Style/IfUnlessModifier
whendefined?
's argument value is undefined. ([@koic
][])- #11607: Fix a false positive for
Style/RedundantRegexpEscape
when an escaped hyphen follows after an escaped opening square bracket within a character class. ([@SparLaimor
][])- #11626: Fix a false positive for
Style/ZeroLengthPredicate
when usingFile.new(path).size.zero?
. ([@koic
][])- #11620: Fix an error for
Lint/ConstantResolution
when using__ENCODING__
. ([@koic
][])- #11625: Fix an error for
Lint/EmptyConditionalBody
when missingif
body and using method call for return value. ([@koic
][])- #11631: Fix an incorrect autocorrect for
Style/ArgumentsForwarding
when using arguments forwarding for.()
call. ([@koic
][])- #11621: Fix an incorrect autocorrect for
Layout/ClassStructure
using heredoc inside method. ([@fatkodima
][])- #3591: Handle modifier
while
anduntil
expressions inLint/UselessAssignment
. ([@bfad
][])- #11202: Fixed usage of
--only
flag with--auto-gen-config
. ([@istvanfazakas
][])Changes
Commits
-
94f743d
Cut 1.47 -
9af5999
Update Changelog -
528f397
Add newInternalAffairs/RedundantSourceRange
cop -
eec53fa
[Fix #11202] Fix--only
flag usage with--auto-gen-config
and `Layout/Lin... -
d173f99
[Fix #11040] Fix a false positive forStyle/IfUnlessModifier
-
ff7c004
Sider Review has been terminated -
c651ffa
[Fix #11634] Tweak autocorrection forStyle/ConcatArrayLiterals
-
cde4bc2
#11076 Add autocorrect for hash inLint/LiteralInInterpolation
(#11475) -
999ac27
[Fix #11631] Fix an incorrect autocorrect forStyle/ArgumentsForwarding
-
6ba66be
Add newInternalAffairs/LocationExpression
cop - 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