Releases: rubocop/rubocop-performance
Releases · rubocop/rubocop-performance
RuboCop Performance 1.11.1
RuboCop Performance 1.11.0
New features
Bug fixes
Changes
RuboCop Performance 1.10.2
Bug fixes
- #162: Fix a false positive for
Performance/RedundantBlockCall
when an optional block that is overridden by block variable. (@koic) - #36: Fix a false positive for
Performance/ReverseEach
wheneach
is called onreverse
and using the result value. (@koic) - #224: Fix a false positive for
Style/RedundantEqualityComparisonBlock
when using one argument with comma separator in block argument. (@koic) - #225: Fix a false positive for
Style/RedundantEqualityComparisonBlock
when usingany?
with===
comparison block and block argument is not used as a receiver for===
. (@koic) - #222: Fix a false positive for
Performance/RedundantSplitRegexpArgument
whensplit
method argument is exactly one spece regexp/ /
. (@koic)
RuboCop Performance 1.10.1
Bug fixes
- #214: Fix a false positive for
Performance/RedundantEqualityComparisonBlock
when using multiple block arguments. (@koic) - #216: Fix a false positive for
Performance/RedundantSplitRegexpArgument
when using split method with ignore case regexp option. (@koic) - #217: Fix a false positive for
Performance/RedundantEqualityComparisonBlock
when using block argument is used for an argument ofis_a
. (@koic)
RuboCop Performance 1.10.0
New features
- #190: Add new
Performance/RedundantSplitRegexpArgument
cop. (@mfbmina) - #213: Add new
Performance/RedundantEqualityComparisonBlock
cop. (@koic)
Bug fixes
- #207: Fix an error for
Performance/Sum
when usingmap(&do_something).sum
without receiver. (@koic) - #210: Fix a false negative for
Performance/BindCall
when receiver is not a method call. (@koic)
Changes
- #205: Update
Performance/ConstantRegexp
to allow memoized regexps. (@dvandersluis) - #212: Enable unsafe auto-correct for
Performance/StartWith
andPerformance/EndWith
cops by default. (@koic)
RuboCop Performance 1.9.2
RuboCop Performance 1.9.1
Bug fixes
- #185: Fix incorrect replacement recommendation for
Performance/ChainArrayAllocation
. (@fatkodima)
Changes
- #197: Disable
Performance/ArraySemiInfiniteRangeSlice
cop. (@tejasbubane)
RuboCop Performance 1.9.0
New features
- #173: Add new
Performance/BlockGivenWithExplicitBlock
cop. (@fatkodima) - #136: Add new
Performance/MethodObjectAsBlock
cop. (@fatkodima) - #151: Add new
Performance/ConstantRegexp
cop. (@fatkodima) - #175: Add new
Performance/ArraySemiInfiniteRangeSlice
cop. (@fatkodima) - #189: Support auto-correction for
Performance/Caller
. (@koic) - #171: Extend auto-correction support for
Performance/Sum
. (@koic) - #194: Support auto-correction for
Performance/UnfreezeString
. (@koic)
Changes
- #181: Change default configuration for
Performance/CollectionLiteralInLoop
toEnabled: 'pending'
. (@ghiculescu) - #170: Extend
Performance/Sum
to register an offense formap { ... }.sum
. (@eugeneius) - #179: Change
Performance/Sum
to warn about empty arrays, and not register an offense on empty array literals. (@ghiculescu) - #180: Require RuboCop 0.90 or higher. (@koic)
RuboCop Performance 1.8.1
Bug fixes
- #164: Fix an error for
Performance/CollectionLiteralInLoop
when a method fromEnumerable
is called with no receiver. (@eugeneius) - #165: Fix a false positive for
Performance/Sum
when using initial value argument is a variable. (@koic)
Changes
- #163: Change
Performance/Detect
to also detect offenses when index 0 or -1 is used instead (ie.detect{ ... }[0]
). (@dvandersluis) - #168: Extend
Performance/Sum
to register an offense forinject(&:+)
. (@eugeneius)
RuboCop Performance 1.8.0
New features
- #140: Add new
Performance/CollectionLiteralInLoop
cop. (@fatkodima) - #137: Add new
Performance/Sum
cop. (@fatkodima)
Bug fixes
Changes
- #157: Extend
Performance/Detect
cop with check forfilter
method andPerformance/Count
cop with checks forfind_all
andfilter
methods. (@fatkodima) - #154: Require RuboCop 0.87 or higher. (@koic)