Update dependency rubocop-performance to v1.26.1 #85
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.19.1->1.26.1Release Notes
rubocop/rubocop-performance (rubocop-performance)
v1.26.1Compare Source
Bug fixes
Performance/RedundantStringCharswhen usingstr.chars[0, 2]. ([@koic][])Changes
Performance/BigDecimalWithNumericArgumentby default. ([@earlopain][])v1.26.0Compare Source
Bug fixes
Performance/BlockGivenWithExplicitBlockwhen usingNaming/BlockForwarding's autocorrection together. ([@a-lavis][])Performance/MapCompactcop as unsafe. ([@jbpextra][])Performance/Countcop error on empty selector block. ([@viralpraxis][])Performance/Countwith multiline calls. ([@lovro-bikic][])Changes
!foo.start_with('bar') && !foo.start_with('baz')withPerformance/DoubleStartEndWith. ([@earlopain][])v1.25.0Compare Source
New features
itblock parameter inPerformancecops. ([@koic][])Bug fixes
Performance/FixedSizefalse positive whencountis called with anumblock. ([@dvandersluis][])Performance/StringIdentifierArgumentwhen using interpolated string argument. ([@koic][])Changes
Performance/CollectionLiteralInLoopto not register offenses forArray#include?that are optimized directly in Ruby. ([@earlopain][])v1.24.0Compare Source
New features
Performance/ZipWithoutBlockcop that checks patterns like.map { |id| [id] }or.map { [_1] }and can replace them with.zip. ([@corsonknowles][])Bug fixes
Performance/CaseWhenSplatcop error onwhennode without body. ([@viralpraxis][])v1.23.1Compare Source
Bug fixes
Performance/RedundantStringCharscop error in case of implicit receiver. ([@viralpraxis][])Performance/Squeezecop error on frozen AST string node value. ([@viralpraxis][])v1.23.0Compare Source
New features
Performance/StringBytesizecop. ([@viralpraxis][])v1.22.1Compare Source
Bug fixes
Performance/BigDecimalWithNumericArgumentwhen using float argument forBigDecimal. ([@koic][])v1.22.0Compare Source
Bug fixes
Performance/BigDecimalWithNumericArgumentwhen using BigDecimal 3.1+. ([@koic][])Changes
Performance/BlockGivenWithExplicitBlockby default. ([@earlopain][])Performance/DoubleStartEndWithaware of safe navigation. ([@earlopain][])v1.21.1Compare Source
Bug fixes
Performance/RedundantEqualityComparisonBlockwhen the block is empty. ([@earlopain][])v1.21.0Compare Source
New features
Bug fixes
Performance/ChainArrayAllocationwhen usingselectwith block argument afterselect. ([@koic][])Performance/RedundantBlockCallwhen usingblock.callwith block argument. ([@koic][])Changes
Performance/Casecmpcop by default. ([@parkerfinch][])v1.20.2Compare Source
Bug fixes
Performance/StringIdentifierArgumentwhen using string interpolation with methods that don't support symbols with::inside them. ([@earlopain][])v1.20.1Compare Source
Bug fixes
Performance/StringIdentifierArgumentwhen using multiple string arguments. ([@koic][])v1.20.0Compare Source
New features
String#dupforPerformance/UnfreezeStringwhen Ruby 3.3+. ([@koic][])Bug fixes
Performance/MapMethodChainwhen usingmapmethod chain without receiver. ([@koic][])Performance/StringIdentifierArgumentwhen 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/TimesMapcops aware of safe navigation operator. ([@koic][])Performance/ReverseEachwhen safe navigation is betweenreverseandeach. ([@fatkodima][])Performance/Sumaware of safe navigation operator. ([@koic][])Changes
Performance/MapCompactto handle more safe navigation calls. ([@fatkodima][])Performance/StringIncludeto handle===method. ([@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.