Bump rubocop from 0.76.0 to 0.93.1
Bumps rubocop from 0.76.0 to 0.93.1.
Release notes
Sourced from rubocop's releases.
RuboCop 0.93.1
Bug fixes
- #8782: Fix incorrect autocorrection for
Style/TernaryParentheses
withdefined?
. (@dvandersluis)- #8867: Rework
Lint/RedundantSafeNavigation
to be more safe. (@fatkodima)- #8864: Fix false positive for
Style/RedundantBegin
with a postfixwhile
oruntil
. (@dvandersluis)- #8869: Fix a false positive for
Style/RedundantBegin
when usingbegin
for or assignment and method call. (@koic)- #8862: Fix an error for
Lint/AmbiguousRegexpLiteral
when using regexp without method calls in nested structure. (@koic)- #8872: Fix an error for
Metrics/ClassLength
when multiple assignments to constants. (@koic)- #8871: Fix a false positive for
Style/RedundantBegin
when usingbegin
for method argument or part of conditions. (@koic)- #8875: Fix an incorrect auto-correct for
Style/ClassEqualityComparison
when comparing class name. (@koic)- #8880: Fix an error for
Style/ClassLength
when overlapping constant assignments. (@koic)RuboCop 0.93
New features
- #8796: Add new
Lint/HashCompareByIdentity
cop. (@fatkodima)- #8833: Add new
Style/ClassEqualityComparison
cop. (@fatkodima)- #8668: Add new
Lint/RedundantSafeNavigation
cop. (@fatkodima)- #8842: Add notification about cache being used to debug mode. ([@hatkyinc2][])
- #8822: Make
Style/RedundantBegin
aware ofbegin
withoutrescue
orensure
. (@koic)Bug fixes
- #8810: Fix multiple offense detection for
Style/RaiseArgs
. ([@pbernays][])- #8151: Fix a false positive for
Lint/BooleanSymbol
when used within%i[...]
. (@fatkodima)- #8809: Fix multiple offense detection for
Style/For
. ([@pbernays][])- #8801: Fix
Layout/SpaceAroundEqualsInParameterDefault
only registered once in a line. ([@rdunlop][])- #8514: Correct multiple
Style/MethodDefParentheses
per file. ([@rdunlop][])- #8825: Fix crash in
Style/ExplicitBlockArgument
when code is called outside of a method. ([@ghiculescu][])- #8718: Fix undefined methods of pseudo location. ([@ybiquitous][])
- #8354: Detect regexp named captures in
Style/CaseLikeIf
cop. ([@dsavochkin][])- #8821: Fix an incorrect autocorrect for
Style/NestedTernaryOperator
when using a nested ternary operator expression with no parentheses on the outside. (@koic)- #8834: Fix a false positive for
Style/ParenthesesAsGroupedExpression
when method argument parentheses are omitted and hash argument key is enclosed in parentheses. (@koic)- #8830: Fix bad autocorrect of
Style/StringConcatenation
when string includes double quotes. ([@tleish][])- #8807: Fix a false positive for
Style/RedundantCondition
when using assignment by hash key access. (@koic)- #8848: Fix a false positive for
Style/CombinableLoops
when using the same method with different arguments. (@dvandersluis)- #8843: Fix an incorrect autocorrect for
Lint/AmbiguousRegexpLiteral
when sending method to regexp literal receiver. (@koic)- #8842: Save actual status to cache, except corrected. ([@hatkyinc2][])
- #8835: Fix an incorrect autocorrect for
Style/RedundantInterpolation
when using string interpolation for non-operator methods. (@koic)- #7495: Example for
Lint/AmbiguousBlockAssociation
cop. ([@AllanSiqueira][])- #8855: Fix an error for
Layout/EmptyLinesAroundAccessModifier
andStyle/AccessModifierDeclarations
when using only access modifier. (@koic)Changes
... (truncated)
- #8803: (Breaking)
RegexpNode#parsed_tree
now processes regexps including interpolation (by blanking the interpolation before parsing, rather than skipping). ([@owst][])
Changelog
Sourced from rubocop's changelog.
0.93.1 (2020-10-12)
Bug fixes
- #8782: Fix incorrect autocorrection for
Style/TernaryParentheses
withdefined?
. ([@dvandersluis][])- #8867: Rework
Lint/RedundantSafeNavigation
to be more safe. ([@fatkodima][])- #8864: Fix false positive for
Style/RedundantBegin
with a postfixwhile
oruntil
. ([@dvandersluis][])- #8869: Fix a false positive for
Style/RedundantBegin
when usingbegin
for or assignment and method call. ([@koic][])- #8862: Fix an error for
Lint/AmbiguousRegexpLiteral
when using regexp without method calls in nested structure. ([@koic][])- #8872: Fix an error for
Metrics/ClassLength
when multiple assignments to constants. ([@koic][])- #8871: Fix a false positive for
Style/RedundantBegin
when usingbegin
for method argument or part of conditions. ([@koic][])- #8875: Fix an incorrect auto-correct for
Style/ClassEqualityComparison
when comparing class name. ([@koic][])- #8880: Fix an error for
Style/ClassLength
when overlapping constant assignments. ([@koic][])0.93.0 (2020-10-08)
New features
- #8796: Add new
Lint/HashCompareByIdentity
cop. ([@fatkodima][])- #8833: Add new
Style/ClassEqualityComparison
cop. ([@fatkodima][])- #8668: Add new
Lint/RedundantSafeNavigation
cop. ([@fatkodima][])- #8842: Add notification about cache being used to debug mode. ([@hatkyinc2][])
- #8822: Make
Style/RedundantBegin
aware ofbegin
withoutrescue
orensure
. ([@koic][])Bug fixes
- #8810: Fix multiple offense detection for
Style/RaiseArgs
. ([@pbernays][])- #8151: Fix a false positive for
Lint/BooleanSymbol
when used within%i[...]
. ([@fatkodima][])- #8809: Fix multiple offense detection for
Style/For
. ([@pbernays][])- #8801: Fix
Layout/SpaceAroundEqualsInParameterDefault
only registered once in a line. ([@rdunlop][])- #8514: Correct multiple
Style/MethodDefParentheses
per file. ([@rdunlop][])- #8825: Fix crash in
Style/ExplicitBlockArgument
when code is called outside of a method. ([@ghiculescu][])- #8718: Fix undefined methods of pseudo location. ([@ybiquitous][])
- #8354: Detect regexp named captures in
Style/CaseLikeIf
cop. ([@dsavochkin][])- #8821: Fix an incorrect autocorrect for
Style/NestedTernaryOperator
when using a nested ternary operator expression with no parentheses on the outside. ([@koic][])- #8834: Fix a false positive for
Style/ParenthesesAsGroupedExpression
when method argument parentheses are omitted and hash argument key is enclosed in parentheses. ([@koic][])- #8830: Fix bad autocorrect of
Style/StringConcatenation
when string includes double quotes. ([@tleish][])- #8807: Fix a false positive for
Style/RedundantCondition
when using assignment by hash key access. ([@koic][])- #8848: Fix a false positive for
Style/CombinableLoops
when using the same method with different arguments. ([@dvandersluis][])- #8843: Fix an incorrect autocorrect for
Lint/AmbiguousRegexpLiteral
when sending method to regexp literal receiver. ([@koic][])- #8842: Save actual status to cache, except corrected. ([@hatkyinc2][])
- #8835: Fix an incorrect autocorrect for
Style/RedundantInterpolation
when using string interpolation for non-operator methods. ([@koic][])- #7495: Example for
Lint/AmbiguousBlockAssociation
cop. ([@AllanSiqueira][])- #8855: Fix an error for
Layout/EmptyLinesAroundAccessModifier
andStyle/AccessModifierDeclarations
when using only access modifier. ([@koic][])Changes
... (truncated)
- #8803: (Breaking)
RegexpNode#parsed_tree
now processes regexps including interpolation (by blanking the interpolation before parsing, rather than skipping). ([@owst][])- #8625: Improve
Style/RedundantRegexpCharacterClass
andStyle/RedundantRegexpEscape
by usingregexp_parser
gem. ([@owst][])- #8646: Faster find of all files in
TargetFinder
class which improves initial startup speed. ([@tleish][])
Commits
-
f561472
Cut 0.93.1 -
c40307a
ReworkLint/RedundantSafeNavigation
to be more safe -
eb9b664
[Fix #8880] Fix an error forStyle/ClassLength
-
0798771
Merge pull request #8876 from koic/fix_incorrect_autocorrect_for_class_equali... -
ec93d26
Tweak the offense message forStyle/ClassEqualityComparison
-
4733d70
[Fix #8875] Fix incorrect autocorrect forStyle/ClassEqualityComparison
-
272771b
[Fix #8871] Fix a false positive forStyle/RedundantBegin
-
f488821
[Fix #8872] Fix an error forMetrics/ClassLength
-
f79e1c0
Merge pull request #8863 from koic/fix_error_for_ambiguous_regexp_literal -
e36f120
[Fix #8862] Fix an error forLint/AmbiguousRegexpLiteral
- Additional commits viewable in compare view