Back to Rubocop

V1.29.0

relnotes/v1.29.0.md

1.86.12.4 KB
Original Source

New features

Bug fixes

  • #10586: Fix a false positive for Style/DoubleNegation when using define_method or define_singleton_method. (@ydah)
  • #10579: Fix a false positive for Style/FetchEnvVar when calling a method with safe navigation. (@koic)
  • #10581: Fix a false positive for Style/FetchEnvVar when comparing with ENV['TERM']. (@koic)
  • #10589: Fix autocorrect for Style/RaiseArgs with EnforcedStyle: compact and exception object is assigned to a local variable. (@nobuyo)
  • #10325: Enhance Style/RedundantCondition by considering the case that variable assignments in each branch. (@nobuyo)
  • #10592: Fix infinite loop on Style/MultilineTernaryOperator if using assignment method and condition/branch is multiline. (@nobuyo)
  • #10536: Fix validation for command-line options combination of --display-only-fail-level-offenses and --auto-correct. (@nobuyo)

Changes

  • #10577: (Breaking) Drop support for Ruby 2.5 and JRuby 9.2 (CRuby 2.5 compatible). (@koic)
  • #10585: Enhance the autocorrect for Style/FetchEnvVar. (@johnny-miyake)
  • #10577: (Breaking) Retire Lint/UselessElseWithoutRescue cop. (@koic)