Rubocop v0.93.0 Release Notes
Release Date: 2020-10-08 // over 3 years ago-
๐ 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) - 0๏ธโฃ #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
- #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) - #8102: Consider class length instead of block length for
Struct.new
. (@tejasbubane) - ๐ #7408: Make
Gemspec/RequiredRubyVersion
cop aware ofGem::Requirement
. (@tejasbubane)
- ๐ #8796: Add new