draupnir
draupnir copied to clipboard
Bump rubocop from 1.31.2 to 1.71.0
Bumps rubocop from 1.31.2 to 1.71.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.71
New features
- #13735: Add new
Lint/ArrayLiteralInRegexpcop. (@dvandersluis)- #13507: Add new
Style/HashSlicecop. (@lovro-bikic)Bug fixes
- #13684: Fix a false positive for
Style/FrozenStringLiteralCommentwhen using the frozen string literal magic comment in Active Admin's arb files. (@koic)- #13372: Add
rubocop_cacheto the path given by--cache-rootwhen pruning cache. (@capncavedan)- #13257: Fix department disable/enable comments enabling the cop for the whole file even if that file is excluded by the cop. (
@earlopain)- #13704: Fix false positives for
Lint/OutOfRangeRegexpRefwhen matching withmatchusing safe navigation. (@koic)- #13720: Fix false positives for
Style/BlockDelimiterswhen using brace blocks as conditions underEnforcedStyle: semantic. (@koic)- #13688: Fix false negative on
Style/RedundantLineContinuationwhen the continuation is preceded by an interpolated string. (@dvandersluis)- #13677: Fix false negative on
Style/RedundantLineContinuationwhen the continuation is followed by a percent array. (@dvandersluis)- #13692: Fix false positive in
Style/RedundantLineContinuationwhen the ruby code ends with a commented continuation. (@dvandersluis)- #13675: Fix invalid autocorrect for
Style/ArrayFirstLastwhen calling.[]or&.[]with 0 or -1. (@dvandersluis)- #13685: Fix syntax error introduced by
Lint/SafeNavigationChainwhen adding safe navigation to an operator call inside a hash. (@dvandersluis)- #13725: Fix an incorrect autocorrect for
Style/IfUnlessModifierwhen using omitted hash values in an assignment. (@elliottt)- #13667: Maintain precedence in autocorrect for
Style/SoleNestedConditional. (@tejasbubane)- #13679: Fix false positive for
Style/RedundantLineContinuationwhen calling methods with fully qualified constants. (@earlopain)- #13728: Fix a RuboCop error on provided glob pattern which matches directory. ([
@viralpraxis][])- #13693: Fix
Style/ConditionalAssignmentcop error onunlesswithoutelseandassign_inside_conditionenforced style. ([@viralpraxis][])- #13669: Fix
Style/FrozenStringLiteralCommentcop error on unnormalized magic comment andneverenforced style. ([@viralpraxis][])- #13696: Update
Metrics/CollectionLiteralLengthto only register for[]when called onSet. (@dvandersluis)Changes
- #13709: Add support for safe navigation to
Lint/FloatComparison. (@dvandersluis)- #13711: Add support for safe navigation to
Layout/MultilineMethodCallBraceLayout. (@dvandersluis)- #13712: Add support for safe navigation to
Layout/MultilineMethodArgumentLineBreaks. (@dvandersluis)- #13714: Add support for safe navigation to
Security/CompoundHash. (@dvandersluis)- #13674: Add support for safe navigation to
Style/BlockDelimiters. (@dvandersluis)- #13673: Add support for safe navigation to
Style/CollectionMethods. (@dvandersluis)- #13672: Add support for safe navigation to
Style/MapToSet. (@dvandersluis)- #13671: Add support for safe navigation to
Style/MethodCallWithoutArgsParentheses. (@dvandersluis)- #13701: Add support for safe navigation to
Lint/NumericOperationWithConstantResult. (@dvandersluis)- #13700: Add support for safe navigation to
Lint/RedundantStringCoercion. (@dvandersluis)- #13698: Add support for safe navigation to
Lint/UselessNumericOperation. (@dvandersluis)- #13686: Add wildcard support to
--show-cops. ([@kyanagi][])- #13724: Make
Style/RedundantParenthesesaware of parenthesized assignment. (@koic)- #13732: Update
Style/RedundantLineContinuationto handle required continuations followingsuper. (@dvandersluis)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.71.0 (2025-01-22)
New features
- #13735: Add new
Lint/ArrayLiteralInRegexpcop. ([@dvandersluis][])- #13507: Add new
Style/HashSlicecop. ([@lovro-bikic][])Bug fixes
- #13684: Fix a false positive for
Style/FrozenStringLiteralCommentwhen using the frozen string literal magic comment in Active Admin's arb files. ([@koic][])- #13372: Add
rubocop_cacheto the path given by--cache-rootwhen pruning cache. ([@capncavedan][])- #13257: Fix department disable/enable comments enabling the cop for the whole file even if that file is excluded by the cop. ([
@earlopain][])- #13704: Fix false positives for
Lint/OutOfRangeRegexpRefwhen matching withmatchusing safe navigation. ([@koic][])- #13720: Fix false positives for
Style/BlockDelimiterswhen using brace blocks as conditions underEnforcedStyle: semantic. ([@koic][])- #13688: Fix false negative on
Style/RedundantLineContinuationwhen the continuation is preceded by an interpolated string. ([@dvandersluis][])- #13677: Fix false negative on
Style/RedundantLineContinuationwhen the continuation is followed by a percent array. ([@dvandersluis][])- #13692: Fix false positive in
Style/RedundantLineContinuationwhen the ruby code ends with a commented continuation. ([@dvandersluis][])- #13675: Fix invalid autocorrect for
Style/ArrayFirstLastwhen calling.[]or&.[]with 0 or -1. ([@dvandersluis][])- #13685: Fix syntax error introduced by
Lint/SafeNavigationChainwhen adding safe navigation to an operator call inside a hash. ([@dvandersluis][])- #13725: Fix an incorrect autocorrect for
Style/IfUnlessModifierwhen using omitted hash values in an assignment. ([@elliottt][])- #13667: Maintain precedence in autocorrect for
Style/SoleNestedConditional. ([@tejasbubane][])- #13679: Fix false positive for
Style/RedundantLineContinuationwhen calling methods with fully qualified constants. ([@earlopain][])- #13728: Fix a RuboCop error on provided glob pattern which matches directory. ([
@viralpraxis][])- #13693: Fix
Style/ConditionalAssignmentcop error onunlesswithoutelseandassign_inside_conditionenforced style. ([@viralpraxis][])- #13669: Fix
Style/FrozenStringLiteralCommentcop error on unnormalized magic comment andneverenforced style. ([@viralpraxis][])- #13696: Update
Metrics/CollectionLiteralLengthto only register for[]when called onSet. ([@dvandersluis][])Changes
- #13709: Add support for safe navigation to
Lint/FloatComparison. ([@dvandersluis][])- #13711: Add support for safe navigation to
Layout/MultilineMethodCallBraceLayout. ([@dvandersluis][])- #13712: Add support for safe navigation to
Layout/MultilineMethodArgumentLineBreaks. ([@dvandersluis][])- #13714: Add support for safe navigation to
Security/CompoundHash. ([@dvandersluis][])- #13674: Add support for safe navigation to
Style/BlockDelimiters. ([@dvandersluis][])- #13673: Add support for safe navigation to
Style/CollectionMethods. ([@dvandersluis][])- #13672: Add support for safe navigation to
Style/MapToSet. ([@dvandersluis][])- #13671: Add support for safe navigation to
Style/MethodCallWithoutArgsParentheses. ([@dvandersluis][])- #13701: Add support for safe navigation to
Lint/NumericOperationWithConstantResult. ([@dvandersluis][])- #13700: Add support for safe navigation to
Lint/RedundantStringCoercion. ([@dvandersluis][])- #13698: Add support for safe navigation to
Lint/UselessNumericOperation. ([@dvandersluis][])- #13686: Add wildcard support to
--show-cops. ([@kyanagi][])- #13724: Make
Style/RedundantParenthesesaware of parenthesized assignment. ([@koic][])- #13732: Update
Style/RedundantLineContinuationto handle required continuations followingsuper. ([@dvandersluis][])1.70.0 (2025-01-10)
New features
- #13474: Add new
Style/ItAssignmentcop to detect local assignments toitinside blocks. ([@dvandersluis][])- #11013: Add new
Lint/SharedMutableDefaultcop to alert on mutable Hash defaults. ([@corsonknowles][])
... (truncated)
Commits
6b13abbCut 1.71c923a84Update Changelog83958cbRename c_send to csend for consistency1f25c2cAdd newInternalAffairs/OnSendWithoutOnCSendcop95f45cc[Fix #13323] Add newLint/ArrayLiteralInRegexpcop30c4e20UpdateLint/LiteralInInterpolationto not handle array literals inside a re...7edf6d7[Doc] Move rubocop-i18n from puppetlabs to rubocop orgc746991Merge pull request #13737 from dvandersluis/fix-jruby-cib3c8061Fix jruby CI error617fd40Merge pull request #13734 from dvandersluis/fix-expect-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)