Releases: rubocop/rubocop-performance
Releases · rubocop/rubocop-performance
RuboCop Performance 1.19.0
New features
- #364: Add new
Performance/MapMethodChain
cop. (@koic) - #363: Support safe navigation operator for
Performance/ArraySemiInfiniteRangeSlice
,Performance/DeletePrefix
,Performance/DeleteSuffix
,Performance/Detect
,Performance/EndWith
,Performance/InefficientHashSearch
,Performance/MapCompact
,Performance/RedundantSplitRegexpArgument
,Performance/ReverseEach
,Performance/ReverseFirst
,Performance/SelectMap
,Performance/Squeeze
,Performance/StartWith
,Performance/StringInclude
, andPerformance/StringReplacement
cops. (@koic)
RuboCop Performance 1.18.0
Bug fixes
- #359: Fix a false positive for
Performance/RedundantEqualityComparisonBlock
when the block variable is used on both sides of==
. (@koic) - #351: Fix an incorrect autocorrect for
Performance/ConstantRegexp
andPerformance/RegexpMatch
when autocorrecting both at the same time. (@fatkodima)
Changes
- #357: Add
sort!
andminmax
toPerformance/CompareWithBlock
. (@vlad-pisanov) - #353: (Breaking) Drop Ruby 2.6 support. (@koic)
RuboCop Performance 1.17.1
RuboCop Performance 1.17.0
New features
Bug fixes
- #346: Fix a false positive for
Performance/StringIdentifierArgument
when using a command method with receiver. (@koic) - #344: Fix
Performance/FlatMap
autocorrection for chained methods on separate lines. (@fatkodima)
RuboCop Performance 1.16.0
Changes
- #332: Register offenses for variables against regexes in
Performance/StringInclude
. (@fatkodima)
RuboCop Performance 1.15.2
Bug fixes
- #313: Fix a false negative for
Performance/RedundantStringChars
when usingstr.chars.last
without argument. (@koic) - #321: Fix a false positive for
Performance/Sum
when usingTargetRubyVersion
is 2.3 or lower. (@koic) - #314: Fix
Performance/RegexpMatch
to handle::Regexp
. (@fatkodima)
Changes
- #318: Extend
Performance/StringInclude
to handle!~
. (@fatkodima)