Skip to content

@bbatsov bbatsov released this Jan 16, 2019 · 250 commits to master since this release

New features

Bug fixes

  • #6627: Fix handling of hashes in trailing comma. (@abrom)
  • #6623: Fix heredoc detection in trailing comma. (@palkan)
  • #6100: Fix a false positive in Naming/ConstantName cop when rhs is a conditional expression. (@tatsuyafw)
  • #6526: Fix a wrong line highlight in Lint/ShadowedException cop. (@tatsuyafw)
  • #6617: Prevent traversal error on infinite ranges. (@drenmi)
  • #6625: Revert the "auto-exclusion of files ignored by git" feature. (@bbatsov)
  • #4460: Fix the determination of unsafe auto-correct in Style/TernaryParentheses. (@jonas054)
  • #6651: Fix auto-correct issue in Style/RegexpLiteral cop when there is string interpolation. (@roooodcastro)
  • #6670: Fix a false positive for Style/SafeNavigation when a method call safeguarded with a negative check for the object. (@koic)
  • #6633: Fix Lint/SafeNavigation complaining about use of to_d. (@tejasbubane)
  • #6575: Fix Naming/PredicateName suggesting invalid rename. (@tejasbubane)
  • #6673: Fix Style/DocumentationMethod cop to recognize documentation comments for def inline with module_function. (@tejasbubane)

Changes

  • #6607: Improve CLI usage message for --stdin option. (@jaredbeck)
  • #6641: Specify Performance/RangeInclude as unsafe because Range#include? and Range#cover? are not equivalent. (@koic)
  • #6636: Move FlipFlop cop from Style to Lint department because flip-flop is deprecated since Ruby 2.6.0. (@koic)
  • #6661: Abandon making frozen string literals default for Ruby 3.0. (@koic)
Assets 2
You can’t perform that action at this time.