New features
- #7977: Add
Layout/RedundantLineBreak
cop. (@jonas054) - #9691: Add configuration parameter
InspectBlocks
toLayout/RedundantLineBreak
. (@jonas054) - #9684: Support
IgnoredMethods
option forLint/AmbguousBlockAssociation
. (@gprado) - #9358: Support
restrictive_version_specificiers
option inBundler/GemComment
cop. (@RobinDaugherty)
Bug fixes
- #5576: Fix problem with inherited
Include
parameters. (@jonas054) - #9690: Fix an incorrect auto-correct for
Style/IfUnlessModifier
when using a method with heredoc argument. (@koic) - #9681: Fix an incorrect auto-correct for
Style/RedundantBegin
when using modifierif
single statement inbegin
block. (@koic) - #9698: Fix an error for
Style/StructInheritance
when extending instance ofStruct
withoutdo
...end
and class body is empty and single line definition. (@koic) - #9700: Avoid warning about Ruby version mismatch. (@marcandre)
- #9636: Resolve symlinks when excluding directories. (@ob-stripe)
- #9707: Fix false positive for
Style/MethodCallWithArgsParentheses
withomit_parentheses
style on an endlessdefs
node. (@dvandersluis) - #9689: Treat parens around array items the same for children and deeper descendants. (@dvandersluis)
- #9676: Fix an error for
Style/StringChars
when usingsplit
without parentheses. (@koic) - #9712: Fix an incorrect auto-correct for
Style/HashConversion
whenHash[]
as a method argument without parentheses. (@koic) - #9704: Fix an incorrect auto-correct for
Style/SingleLineMethods
when single line method call without parentheses. (@koic) - #9683: Fix an incorrect auto-correct for
Style/HashConversion
when usingzip
method without argument inHash[]
. (@koic) - #9715: Fix an incorrect auto-correct for
EnforcedStyle: require_parentheses
ofStyle/MethodCallWithArgsParentheses
withStyle/RescueModifier
. (@koic)
Changes
- #7544: Add --no-parallel (-P/--parallel can not be combined with --auto-correct). (@kwerle)
- #9648: Drop support for Ruby 2.4. (@koic)
- #9647: The parallel flag will now be automatically ignored when combined with
--auto-correct
,--auto-gen-config
, or-F/--fail-fast
. Previously, an error was raised and execution stopped. (@rrosenblum)