Releases: rubocop/rubocop-performance
Releases · rubocop/rubocop-performance
RuboCop Performance 1.22.1
RuboCop Performance 1.22.0
Bug fixes
- #454: Fix false positives for
Performance/BigDecimalWithNumericArgument
when using BigDecimal 3.1+. (@koic)
Changes
- #385: Disable
Performance/BlockGivenWithExplicitBlock
by default. (@earlopain) - #407: Make
Performance/DoubleStartEndWith
aware of safe navigation. (@earlopain)
RuboCop Performance 1.21.1
Bug fixes
- #452: Fix an error for
Performance/RedundantEqualityComparisonBlock
when the block is empty. (@earlopain)
RuboCop Performance 1.21.0
New features
Bug fixes
- #437: Fix a false positive for
Performance/ChainArrayAllocation
when usingselect
with block argument afterselect
. (@koic) - #448: Fix a false positive for
Performance/RedundantBlockCall
when usingblock.call
with block argument. (@koic)
Changes
- #240: Disable
Performance/Casecmp
cop by default. (@parkerfinch)
RuboCop Performance 1.20.2
Bug fixes
- #425: Fix a false positive for
Performance/StringIdentifierArgument
when using string interpolation with methods that don't support symbols with::
inside them. (@earlopain)
RuboCop Performance 1.20.1
RuboCop Performance 1.20.0 (The RubyConf Taiwan 2023 Edition)
New features
Bug fixes
- #374: Fix an error for
Performance/MapMethodChain
when usingmap
method chain without receiver. (@koic) - #386: Fix a false negative for
Performance/StringIdentifierArgument
when using string interpolation. (@earlopain) - #419: Make
Performance/Count
,Performance/FixedSize
,Performance/FlatMap
,Performance/InefficientHashSearch
,Performance/RangeInclude
,Performance/RedundantSortBlock
,Performance/ReverseFirst
,Performance/SelectMap
,Performance/Size
,Performance/SortReverse
, andPerformance/TimesMap
cops aware of safe navigation operator. (@koic) - #390: Fix a false negative for
Performance/ReverseEach
when safe navigation is betweenreverse
andeach
. (@fatkodima) - #401: Make
Performance/Sum
aware of safe navigation operator. (@koic)
Changes
- #389: Improve
Performance/MapCompact
to handle more safe navigation calls. (@fatkodima) - #395: Enhance
Performance/StringInclude
to handle===
method. (@fatkodima) - #388: Require RuboCop 1.30+ as runtime dependency. (@koic)
- #380: Require RuboCop AST 1.30.0+. (@koic)
RuboCop Performance 1.19.1
Bug fixes
- #367: Fix an incorrect autocorrect for
Performance/BlockGivenWithExplicitBlock
when usingLint/UnusedMethodArgument
's autocorrection together. (@ymap) - #370: Fix an incorrect autocorrect for
Performance/RedundantMatch
when expressions with lower precedence than=~
are used as an argument. (@ymap) - #365: Fix false positives for
Performance/ArraySemiInfiniteRangeSlice
when using[]
with string literals. (@koic) - #373: Set target version for
Performance/UnfreezeString
. (@tagliala)
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)