Bump rubocop from 0.88.0 to 0.89.1
Bumps rubocop from 0.88.0 to 0.89.1.
Release notes
Sourced from rubocop's releases.
RuboCop 0.89.1
Bug fixes
- #8463: Fix false positives for
Lint/OutOfRangeRegexpRef
when a regexp is defined and matched in separate steps. (@eugeneius)- #8464: Handle regexps matched with
when
,grep
,gsub
,gsub!
,sub
,sub!
,[]
,slice
,slice!
,scan
,index
,rindex
,partition
,rpartition
,start_with?
, andend_with?
inLint/OutOfRangeRegexpRef
. (@eugeneius)- #8466: Fix a false positive for
Lint/UriRegexp
when usingregexp
method without receiver. (@koic)- #8478: Relax
Lint/BinaryOperatorWithIdenticalOperands
for mathematical operations. (@marcandre)- #8480: Tweak callback list of
Lint/MissingSuper
. (@marcandre)- #8481: Fix autocorrect for elements with newlines in
Style/SymbolArray
andStyle/WordArray
. (@biinari)- #8475: Fix a false positive for
Style/HashAsLastArrayItem
when there are duplicate hashes in the array. (@wcmonty)- #8497: Fix
Style/IfUnlessModifier
to add parentheses when converting if-end condition inside a parenthesized method argument list. (@dsavochkin)Changes
RuboCop 0.89
New features
- #8322: Support autocorrect for
Style/CaseEquality
cop. ([@fatkodima][])- #7876: Enhance
Gemspec/RequiredRubyVersion
cop with check thatrequired_ruby_version
is specified. ([@fatkodima][])- #8291: Add new
Lint/SelfAssignment
cop. ([@fatkodima][])- #8389: Add new
Lint/DuplicateRescueException
cop. ([@fatkodima][])- #8433: Add new
Lint/BinaryOperatorWithIdenticalOperands
cop. ([@fatkodima][])- #8430: Add new
Lint/UnreachableLoop
cop. ([@fatkodima][])- #8412: Add new
Style/OptionalBooleanParameter
cop. ([@fatkodima][])- #8432: Add new
Lint/FloatComparison
cop. ([@fatkodima][])- #8376: Add new
Lint/MissingSuper
cop. ([@fatkodima][])- #8415: Add new
Style/ExplicitBlockArgument
cop. ([@fatkodima][])- #8383: Support autocorrect for
Lint/Loop
cop. ([@fatkodima][])- #8339: Add
Config#for_badge
as an efficient way to get a cop's config merged with its department's. (@marcandre)- #5067: Add new
Style/StringConcatenation
cop. ([@fatkodima][])- #7425: Add new
Lint/TopLevelReturnWithArgument
cop. ([@iamravitejag][])- #8417: Add new
Style/GlobalStdStream
cop. ([@fatkodima][])- #7949: Add new
Style/SingleArgumentDig
cop. ([@volfgox][])- #8341: Add new
Lint/EmptyConditionalBody
cop. ([@fatkodima][])- #7755: Add new
Lint/OutOfRangeRegexpRef
cop. ([@sonalinavlakhe][])Bug fixes
... (truncated)
- #8346: Allow parentheses in single-line inheritance with
Style/MethodCallWithArgsParentheses
EnforcedStyle: omit_parentheses
to fix invalid Ruby auto-correction. ([@gsamokovarov][])- #8324: Fix crash for
Layout/SpaceAroundMethodCallOperator
when usingProc#call
shorthand syntax. ([@fatkodima][])- #8332: Fix auto-correct in
Style/ConditionalAssignment
to preserve constant namespace. (@biinari)
Changelog
Sourced from rubocop's changelog.
0.89.1 (2020-08-10)
Bug fixes
- #8463: Fix false positives for
Lint/OutOfRangeRegexpRef
when a regexp is defined and matched in separate steps. (@eugeneius)- #8464: Handle regexps matched with
when
,grep
,gsub
,gsub!
,sub
,sub!
,[]
,slice
,slice!
,scan
,index
,rindex
,partition
,rpartition
,start_with?
, andend_with?
inLint/OutOfRangeRegexpRef
. (@eugeneius)- #8466: Fix a false positive for
Lint/UriRegexp
when usingregexp
method without receiver. (@koic)- #8478: Relax
Lint/BinaryOperatorWithIdenticalOperands
for mathematical operations. (@marcandre)- #8480: Tweak callback list of
Lint/MissingSuper
. (@marcandre)- #8481: Fix autocorrect for elements with newlines in
Style/SymbolArray
andStyle/WordArray
. (@biinari)- #8475: Fix a false positive for
Style/HashAsLastArrayItem
when there are duplicate hashes in the array. (@wcmonty)- #8497: Fix
Style/IfUnlessModifier
to add parentheses when converting if-end condition inside a parenthesized method argument list. (@dsavochkin)Changes
0.89.0 (2020-08-05)
New features
- #8322: Support autocorrect for
Style/CaseEquality
cop. ([@fatkodima][])- #7876: Enhance
Gemspec/RequiredRubyVersion
cop with check thatrequired_ruby_version
is specified. ([@fatkodima][])- #8291: Add new
Lint/SelfAssignment
cop. ([@fatkodima][])- #8389: Add new
Lint/DuplicateRescueException
cop. ([@fatkodima][])- #8433: Add new
Lint/BinaryOperatorWithIdenticalOperands
cop. ([@fatkodima][])- #8430: Add new
Lint/UnreachableLoop
cop. ([@fatkodima][])- #8412: Add new
Style/OptionalBooleanParameter
cop. ([@fatkodima][])- #8432: Add new
Lint/FloatComparison
cop. ([@fatkodima][])- #8376: Add new
Lint/MissingSuper
cop. ([@fatkodima][])- #8415: Add new
Style/ExplicitBlockArgument
cop. ([@fatkodima][])- #8383: Support autocorrect for
Lint/Loop
cop. ([@fatkodima][])- #8339: Add
Config#for_badge
as an efficient way to get a cop's config merged with its department's. (@marcandre)- #5067: Add new
Style/StringConcatenation
cop. ([@fatkodima][])- #7425: Add new
Lint/TopLevelReturnWithArgument
cop. ([@iamravitejag][])- #8417: Add new
Style/GlobalStdStream
cop. ([@fatkodima][])- #7949: Add new
Style/SingleArgumentDig
cop. ([@volfgox][])- #8341: Add new
Lint/EmptyConditionalBody
cop. ([@fatkodima][])- #7755: Add new
Lint/OutOfRangeRegexpRef
cop. ([@sonalinavlakhe][])Bug fixes
... (truncated)
- #8346: Allow parentheses in single-line inheritance with
Style/MethodCallWithArgsParentheses
EnforcedStyle: omit_parentheses
to fix invalid Ruby auto-correction. ([@gsamokovarov][])- #8324: Fix crash for
Layout/SpaceAroundMethodCallOperator
when usingProc#call
shorthand syntax. ([@fatkodima][])- #8332: Fix auto-correct in
Style/ConditionalAssignment
to preserve constant namespace. (@biinari)- #8344: Fix crash for
Style/CaseLikeIf
when checking againstequal?
andmatch?
without a receiver. ([@fatkodima][])- #8323: Fix a false positive for
Style/HashAsLastArrayItem
when hash is not a last array item. ([@fatkodima][])- #8299: Fix an incorrect auto-correct for
Style/RedundantCondition
when usingraise
,rescue
, orand
without argument parentheses inelse
. (@koic)- #8335: Fix incorrect character class detection for nested or POSIX bracket character classes in
Style/RedundantRegexpEscape
. ([@owst][])- #8347: Fix an incorrect auto-correct for
EnforcedStyle: hash_rockets
ofStyle/HashSyntax
withLayout/HashAlignment
. (@koic)
Commits
-
e27942a
Cut 0.89.1 -
3cba823
[Fix #8497] Fix Style/IfUnlessModifier to handle if-end condition in method a... -
78f1ec9
Alter multiline memoization message for braces enforced style -
e0f28e0
Deprecate comment_lines? -
9a08fde
Avoid use of ProcessedSource#commented? -
28eabb7
Fix Style/EmptyCaseCondition's autocorrect. -
14a5c20
Avoid comments_before_line -
8a02e42
Simplify and optimize comment lookup -
a0ec799
New rubocop-ast insures thatProcessedSource#comments
is nevernil
. -
7fd90a4
Avoid use of each_comment - Additional commits viewable in compare view