vmfloaty
vmfloaty copied to clipboard
Bump rubocop from 1.66.1 to 1.68.0
Bumps rubocop from 1.66.1 to 1.68.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.68
New features
- #13050: Add new
Style/BitwisePredicatecop. (@koic)- #12140: Add new
Style/CombinableDefinedcop. (@dvandersluis)- #12988: Add new
Style/AmbiguousEndlessMethodDefinitioncop. (@dvandersluis)- #11514: Add new
Lint/UnescapedBracketInRegexpcop. (@dvandersluis)- #13360: Add
AllowSteepAnnotationconfig option toLayout/LeadingCommentSpace. (@tk0miya)- #13146: Add new
IgnoreDuplicateElseBranchoption toLint/DuplicateBranch. (@fatkodima)- #13171: Add new
Style/SafeNavigationChainLengthcop. (@fatkodima)- #13252: Add new
Style/KeywordArgumentsMergingcop. (@fatkodima)Bug fixes
- #13401: Fix a false negative for
Style/RedundantLineContinuationwhen there is a line continuation at the EOF. (@koic)- #13368: Fix an incorrect autocorrect for
Naming/BlockForwardingwithStyle/ExplicitBlockArgument. (@koic)- #13391: Fix deserialization of unknown encoding offenses. (
@earlopain)- #13348: Ensure
Style/BlockDelimitersautocorrection does not move other code between the block and comment. (@dvandersluis)- #13382: Fix an error during error handling for custom ruby extractors when the extractor is a class. (
@earlopain)- #13309: Fix a false negative for
Lint/UselessAssignmentcop when there is a useless assignment followed by a block. (@pCosta99)- #13255: Fix false negatives for
Style/MapIntoArraywhen using non-splatted arguments. (@vlad-pisanov)- #13356: Fix a false positive for
Layout/SpaceBeforeBracketswhen there is a dot before[]=. (@earlopain)- #13365: Fix false positives for
Lint/SafeNavigationConsistencywhen using safe navigation on the LHS with operator method on the RHS of&&. (@koic)- #13390: Fix false positives for
Style/GuardClausewhen using a local variable assigned in a conditional expression in a branch. (@koic)- #13337: Fix false positives for
Style/RedundantLineContinuationwhen required line continuations for&&is used with an assignment after a line break. (@koic)- #13387: Fix false positives in
Style/RedundantParentheseswhen parentheses are used around method chain withdo...endblock in keyword argument. (@koic)- #13341: Fix false positives for
Lint/SafeNavigationChainwhen a safe navigation operator is used with a method call as the RHS operand of&&for the same receiver. (@koic)- #13324: Fix
--disable-uncorrectableto not insert a comment inside a string continuation. (@dvandersluis)- #13364: Fix incorrect autocorrect with
Lint/UselessAssignmenta multiple assignment orforcontains an inner assignment. (@dvandersluis)- #13353: Fix an incorrect autocorrect for
Style/BlockDelimiterswhenEnforcedStyle: semanticis set and used withLayout/SpaceInsideBlockBraces. (@koic)- #13361: Fix false positives for
Style/RedundantInterpolationUnfreezeandStyle/RedundantFreezewhen strings contain interpolated global, instance, and class variables. (@vlad-pisanov)- #13343: Prevent
Layout/LineLengthfrom breaking up a method with arguments chained onto a heredoc delimiter. (@dvandersluis)- #13374: Return exit code 0 with
--display-only-correctableand--display-only-safe-correctablewhen no offenses are displayed. (@dvandersluis)- #13193: Fix false positive in
Style/MultipleComparisonwhenComparisonsThresholdexceeds 2. (@fatkodima,@vlad-pisanov)- #13325: Fix an incorrect autocorrect for
Lint/NonAtomicFileOperationwhen using a postfixunlessfor file existence checks before creating a file, in cases withDir.mkdir. ([@kotaro0522][])- #13397: Update
PercentLiteralCorrectorto be able to write pairs of delimiters without excessive escaping. (@dvandersluis)- #13336: Update
Style/SafeNavigationto not autocorrect if the RHS of anandnode is anornode. (@dvandersluis)- #13378: When removing parens in
Style/TernaryParentheseswith asendnode condition, ensure its arguments are parenthesized. (@dvandersluis)Changes
- #13347: When running
rubocop -V, show the analysis Ruby version of the current directory. (@earlopain)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.68.0 (2024-10-31)
New features
- #13050: Add new
Style/BitwisePredicatecop. ([@koic][])- #12140: Add new
Style/CombinableDefinedcop. ([@dvandersluis][])- #12988: Add new
Style/AmbiguousEndlessMethodDefinitioncop. ([@dvandersluis][])- #11514: Add new
Lint/UnescapedBracketInRegexpcop. ([@dvandersluis][])- #13360: Add
AllowSteepAnnotationconfig option toLayout/LeadingCommentSpace. ([@tk0miya][])- #13146: Add new
IgnoreDuplicateElseBranchoption toLint/DuplicateBranch. ([@fatkodima][])- #13171: Add new
Style/SafeNavigationChainLengthcop. ([@fatkodima][])- #13252: Add new
Style/KeywordArgumentsMergingcop. ([@fatkodima][])Bug fixes
- #13401: Fix a false negative for
Style/RedundantLineContinuationwhen there is a line continuation at the EOF. ([@koic][])- #13368: Fix an incorrect autocorrect for
Naming/BlockForwardingwithStyle/ExplicitBlockArgument. ([@koic][])- #13391: Fix deserialization of unknown encoding offenses. ([
@earlopain][])- #13348: Ensure
Style/BlockDelimitersautocorrection does not move other code between the block and comment. ([@dvandersluis][])- #13382: Fix an error during error handling for custom ruby extractors when the extractor is a class. ([
@earlopain][])- #13309: Fix a false negative for
Lint/UselessAssignmentcop when there is a useless assignment followed by a block. ([@pCosta99][])- #13255: Fix false negatives for
Style/MapIntoArraywhen using non-splatted arguments. ([@vlad-pisanov][])- #13356: Fix a false positive for
Layout/SpaceBeforeBracketswhen there is a dot before[]=. ([@earlopain][])- #13365: Fix false positives for
Lint/SafeNavigationConsistencywhen using safe navigation on the LHS with operator method on the RHS of&&. ([@koic][])- #13390: Fix false positives for
Style/GuardClausewhen using a local variable assigned in a conditional expression in a branch. ([@koic][])- #13337: Fix false positives for
Style/RedundantLineContinuationwhen required line continuations for&&is used with an assignment after a line break. ([@koic][])- #13387: Fix false positives in
Style/RedundantParentheseswhen parentheses are used around method chain withdo...endblock in keyword argument. ([@koic][])- #13341: Fix false positives for
Lint/SafeNavigationChainwhen a safe navigation operator is used with a method call as the RHS operand of&&for the same receiver. ([@koic][])- #13324: Fix
--disable-uncorrectableto not insert a comment inside a string continuation. ([@dvandersluis][])- #13364: Fix incorrect autocorrect with
Lint/UselessAssignmenta multiple assignment orforcontains an inner assignment. ([@dvandersluis][])- #13353: Fix an incorrect autocorrect for
Style/BlockDelimiterswhenEnforcedStyle: semanticis set and used withLayout/SpaceInsideBlockBraces. ([@koic][])- #13361: Fix false positives for
Style/RedundantInterpolationUnfreezeandStyle/RedundantFreezewhen strings contain interpolated global, instance, and class variables. ([@vlad-pisanov][])- #13343: Prevent
Layout/LineLengthfrom breaking up a method with arguments chained onto a heredoc delimiter. ([@dvandersluis][])- #13374: Return exit code 0 with
--display-only-correctableand--display-only-safe-correctablewhen no offenses are displayed. ([@dvandersluis][])- #13193: Fix false positive in
Style/MultipleComparisonwhenComparisonsThresholdexceeds 2. ([@fatkodima][],[@vlad-pisanov][])- #13325: Fix an incorrect autocorrect for
Lint/NonAtomicFileOperationwhen using a postfixunlessfor file existence checks before creating a file, in cases withDir.mkdir. ([@kotaro0522][])- #13397: Update
PercentLiteralCorrectorto be able to write pairs of delimiters without excessive escaping. ([@dvandersluis][])- #13336: Update
Style/SafeNavigationto not autocorrect if the RHS of anandnode is anornode. ([@dvandersluis][])- #13378: When removing parens in
Style/TernaryParentheseswith asendnode condition, ensure its arguments are parenthesized. ([@dvandersluis][])Changes
- #13347: When running
rubocop -V, show the analysis Ruby version of the current directory. ([@earlopain][])1.67.0 (2024-10-15)
New features
... (truncated)
Commits
7d35ef7Cut 1.683033debUpdate Changelog37e9e5f[Fix #12140] Add newStyle/CombinableDefinedcop.f8aa27fFix a false negative forStyle/RedundantLineContinuationd033a5eMerge pull request #13400 from Earlopain/offense-cop-name-docsfaaa349Fix docs forOffense.cop_name85f9405Fix deserialization of unknown encoding offensesd499d80[Fix #13387] Fix false positives forStyle/RedundantParentheses3e855b0Merge pull request #13399 from dvandersluis/fix-and-offense-typo1f58513Fix typosand offenseinstead ofan offense.- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)