Skip to content

Latest commit

 

History

History
179 lines (110 loc) · 9.79 KB

File metadata and controls

179 lines (110 loc) · 9.79 KB

Change log

master (unreleased)

Changes

  • #170: Extend Performance/Sum to register an offense for map { ... }.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)

1.8.1 (2020-09-19)

Bug fixes

  • #164: Fix an error for Performance/CollectionLiteralInLoop when a method from Enumerable 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 for inject(&:+). (@eugeneius)

1.8.0 (2020-09-04)

New features

Bug fixes

  • #159: Fix a false positive for Performance/AncestorsInclude when receiver is a variable. (@koic)

Changes

  • #157: Extend Performance/Detect cop with check for filter method and Performance/Count cop with checks for find_all and filter methods. (@fatkodima)
  • #154: Require RuboCop 0.87 or higher. (@koic)

1.7.1 (2020-07-18)

Bug fixes

  • #147: Fix an error for Performance/AncestorsInclude when using ancestors.include? without receiver. (@koic)
  • #150: Fix an incorrect autocorrect for Performance/BigDecimalWithNumericArgument when a precision is specified. (@eugeneius)

Changes

  • #149: Mark Performance/AncestorsInclude as unsafe. (@eugeneius)
  • #145: Mark Performance/StringInclude as SafeAutocorrect: false and disable autocorrect by default. (@koic)

1.7.0 (2020-07-07)

New features

Changes

  • #138: Drop support for RuboCop 0.81 or lower. (@koic)

1.6.1 (2020-06-05)

New features

  • #115: Support String#sub and String#sub! methods for Performance/DeletePrefix and Performance/DeleteSuffix cops. (@fatkodima)

Bug fixes

  • #111: Fix an error for Performance/DeletePrefix and Performance/DeleteSuffix cops when using autocorrection with RuboCop 0.81 or lower. (@koic)
  • #118: Fix a false positive for Performance/DeletePrefix, Performance/DeleteSuffix, Performance/StartWith, and Performance/EndWith cops when receiver is multiline string. (@koic)

1.6.0 (2020-05-22)

New features

  • #77: Add new Performance/BindCall cop. (@koic)
  • #105: Add new Performance/DeletePrefix and Performance/DeleteSuffix cops. (@koic)
  • #107: Support regexp metacharacter ^ for Performance/StartWith cop and regexp metacharacter $ for Performance/EndWith cop. (@koic)

Bug fixes

  • #55: Fix an incorrect autocorrect for Performance/RegexpMatch when using str.=~(/regexp/). (@koic)
  • #108: Fix an incorrect autocorrect for Performance/ReverseEach when there is a newline between reverse and each. (@joe-sharp, @dischorde, @siegfault)

Changes

  • #103: (BREAKING) Drop support for Ruby 2.3. (@koic)
  • #101: Mark unsafe for Performance/Casecmp cop. (@koic)

1.5.2 (2019-12-25)

Bug fixes

  • #86: Fix an incorrect autocorrect for Performance/RedundantMerge when using an empty hash argument. (@koic)

1.5.1 (2019-11-14)

Bug fixes

  • #82: Let Performance/StartWith and Performance/EndWith correct Regexp#match? and Regexp#=~. (@eugeneius)

1.5.0 (2019-10-01)

Bug fixes

  • #74: Fix an error for Performance/RedundantMerge when MaxKeyValuePairs option is set to null. (@koic)
  • #70: This PR fixes a false negative for Performance/FlatMap when using symbol to proc operator argument of map method. (@koic, @splattael)

Changes

  • #69: Remove SafeMode from Performance/Count and Performance/Detect. Set SafeAutoCorrect to false for these cops by default. (@rrosenblum)

1.4.1 (2019-07-29)

Bug fixes

  • #67: Fix an error for Performance/RedundantMerge when MaxKeyValuePairs option is set to null. (@koic)
  • #73: Fix a false negative for Performance/RegexpMatch when MatchData is not detected in if branch of guard condition. (@koic)

1.4.0 (2019-06-20)

Bug fixes

  • #54: Fix Performance/FixedSize to accept const assign with some operation. (@tejasbubane)
  • #61: Fix a false negative for Performance/RegexpMatch when using RuboCop 0.71 or higher. (@koic)

1.3.0 (2019-05-13)

Bug fixes

  • #48: Reduce Performance/RegexpMatch false positive by only flagging match used with Regexp/String/Symbol literals. (@dduugg)

Changes

1.2.0 (2019-05-04)

Bug fixes

  • #47: Fix a false negative for Performance/RegexpMatch when using RuboCop 0.68 or higher. (@koic)

1.1.0 (2019-04-08)

Changes

  • #39: Remove Performance/LstripRstrip cop. (@koic)
  • #39: Remove Performance/RedundantSortBy, Performance/UnneededSort and Performance/Sample cops. (@koic)

1.0.0 (2019-03-14)

New features