Releases: rubocop/rubocop-performance
Releases · rubocop/rubocop-performance
RuboCop Performance 1.20.2
Bug fixes
- #425: Fix a false positive for
Performance/StringIdentifierArgumentwhen 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/MapMethodChainwhen usingmapmethod chain without receiver. (@koic) - #386: Fix a false negative for
Performance/StringIdentifierArgumentwhen 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/TimesMapcops aware of safe navigation operator. (@koic) - #390: Fix a false negative for
Performance/ReverseEachwhen safe navigation is betweenreverseandeach. (@fatkodima) - #401: Make
Performance/Sumaware of safe navigation operator. (@koic)
Changes
- #389: Improve
Performance/MapCompactto handle more safe navigation calls. (@fatkodima) - #395: Enhance
Performance/StringIncludeto 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/BlockGivenWithExplicitBlockwhen usingLint/UnusedMethodArgument's autocorrection together. (@ymap) - #370: Fix an incorrect autocorrect for
Performance/RedundantMatchwhen expressions with lower precedence than=~are used as an argument. (@ymap) - #365: Fix false positives for
Performance/ArraySemiInfiniteRangeSlicewhen using[]with string literals. (@koic) - #373: Set target version for
Performance/UnfreezeString. (@tagliala)
RuboCop Performance 1.19.0
New features
- #364: Add new
Performance/MapMethodChaincop. (@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/StringReplacementcops. (@koic)
RuboCop Performance 1.18.0
Bug fixes
- #359: Fix a false positive for
Performance/RedundantEqualityComparisonBlockwhen the block variable is used on both sides of==. (@koic) - #351: Fix an incorrect autocorrect for
Performance/ConstantRegexpandPerformance/RegexpMatchwhen autocorrecting both at the same time. (@fatkodima)
Changes
- #357: Add
sort!andminmaxtoPerformance/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/StringIdentifierArgumentwhen using a command method with receiver. (@koic) - #344: Fix
Performance/FlatMapautocorrection 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/RedundantStringCharswhen usingstr.chars.lastwithout argument. (@koic) - #321: Fix a false positive for
Performance/Sumwhen usingTargetRubyVersionis 2.3 or lower. (@koic) - #314: Fix
Performance/RegexpMatchto handle::Regexp. (@fatkodima)
Changes
- #318: Extend
Performance/StringIncludeto handle!~. (@fatkodima)