CodeTriage
CodeTriage copied to clipboard
Bump rubocop from 1.21.0 to 1.35.0
trafficstars
Bumps rubocop from 1.21.0 to 1.35.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.35
New features
- #9364: Add
Style/MagicCommentFormatcop. (@dvandersluis,@mattbearman)- #10776: New option (
consistent) forEnforcedShorthandSyntaxinStyle/HashSyntaxto avoid mixing shorthand and non-shorthand hash keys in ruby 3.1. (@h-lame)Bug fixes
- #10899: Fix an error for
Lint/ShadowingOuterLocalVariablewhen the same variable name as a block variable is used in return value assignment ofif. (@koic)- #10916: Fix an error when .rubocop.yml is empty. (
@koic)- #10915: Fix numblock support to
Layout/BlockAlignment,Layout/BlockEndNewline,Layout/EmptyLinesAroundAccessModifier,Layout/EmptyLinesAroundBlockBody,Layout/IndentationWidth,Layout/LineLength,Layout/MultilineBlockLayout,Layout/SpaceBeforeBlockBraces,Lint/NextWithoutAccumulator,Lint/NonDeterministicRequireOrder,Lint/RedundantWithIndex,Lint/RedundantWithObject,Lint/UnreachableLoop,Lint/UselessAccessModifier,Lint/Void,Metrics/AbcSize,Metrics/CyclomaticComplexity,Style/CollectionMethods,Style/CombinableLoops,Style/EachWithObject,Style/For,Style/HashEachMethods,Style/InverseMethods,Style/MethodCalledOnDoEndBlock,Style/MultilineBlockChain,Style/Next,Style/ObjectThen,Style/Proc,Style/RedundantBegin,Style/RedundantSelf,Style/RedundantSortByandStyle/TopLevelMethodDefinition. (@gsamokovarov)- #10895: Fix incorrect autocomplete in
Style/RedundantParentheseswhen a heredoc is used in an array. (@dvandersluis)- #10909: Fix loading behavior on running without
bundle exec. (@r7kamura)- #10913: Make
Style/ArgumentsForwardingaware of anonymous block argument. (@koic)- #10911: Fix Style/ClassMethodsDefinitions for non-self receivers. (
@sambostock)Changes
- #10915: Depend on rubocop-ast 1.20.1 for numblocks support in #macro?. (
@gsamokovarov)RuboCop 1.34.1
Bug fixes
RuboCop 1.34
New features
- #10170: Add new
InternalAffairs/SingleLineComparisoncop. (@dvandersluis)Bug fixes
- #10552: Require RuboCop AST 1.20.0+ to fix a false positive for
Lint/OutOfRangeRegexpRefwhen using fixed-encoding regopt. (@koic)- #10512: Fix a false positive for
Lint/ShadowingOuterLocalVariableconditional statement and block variable. ([@ydah][])- #10864:
minandmaxresults in false positives forStyle/SymbolProcsimilarly toselectandreject. ([@mollerhoj][])- #10846: Fix a false negative for
Style/DoubleNegationwhen there is a hash or an array at return location of method. ([@nobuyo][])- #10875: Fix an obsolete option configuration values are duplicated when generating
.rubocop_todo.yml. ([@ydah][])- #10877: Fix crash with
Layout/BlockEndNewlineheredoc detection. (@dvandersluis)- #10859: Fix
Lint/Debuggerto be able to handle method chains correctly. (@dvandersluis)- #10883: Fix
Style/RedundantParenthesesto be able to detect offenses and properly correct when the end parentheses and comma are on their own line. (@dvandersluis)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.35.0 (2022-08-12)
New features
- #9364: Add
Style/MagicCommentFormatcop. ([@dvandersluis][], [@mattbearman][])- #10776: New option (
consistent) forEnforcedShorthandSyntaxinStyle/HashSyntaxto avoid mixing shorthand and non-shorthand hash keys in ruby 3.1. ([@h-lame][])Bug fixes
- #10899: Fix an error for
Lint/ShadowingOuterLocalVariablewhen the same variable name as a block variable is used in return value assignment ofif. ([@koic][])- #10916: Fix an error when .rubocop.yml is empty. ([
@koic][])- #10915: Fix numblock support to
Layout/BlockAlignment,Layout/BlockEndNewline,Layout/EmptyLinesAroundAccessModifier,Layout/EmptyLinesAroundBlockBody,Layout/IndentationWidth,Layout/LineLength,Layout/MultilineBlockLayout,Layout/SpaceBeforeBlockBraces,Lint/NextWithoutAccumulator,Lint/NonDeterministicRequireOrder,Lint/RedundantWithIndex,Lint/RedundantWithObject,Lint/UnreachableLoop,Lint/UselessAccessModifier,Lint/Void,Metrics/AbcSize,Metrics/CyclomaticComplexity,Style/CollectionMethods,Style/CombinableLoops,Style/EachWithObject,Style/For,Style/HashEachMethods,Style/InverseMethods,Style/MethodCalledOnDoEndBlock,Style/MultilineBlockChain,Style/Next,Style/ObjectThen,Style/Proc,Style/RedundantBegin,Style/RedundantSelf,Style/RedundantSortByandStyle/TopLevelMethodDefinition. ([@gsamokovarov][])- #10895: Fix incorrect autocomplete in
Style/RedundantParentheseswhen a heredoc is used in an array. ([@dvandersluis][])- #10909: Fix loading behavior on running without
bundle exec. ([@r7kamura][])- #10913: Make
Style/ArgumentsForwardingaware of anonymous block argument. ([@koic][])- #10911: Fix Style/ClassMethodsDefinitions for non-self receivers. ([
@sambostock][])Changes
- #10915: Depend on rubocop-ast 1.20.1 for numblocks support in #macro?. ([
@gsamokovarov][])1.34.1 (2022-08-09)
Bug fixes
1.34.0 (2022-08-09)
New features
- #10170: Add new
InternalAffairs/SingleLineComparisoncop. ([@dvandersluis][])Bug fixes
- #10552: Require RuboCop AST 1.20.0+ to fix a false positive for
Lint/OutOfRangeRegexpRefwhen using fixed-encoding regopt. ([@koic][])- #10512: Fix a false positive for
Lint/ShadowingOuterLocalVariableconditional statement and block variable. ([@ydah][])- #10864:
minandmaxresults in false positives forStyle/SymbolProcsimilarly toselectandreject. ([@mollerhoj][])- #10846: Fix a false negative for
Style/DoubleNegationwhen there is a hash or an array at return location of method. ([@nobuyo][])- #10875: Fix an obsolete option configuration values are duplicated when generating
.rubocop_todo.yml. ([@ydah][])- #10877: Fix crash with
Layout/BlockEndNewlineheredoc detection. ([@dvandersluis][])- #10859: Fix
Lint/Debuggerto be able to handle method chains correctly. ([@dvandersluis][])- #10883: Fix
Style/RedundantParenthesesto be able to detect offenses and properly correct when the end parentheses and comma are on their own line. ([@dvandersluis][])- #10881: Fix
Style/SoleNestedConditionalto properly wrapblockandcsendnodes when necessary. ([@dvandersluis][])- #10867: Mark autocorrection for
Lint/EmptyConditionalBodyas unsafe. ([@dvandersluis][])- #10871: Restore
RuboCop::ConfigLoader.project_rootas deprecated. ([@koic][])Changes
- #10857: Add
AllowedPatternstoStyle/NumericLiterals. ([@dvandersluis][])
... (truncated)
Commits
4c16de9Cut 1.354f3d100Update Changelog4a59941Single changelog entry for the block cops without numblock fixes1c006d1Fix Style/HashEachMethods with numblock460d20fFix Style/EachWithObject with numblocks06c2402Fix Style/CollectionMethods with numblocks73916edFix Style/InverseMethods with numblocks4293be4Fix Style/RedundantSortBy with numblocks9853374Fix Style/RedundantBegin with numblocks0a34e26Fix Style/RedundantSelf with numblocks- 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)