Bump rubocop from 1.24.1 to 1.36.0
Bumps rubocop from 1.24.1 to 1.36.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.36
New features
- #10931: Add
AllowOnSelfClassoption toStyle/CaseEquality. (@sambostock)Bug fixes
- #10958: Fix an infinite loop for
Layout/SpaceInsideBlockBraceswhenEnforcedStyleisno_spaceand using multiline block. (@ydah)- #10903: Skip forking off extra processes for parallel inspection when only a single file needs to be inspected. (@wjwh)
- #10919: Fix a huge performance regression between 1.32.0 and 1.33.0. (@ydah)
- #10951: Fix an autocorrection error for
Lint/EmptyConditionalBodywhen some conditional branch is empty. (@ydah)- #10927: Fix a false positive for
Style/HashTransformKeysandStyle/HashTransformValueswhen not using transformed block argument. (@koic)- #10979: Fix a false positive for
Style/RedundantParentheseswhen using parentheses with pin operator except for variables. (@Tietew)- #10962: Fix a false positive for
Lint/ShadowingOuterLocalVariablewhen conditional with if/elsif/else branches. (@ydah)- #10969: Fix a false negative for
AllowedPatternsofLint/AmbiguousBlockAssociationwhen using a method chain. (@jcalvert)- #10963: Fix a false positive for
Layout/IndentationWidthwhen using aligned emptyelsein pattern matching. (@koic)- #10975: Fix possible wrong autocorrection in namespace on
Style/PerlBackrefs. (@r7kamura)Changes
- #10928: Add more autocorrect support on
Style/EachForSimpleLoop. (@r7kamura)- #10960: Add
astoAllowedNamesin default configuration forNaming/MethodParameterNamecop. (@koic)- #10966: Add autocorrect support to
Style/AccessModifierDeclarations. (@r7kamura)- #10940: Add server mode status to
-Voption. (@koic)RuboCop 1.35.1
Bug fixes
- #10926: Make
Style/SafeNavigationaware of a redundant nil check. (@koic)- #10944: Fix an incorrect autocorrect for
Lint/LiteralInInterpolationwhen using"#{nil}". (@koic)- #10921: Fix an error when ERB pre-processing of the configuration file. (@koic)
- #10936: Fix an error for
Lint/NonAtomicFileOperationwhen usingFileTest.exist?as a condition forelsif. (@koic)- #10920: Fix an incorrect autocorrect for
Style/SoleNestedConditionalwhen using nested conditional and branch contains a comment. (@koic)- #10939: Fix an error for
Style/Nextwhen line break before condition. (@koic)RuboCop 1.35
New features
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.36.0 (2022-09-01)
New features
- #10931: Add
AllowOnSelfClassoption toStyle/CaseEquality. (@sambostock)Bug fixes
- #10958: Fix an infinite loop for
Layout/SpaceInsideBlockBraceswhenEnforcedStyleisno_spaceand using multiline block. (@ydah)- #10903: Skip forking off extra processes for parallel inspection when only a single file needs to be inspected. (@wjwh)
- #10919: Fix a huge performance regression between 1.32.0 and 1.33.0. (@ydah)
- #10951: Fix an autocorrection error for
Lint/EmptyConditionalBodywhen some conditional branch is empty. (@ydah)- #10927: Fix a false positive for
Style/HashTransformKeysandStyle/HashTransformValueswhen not using transformed block argument. (@koic)- #10979: Fix a false positive for
Style/RedundantParentheseswhen using parentheses with pin operator except for variables. (@Tietew)- #10962: Fix a false positive for
Lint/ShadowingOuterLocalVariablewhen conditional with if/elsif/else branches. (@ydah)- #10969: Fix a false negative for
AllowedPatternsofLint/AmbiguousBlockAssociationwhen using a method chain. (@jcalvert)- #10963: Fix a false positive for
Layout/IndentationWidthwhen using aligned emptyelsein pattern matching. (@koic)- #10975: Fix possible wrong autocorrection in namespace on
Style/PerlBackrefs. (@r7kamura)Changes
- #10928: Add more autocorrect support on
Style/EachForSimpleLoop. (@r7kamura)- #10960: Add
astoAllowedNamesin default configuration forNaming/MethodParameterNamecop. (@koic)- #10966: Add autocorrect support to
Style/AccessModifierDeclarations. (@r7kamura)- #10940: Add server mode status to
-Voption. (@koic)1.35.1 (2022-08-22)
Bug fixes
- #10926: Make
Style/SafeNavigationaware of a redundant nil check. (@koic)- #10944: Fix an incorrect autocorrect for
Lint/LiteralInInterpolationwhen using"#{nil}". (@koic)- #10921: Fix an error when ERB pre-processing of the configuration file. (@koic)
- #10936: Fix an error for
Lint/NonAtomicFileOperationwhen usingFileTest.exist?as a condition forelsif. (@koic)- #10920: Fix an incorrect autocorrect for
Style/SoleNestedConditionalwhen using nested conditional and branch contains a comment. (@koic)- #10939: Fix an error for
Style/Nextwhen line break before condition. (@koic)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][])
... (truncated)
Commits
-
3b3c5f5Cut 1.36 -
ac98c75Update Changelog -
78eb21eAdd a spec for server mode -
ca5b3c3Merge pull request #10984 from r7kamura/feature/modifier-example -
aad6aaaImprove singleton method example onLint/UselessAccessModifiercop -
2fb4c3cFix an error forrake prof:slow_cops -
65cec7cMerge pull request #10928 from r7kamura/feature/each -
3088078Merge pull request #10981 from Tietew/fix_a_false_positive_for_style_redundan... -
0780cb5Merge pull request #10932 from koic/use_official_jruby_image -
45403e3[Fix #10979] Fix a false positive forStyle/Style/RedundantParentheses - Additional commits viewable in compare view