Bump rubocop from 1.52.1 to 1.53.0
Bumps rubocop from 1.52.1 to 1.53.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.53
New features
- #11561: Add new
Lint/MixedCaseRange
cop. (@rwstauner
)- #11565: Add new
Lint/RedundantRegexpQuantifiers
cop. (@jaynetics
)- #11925: Add new
Style/RedundantCurrentDirectoryInPath
cop. (@koic
)- #11595: Add new
Style/RedundantRegexpArgument
cop. (@koic
)- #11967: Add new
Style/ReturnNilInPredicateMethodDefinition
cop. (@koic
)- #11745: Add new
Style/YAMLFileRead
cop. (@koic
)- #11926: Support built-in LSP server. (
@koic
)Bug fixes
- #11953: Fix a false negative for
Lint/DuplicateHashKey
when there is a duplicated constant key in the hash literal. (@koic
)- #11945: Fix a false negative for
Style/RedundantSelfAssignmentBranch
when using method chaining or arguments in ternary branch. (@koic
)- #11949: Fix a false positive for
Layout/RedundantLineBreak
when using a line broken string. (@koic
)- #11931: Fix a false positive for
Lint/RedundantRequireStatement
when usingPP.pp
. (@koic
)- #11946: Fix an error for
Lint/NumberConversion
when using multiple number conversion methods. (@koic
)- #11972: Fix an error for
Lint/Void
whenCheckForMethodsWithNoSideEffects: true
and using a method definition. (@koic
)- #11958: Fix error for
Style/IdenticalConditionalBranches
when using empty parentheses in theif
branch. (@koic
)- #11962: Fix an error for
Style/RedundantStringEscape
when an escaped double quote precedes interpolation in a symbol literal. (@koic
)- #11947: Fix an error for
Style/ConditionalAssignment
with an assignment that usesif
branch bodies, which include a block. (@koic
)- #11959: Fix false negatives for
Layout/EmptyLinesAroundExceptionHandlingKeywords
when using Ruby 2.5'srescue
inside block and Ruby 2.7's numbered block. (@koic
)- #10902: Fix an error for
Style/RedundantRegexpEscape
string with invalid byte sequence in UTF-8. (@ydah
)- #11562: Fixed escaped octal handling and detection in
Lint/DuplicateRegexpCharacterClassElement
. (@rwstauner
)Changes
Changelog
Sourced from rubocop's changelog.
1.53.0 (2023-06-23)
New features
- #11561: Add new
Lint/MixedCaseRange
cop. ([@rwstauner
][])- #11565: Add new
Lint/RedundantRegexpQuantifiers
cop. ([@jaynetics
][])- #11925: Add new
Style/RedundantCurrentDirectoryInPath
cop. ([@koic
][])- #11595: Add new
Style/RedundantRegexpArgument
cop. ([@koic
][])- #11967: Add new
Style/ReturnNilInPredicateMethodDefinition
cop. ([@koic
][])- #11745: Add new
Style/YAMLFileRead
cop. ([@koic
][])- #11926: Support built-in LSP server. ([
@koic
][])Bug fixes
- #11953: Fix a false negative for
Lint/DuplicateHashKey
when there is a duplicated constant key in the hash literal. ([@koic
][])- #11945: Fix a false negative for
Style/RedundantSelfAssignmentBranch
when using method chaining or arguments in ternary branch. ([@koic
][])- #11949: Fix a false positive for
Layout/RedundantLineBreak
when using a line broken string. ([@koic
][])- #11931: Fix a false positive for
Lint/RedundantRequireStatement
when usingPP.pp
. ([@koic
][])- #11946: Fix an error for
Lint/NumberConversion
when using multiple number conversion methods. ([@koic
][])- #11972: Fix an error for
Lint/Void
whenCheckForMethodsWithNoSideEffects: true
and using a method definition. ([@koic
][])- #11958: Fix error for
Style/IdenticalConditionalBranches
when using empty parentheses in theif
branch. ([@koic
][])- #11962: Fix an error for
Style/RedundantStringEscape
when an escaped double quote precedes interpolation in a symbol literal. ([@koic
][])- #11947: Fix an error for
Style/ConditionalAssignment
with an assignment that usesif
branch bodies, which include a block. ([@koic
][])- #11959: Fix false negatives for
Layout/EmptyLinesAroundExceptionHandlingKeywords
when using Ruby 2.5'srescue
inside block and Ruby 2.7's numbered block. ([@koic
][])- #10902: Fix an error for
Style/RedundantRegexpEscape
string with invalid byte sequence in UTF-8. ([@ydah
][])- #11562: Fixed escaped octal handling and detection in
Lint/DuplicateRegexpCharacterClassElement
. ([@rwstauner
][])Changes
Commits
-
80485d2
Cut 1.53 -
f6bac40
Update Changelog -
f23bd40
[Fix #11972] Fix an error forLint/Void
-
04ea207
Fix a false positive forLint/RedundantRequireStatement
-
273f9bd
Revert "Change include paths to be relative to working directory rather than ... -
1ed69f8
Add newStyle/ReturnNilInPredicateMethodDefinition
cop -
0c5c4fc
Remove a useless style guide URL -
766e208
Mark Layout/ClassStructure as unsafe to autocorrect -
1e2d84a
Merge pull request #11940 from iMacTia/fix/lint-missing-super-configurable-st... -
09d0ff5
[Fix #8506] Add AllowedParentClasses config to Lint/MissingSuper. - 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. Deprecated, use GitLab's native /rebase instead -
@dependabot-bot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts