Bug fixes
- #7439: Make
Style/FormatStringToken
ignore percent escapes (%%
). (@buehmann) - #7438: Fix assignment edge-cases in
Layout/MultilineAssignmentLayout
. (@gsamokovarov) - #7449: Make
Style/IfUnlessModifier
respectrubocop:disable
comments forMetrics/LineLength
. (@jonas054) - #7442: Fix an incorrect autocorrect for
Style/SafeNavigation
when an object check followed by a method call with a comment at EOL. (@koic) - #7434: Fix an incorrect autocorrect for
Style/MultilineWhenThen
when the body ofwhen
branch starts withthen
. (@koic) - #7464: Let
Performance/StartWith
andPerformance/EndWith
correct regexes that contain forward slashes. (@eugeneius)
Changes
- #7465: Add
os
to allowed names ofNaming/UncommunicativeMethodParamName
cop in default config. (@nijikon) - #7446: Add
merge
to list of non-mutating methods. (@cstyles) - #7077: (Breaking) Rename
Unneeded*
cops toRedundant*
(e.g.,Style/UnneededPercentQ
becomesStyle/RedundantPercentQ
). (@scottmatthewman) - #7396: Display assignments, branches, and conditions values with the offense. (@avmnu-sng)