Update dependency rubocop-performance to v1.25.0 #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
'= 1.16.0'
->'= 1.25.0'
Release Notes
rubocop/rubocop-performance (rubocop-performance)
v1.25.0
Compare Source
New features
it
block parameter inPerformance
cops. ([@koic][])Bug fixes
Performance/FixedSize
false positive whencount
is called with anumblock
. ([@dvandersluis][])Performance/StringIdentifierArgument
when using interpolated string argument. ([@koic][])Changes
Performance/CollectionLiteralInLoop
to not register offenses forArray#include?
that are optimized directly in Ruby. ([@earlopain][])v1.24.0
Compare Source
New features
Performance/ZipWithoutBlock
cop that checks patterns like.map { |id| [id] }
or.map { [_1] }
and can replace them with.zip
. ([@corsonknowles][])Bug fixes
Performance/CaseWhenSplat
cop error onwhen
node without body. ([@viralpraxis][])v1.23.1
Compare Source
Bug fixes
Performance/RedundantStringChars
cop error in case of implicit receiver. ([@viralpraxis][])Performance/Squeeze
cop error on frozen AST string node value. ([@viralpraxis][])v1.23.0
Compare Source
New features
Performance/StringBytesize
cop. ([@viralpraxis][])v1.22.1
Compare Source
Bug fixes
Performance/BigDecimalWithNumericArgument
when using float argument forBigDecimal
. ([@koic][])v1.22.0
Compare Source
Bug fixes
Performance/BigDecimalWithNumericArgument
when using BigDecimal 3.1+. ([@koic][])Changes
Performance/BlockGivenWithExplicitBlock
by default. ([@earlopain][])Performance/DoubleStartEndWith
aware of safe navigation. ([@earlopain][])v1.21.1
Compare Source
Bug fixes
Performance/RedundantEqualityComparisonBlock
when the block is empty. ([@earlopain][])v1.21.0
Compare Source
New features
Bug fixes
Performance/ChainArrayAllocation
when usingselect
with block argument afterselect
. ([@koic][])Performance/RedundantBlockCall
when usingblock.call
with block argument. ([@koic][])Changes
Performance/Casecmp
cop by default. ([@parkerfinch][])v1.20.2
Compare Source
Bug fixes
Performance/StringIdentifierArgument
when using string interpolation with methods that don't support symbols with::
inside them. ([@earlopain][])v1.20.1
Compare Source
Bug fixes
Performance/StringIdentifierArgument
when using multiple string arguments. ([@koic][])v1.20.0
Compare Source
New features
String#dup
forPerformance/UnfreezeString
when Ruby 3.3+. ([@koic][])Bug fixes
Performance/MapMethodChain
when usingmap
method chain without receiver. ([@koic][])Performance/StringIdentifierArgument
when using string interpolation. ([@earlopain][])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][])Performance/ReverseEach
when safe navigation is betweenreverse
andeach
. ([@fatkodima][])Performance/Sum
aware of safe navigation operator. ([@koic][])Changes
Performance/MapCompact
to handle more safe navigation calls. ([@fatkodima][])Performance/StringInclude
to handle===
method. ([@fatkodima][])v1.19.1
Compare Source
Bug fixes
Performance/BlockGivenWithExplicitBlock
when usingLint/UnusedMethodArgument
's autocorrection together. ([@ymap][])Performance/RedundantMatch
when expressions with lower precedence than=~
are used as an argument. ([@ymap][])Performance/ArraySemiInfiniteRangeSlice
when using[]
with string literals. ([@koic][])Performance/UnfreezeString
. ([@tagliala][])v1.19.0
Compare Source
New features
Performance/MapMethodChain
cop. ([@koic][])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][])v1.18.0
Compare Source
Bug fixes
Performance/RedundantEqualityComparisonBlock
when the block variable is used on both sides of==
. ([@koic][])Performance/ConstantRegexp
andPerformance/RegexpMatch
when autocorrecting both at the same time. ([@fatkodima][])Changes
sort!
andminmax
toPerformance/CompareWithBlock
. ([@vlad-pisanov][])v1.17.1
Compare Source
Bug fixes
AllowRegexpMatch
option ofPerformance/RedundantEqualityComparisonBlock
. ([@koic][])v1.17.0
Compare Source
New features
AllowRegexpMatch
option toPerformance/RedundantEqualityComparisonBlock
. ([@koic][])Bug fixes
Performance/StringIdentifierArgument
when using a command method with receiver. ([@koic][])Performance/FlatMap
autocorrection for chained methods on separate lines. ([@fatkodima][])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.