New features
- #6604: Add auto-correct support to
Rails/LinkToBlank
. (@Intrepidd) - #6660: Add new
Rails/IgnoredSkipActionFilterOption
cop. (@wata727) - #6363: Allow
Style/YodaCondition
cop to be configured to enforce yoda conditions. (@tejasbubane) - #6150: Add support to enforce disabled cops to be executed. (@roooodcastro)
- #6596: Add new
Rails/BelongsTo
cop with auto-correct for Rails >= 5. (@petehamilton)
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 ofto_d
. (@tejasbubane) - #6575: Fix
Naming/PredicateName
suggesting invalid rename. (@tejasbubane) - #6673: Fix
Style/DocumentationMethod
cop to recognize documentation comments fordef
inline withmodule_function
. (@tejasbubane)
Changes
- #6607: Improve CLI usage message for --stdin option. (@jaredbeck)
- #6641: Specify
Performance/RangeInclude
as unsafe becauseRange#include?
andRange#cover?
are not equivalent. (@koic) - #6636: Move
FlipFlop
cop fromStyle
toLint
department because flip-flop is deprecated since Ruby 2.6.0. (@koic) - #6661: Abandon making frozen string literals default for Ruby 3.0. (@koic)