New features
- #5980: Add
--safe
and--safe-auto-correct
options. (@Darhazer) - #4156: Add command line option
--auto-gen-only-exclude
. (@Ana06, @jonas054) - #6386: Add
VersionAdded
meta data to config/default.yml when runningrake new_cop
. (@koic) - #6395: Permit to specify TargetRubyVersion 2.6. (@koic)
- #6392: Add
Whitelist
config toRails/SkipsModelValidations
rule. (@DiscoStarslayer)
Bug fixes
- #6330: Fix an error for
Rails/ReversibleMigration
when using variable assignment. (@koic, @scottmatthewman) - #6331: Fix a false positive for
Style/RedundantFreeze
and a false negative forStyle/MutableConstant
when assigning a regexp object to a constant. (@koic) - #6334: Fix a false negative for
Style/RedundantFreeze
when assigning a range object to a constant. (@koic) - #5538: Fix false negatives in modifier cops when line length cop is disabled. (@drenmi)
- #6340: Fix an error for
Rails/ReversibleMigration
when block argument is empty. (@koic) - #6274: Fix "[Corrected]" message being displayed even when nothing has been corrected. (@jekuta)
- #6380: Allow use of a hyphen-separated frozen string literal in Emacs style magic comment. (@y-yagi)
- Fix and improve
LineLength
cop for tab-indented code. (@AlexWayfer)