slowwly
slowwly copied to clipboard
Bump rubocop from 0.48.0 to 1.12.1
Bumps rubocop from 0.48.0 to 1.12.1.
Release notes
Sourced from rubocop's releases.
RuboCop 1.12.1
Bug fixes
- #9649: Fix when highlights contain multibyte characters. (
@osyo-manga)- #9646: Fix an incorrect auto-correct for
EnforcedStyle: require_parenthesesofStyle/MethodCallWithArgsParentheseswithEnforcedStyle: conditionalsofStyle/AndOr. (@koic)- #9608: Fix a false positive for
Layout/EmptyLineAfterGuardClausewhen using guard clause is afterrubocop:enablecomment. (@koic)- #9637: Allow parentheses for forwarded args in
Style/MethodCallWithArgsParentheses'somit_parenthesesstyle to avoid endless range ambiguity. (@gsamokovarov)- #9641: Fix
Layout/MultilineMethodCallIndentationtriggering on method calls that look like operators. (@dvandersluis)- #9638: Fix an error for
Layout/LineLengthwhen over limit at right hand side of multiple assignment. (@koic)- #9639: Fix
Style/RedundantBeginremoving comments on assignment statement correction. (@marcotc)- #9671: Fix an incorrect auto-correct for
Lint/AmbiguousOperatorwithStyle/MethodCallWithArgsParentheses. (@koic)- #9645: Fix an incorrect auto-correct for
Style/SingleLineMethodswhen using single line class method definition. (@koic)- #9644: Fix an error and an incorrect auto-correct for
Style/MultilineMethodSignaturewhen line break after opening parenthesis. (@koic)- #9672: Fix an incorrect auto-correct for
Style/HashConversionwhen using multi-argumentHash[]as a method argument. (@koic)RuboCop 1.12
New features
- #9615: Add new
Style/StringCharscop. (@koic)- #9629: Add
AllowParenthesesInStringInterpolationconfiguration toStyle/MethodCallWithArgsParenthesesto allow parenthesized calls in string interpolation. (@gsamokovarov)- #9219: Allow excluding some constants from Style/Documentation. ([
@fsateler][])- Add
AllowNiloption forLint/SuppressedExceptionto allow/disallowrescue nil. ([@corroded][])Bug fixes
- #9560: Fix an error for
Lint/ClassMethodsDefinitionswhen defining class methods withclass << selfwith comment only body. (@koic)- #9551: Fix a false positive for
Style/UnlessLogicalOperatorswhen using||operator and invoked method name includes "or" in the conditional branch. (@koic)- #9620: Allow parentheses in operator methods calls for
Style/MethodCallWithArgsParenthesesEnforcedStyle: omit_parentheses. (@gsamokovarov)- #9622: Fixed
Style/BisectedAttrAccessorautocorrection to handle multiple bisected attrs in the same macro. (@dvandersluis)- #9606: Fix an error for
Layout/IndentationConsistencywhen using access modifier at the top level. (@koic)- #9619: Fix infinite loop between
Layout/IndentationWidthandLayout/RescueEnsureAlignmentautocorrection. (@dvandersluis)- #9633: Fix an incorrect auto-correct for
Lint/NumberConversionwhento_imethod in symbol form. (@koic)- #9616: Fix an incorrect auto-correct for
Style/EvalWithLocationwhen using#instance_evalwith a string argument in parentheses. (@koic)- #9429: Fix
Style/NegatedIfElseConditionautocorrect to keep comments in correct branch. ([@tejasbubane][])- #9631: Fix an incorrect auto-correct for
Style/RedundantReturnwhen usingreturnwith splat argument. (@koic)- #9627: Fix an incorrect auto-correct for
Style/StructInheritancewhen extending instance of Struct withoutdo...endand class body is empty. (@koic)- #5953: Fix a false positive for
Style/AccessModifierDeclarationswhen usingmodule_functionwith symbol. (@koic)- #9593: Fix an error when processing a directory is named
{}. (@koic)- #9599: Fix an error for
Style/CaseLikeIfwhen usinginclude?without a receiver. (@koic)- #9582: Fix incorrect auto-correct for
Style/ClassEqualityComparisonwhen comparingModule#namefor equality. (@koic)- #9603: Fix a false positive for
Style/SoleNestedConditionalwhen using nested modifier on value assigned in condition. (@koic)- #9598: Fix RuboCop::MagicComment#valid_shareable_constant_value?. ([
@kachick][])- #9625: Allow parentheses in yield arguments with
Style/MethodCallWithArgsParenthesesEnforcedStyle: omit_parenthesesto fix invalid Ruby auto-correction. (@gsamokovarov)- #9558: Fix inconsistency when dealing with URIs that are wrapped in single quotes vs double quotes. (
@dvandersluis)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.12.1 (2021-04-04)
Bug fixes
- #9649: Fix when highlights contain multibyte characters. ([
@osyo-manga][])- #9646: Fix an incorrect auto-correct for
EnforcedStyle: require_parenthesesofStyle/MethodCallWithArgsParentheseswithEnforcedStyle: conditionalsofStyle/AndOr. ([@koic][])- #9608: Fix a false positive for
Layout/EmptyLineAfterGuardClausewhen using guard clause is afterrubocop:enablecomment. ([@koic][])- #9637: Allow parentheses for forwarded args in
Style/MethodCallWithArgsParentheses'somit_parenthesesstyle to avoid endless range ambiguity. ([@gsamokovarov][])- #9641: Fix
Layout/MultilineMethodCallIndentationtriggering on method calls that look like operators. ([@dvandersluis][])- #9638: Fix an error for
Layout/LineLengthwhen over limit at right hand side of multiple assignment. ([@koic][])- #9639: Fix
Style/RedundantBeginremoving comments on assignment statement correction. ([@marcotc][])- #9671: Fix an incorrect auto-correct for
Lint/AmbiguousOperatorwithStyle/MethodCallWithArgsParentheses. ([@koic][])- #9645: Fix an incorrect auto-correct for
Style/SingleLineMethodswhen using single line class method definition. ([@koic][])- #9644: Fix an error and an incorrect auto-correct for
Style/MultilineMethodSignaturewhen line break after opening parenthesis. ([@koic][])- #9672: Fix an incorrect auto-correct for
Style/HashConversionwhen using multi-argumentHash[]as a method argument. ([@koic][])1.12.0 (2021-03-24)
New features
- #9615: Add new
Style/StringCharscop. ([@koic][])- #9629: Add
AllowParenthesesInStringInterpolationconfiguration toStyle/MethodCallWithArgsParenthesesto allow parenthesized calls in string interpolation. ([@gsamokovarov][])- #9219: Allow excluding some constants from Style/Documentation. ([
@fsateler][])- Add
AllowNiloption forLint/SuppressedExceptionto allow/disallowrescue nil. ([@corroded][])Bug fixes
- #9560: Fix an error for
Lint/ClassMethodsDefinitionswhen defining class methods withclass << selfwith comment only body. ([@koic][])- #9551: Fix a false positive for
Style/UnlessLogicalOperatorswhen using||operator and invoked method name includes "or" in the conditional branch. ([@koic][])- #9620: Allow parentheses in operator methods calls for
Style/MethodCallWithArgsParenthesesEnforcedStyle: omit_parentheses. ([@gsamokovarov][])- #9622: Fixed
Style/BisectedAttrAccessorautocorrection to handle multiple bisected attrs in the same macro. ([@dvandersluis][])- #9606: Fix an error for
Layout/IndentationConsistencywhen using access modifier at the top level. ([@koic][])- #9619: Fix infinite loop between
Layout/IndentationWidthandLayout/RescueEnsureAlignmentautocorrection. ([@dvandersluis][])- #9633: Fix an incorrect auto-correct for
Lint/NumberConversionwhento_imethod in symbol form. ([@koic][])- #9616: Fix an incorrect auto-correct for
Style/EvalWithLocationwhen using#instance_evalwith a string argument in parentheses. ([@koic][])- #9429: Fix
Style/NegatedIfElseConditionautocorrect to keep comments in correct branch. ([@tejasbubane][])- #9631: Fix an incorrect auto-correct for
Style/RedundantReturnwhen usingreturnwith splat argument. ([@koic][])- #9627: Fix an incorrect auto-correct for
Style/StructInheritancewhen extending instance of Struct withoutdo...endand class body is empty. ([@koic][])- #5953: Fix a false positive for
Style/AccessModifierDeclarationswhen usingmodule_functionwith symbol. ([@koic][])- #9593: Fix an error when processing a directory is named
{}. ([@koic][])- #9599: Fix an error for
Style/CaseLikeIfwhen usinginclude?without a receiver. ([@koic][])- #9582: Fix incorrect auto-correct for
Style/ClassEqualityComparisonwhen comparingModule#namefor equality. ([@koic][])- #9603: Fix a false positive for
Style/SoleNestedConditionalwhen using nested modifier on value assigned in condition. ([@koic][])- #9598: Fix RuboCop::MagicComment#valid_shareable_constant_value?. ([
@kachick][])- #9625: Allow parentheses in yield arguments with
Style/MethodCallWithArgsParenthesesEnforcedStyle: omit_parenthesesto fix invalid Ruby auto-correction. ([@gsamokovarov][])- #9558: Fix inconsistency when dealing with URIs that are wrapped in single quotes vs double quotes. ([
@dvandersluis][])- #9613: Fix a false positive for
Style/RedundantSelfwhen a self receiver on an lvalue of mlhs arguments. ([@koic][])- #9586: Update
Naming/RescuedExceptionsVariableNameto not register on inner rescues when nested. ([@dvandersluis][])Changes
... (truncated)
Commits
adf5629Cut 1.12.1a5c2887Update Changelog7f45422Document that we allow parens where omitting them is ambiguous or invalid93ecd7eParenthesized forwarded args in Style/MethodCallWithArgsParenthesesc8c3358Configure rspec shared_context_metadata_behavior to :apply_to_host_groups (co...50dc01e[Fix #9672] Fix an incorrect auto-correct forStyle/HashConversionf4e72bcMerge pull request #9671 from koic/fix_incorrect_autocorrect_for_ambiguous_op...e0342b2Fix an incorrect auto-correct forLint/AmbiguousOperator1cd90c7Remove (almost) redundant setting.2d1fd7bMerge pull request #9646 from koic/fix_incorrect_autocorrect_for_style_and_or- 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 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)