Back to Rubocop

V1.76.0

relnotes/v1.76.0.md

1.86.12.3 KB
Original Source

New features

Bug fixes

  • #14228: Fix a false positive for Style/RedundantParentheses when using a one-line rescue expression as a method argument. (@koic)
  • #14224: Fix false negatives for Style/RedundantParentheses when using one-line pattern matching. (@koic)
  • #14205: False negatives in Style/SafeNavigation when a ternary expression is used in a method argument. (@steiley)
  • #14226: Fix Lint/LiteralAsCondition autocorrect when branches of a condition have comments. (@zopolis4)

Changes

  • #14066: Add EnforcedStyle: allow_single_line as the default to Style/ItBlockParameter. (@koic)
  • #13788: Disable Lint/ShadowingOuterLocalVariable by default. (@nekketsuuu)
  • #14215: Recognize inequation (!=) in Lint/IdentityComparison. (@lovro-bikic)