You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#309: Fix an error for Performance/MapCompact when using map(&:do_something).compact and there is a line break after map.compact and assigning with ||=. (@koic)
Changes
#307: Support autocorrection even if reject is used on Performance/Count. (@r7kamura)
#291: Fix Performance/MapCompact autocorrect causing invalid syntax when using multiline map { ... }.compact as an argument for an assignment method. (@QQism)
#285: Fix an error for Performance/MapCompact when using map(&:do_something).compact.first and there is a line break after map.compact and receiver. (@ydah)
#276: Add new Performance/StringIdentifierArgument cop. (@koic)
#204: Add Performance/Sum option to ignore potential false positives. (@leoarnold)
#269: Add #to_d support to BigDecimalWithNumericArgument. (@leoarnold)
Bug fixes
#277: Fix an incorrect autocorrect for Performance/MapCompact when using map.compact.first and there is a line break after map.compact and receiver. (@koic)
#273: Fix an incorrect autocorrect for Performance/RedundantStringChars when using str.chars[0]. (@koic)
Changes
#270: Mark Performance/Sum auto-correction as unsafe and extend documentation. (@leoarnold)
#274: Unmark AutoCorrect: false from Performance/CaseWhenSplat. (@koic)
#275: Unmark AutoCorrect: false from Performance/TimesMap. (@koic)