Bump rubocop from 1.56.4 to 1.57.0
Bumps rubocop from 1.56.4 to 1.57.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.57
New features
- #12227: Add new
Style/SingleLineDoEndBlock
cop. (@koic
)- #12246: Make
Lint/RedundantSafeNavigation
aware of constant receiver. (@koic
)- #12257: Make
Style/RedundantDoubleSplatHashBraces
aware ofmerge
methods. (@koic
)Bug fixes
- #12244: Fix a false negative for
Lint/Debugger
when using debugger method inside block. (@koic
)- #12231: Fix a false negative for
Metrics/ModuleLength
when defining a singleton class in a module. (@koic
)- #12249: Fix a false positive
Style/IdenticalConditionalBranches
whenif
..else
with identical leading lines and assign to condition value. (@koic
)- #12253: Fix
Lint/LiteralInInterpolation
to accept an empty string literal interpolated in words literal. (@knu
)- #12198: Fix an error for flip-flop with beginless or endless ranges. (
@koic
)- #12259: Fix an error for
Lint/MixedCaseRange
when using nested character class in regexp. (@koic
)- #12237: Fix an error for
Style/NestedTernaryOperator
when a ternary operator has a nested ternary operator within anif
. (@koic
)- #12228: Fix false negatives for
Style/MultilineBlockChain
when using multiline block chain with safe navigation operator. (@koic
)- #12247: Fix false negatives for
Style/RedundantParentheses
when using logical or comparison expressions with redundant parentheses. (@koic
)- #12226: Fix false positives for
Layout/MultilineMethodCallIndentation
when aligning methods in multiline block chain. (@koic
)- #12076: Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. (
@K-S-A
)Changes
- #12235: Enable auto parallel inspection when config file is specified. (
@aboutNisblee
)- #12234: Enhance
Style/FormatString
's autocorrection when using known conversion methods whose return value is not an array. (@koic
)- #12128: Make
Style/GuardClause
aware ofdefine_method
. (@koic
)- #12126: Make
Style/RedundantFilterChain
aware ofselect.present?
whenActiveSupportExtensionsEnabled
config istrue
. (@koic
)- #12250: Mark
Lint/RedundantRequireStatement
as unsafe autocorrect. (@koic
)- #12097: Mark unsafe autocorrect for
Style/ClassEqualityComparison
. (@koic
)- #12210: Mark
Style/RedundantFilterChain
as unsafe autocorrect. (@koic
)
Changelog
Sourced from rubocop's changelog.
1.57.0 (2023-10-11)
New features
- #12227: Add new
Style/SingleLineDoEndBlock
cop. ([@koic
][])- #12246: Make
Lint/RedundantSafeNavigation
aware of constant receiver. ([@koic
][])- #12257: Make
Style/RedundantDoubleSplatHashBraces
aware ofmerge
methods. ([@koic
][])Bug fixes
- #12244: Fix a false negative for
Lint/Debugger
when using debugger method inside block. ([@koic
][])- #12231: Fix a false negative for
Metrics/ModuleLength
when defining a singleton class in a module. ([@koic
][])- #12249: Fix a false positive
Style/IdenticalConditionalBranches
whenif
..else
with identical leading lines and assign to condition value. ([@koic
][])- #12253: Fix
Lint/LiteralInInterpolation
to accept an empty string literal interpolated in words literal. ([@knu
][])- #12198: Fix an error for flip-flop with beginless or endless ranges. ([
@koic
][])- #12259: Fix an error for
Lint/MixedCaseRange
when using nested character class in regexp. ([@koic
][])- #12237: Fix an error for
Style/NestedTernaryOperator
when a ternary operator has a nested ternary operator within anif
. ([@koic
][])- #12228: Fix false negatives for
Style/MultilineBlockChain
when using multiline block chain with safe navigation operator. ([@koic
][])- #12247: Fix false negatives for
Style/RedundantParentheses
when using logical or comparison expressions with redundant parentheses. ([@koic
][])- #12226: Fix false positives for
Layout/MultilineMethodCallIndentation
when aligning methods in multiline block chain. ([@koic
][])- #12076: Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. ([
@K-S-A
][])Changes
- #12235: Enable auto parallel inspection when config file is specified. ([
@aboutNisblee
][])- #12234: Enhance
Style/FormatString
's autocorrection when using known conversion methods whose return value is not an array. ([@koic
][])- #12128: Make
Style/GuardClause
aware ofdefine_method
. ([@koic
][])- #12126: Make
Style/RedundantFilterChain
aware ofselect.present?
whenActiveSupportExtensionsEnabled
config istrue
. ([@koic
][])- #12250: Mark
Lint/RedundantRequireStatement
as unsafe autocorrect. ([@koic
][])- #12097: Mark unsafe autocorrect for
Style/ClassEqualityComparison
. ([@koic
][])- #12210: Mark
Style/RedundantFilterChain
as unsafe autocorrect. ([@koic
][])
Commits
-
bfdb5ff
Cut 1.57 -
872d713
Update Changelog -
4025422
[Fix #12076] Explicitly require fileutils in RuboCop::Server::Cache -
b4e2bdd
[Fix #12259] Fix an error forLint/MixedCaseRange
-
986d047
Fix an error forStyle/RedundantDoubleSplatHashBraces
-
81ef51e
[Fix #12257] MakeStyle/RedundantDoubleSplatHashBraces
aware ofmerge
-
86c0e8d
[Fix #12249] Fix a false positiveStyle/IdenticalConditionalBranches
-
6a100e6
Merge pull request #12255 from ydah/followup-12176 -
fb34152
Remove redundant true/false returns -
7b05f2a
Merge pull request #12254 from joesiewert/empty-block-text - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
@dependabot-bot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts