Rubocop v0.69.0 Release Notes
Release Date: 2019-05-13 // almost 5 years ago-
๐ New features
- โ Add support for subclassing using
Class.new
toLint/InheritException
. (@houli) - ๐
#6779: Add new cop
Style/NegativeUnless
that checks for unless with negative condition. (@tejasbubane)
๐ Bug fixes
- ๐
#6900: Fix
Rails/TimeZone
autocorrectTime.current
toTime.zone.now
. (@vfonic) - ๐
#6900: Fix
Rails/TimeZone
to preferTime.zone.#{method}
over other acceptable corrections. (@vfonic) - #7007: Fix
Style/BlockDelimiters
withbraces_for_chaining
style false positive, when chaining using safe navigation. (@Darhazer) - ๐ #6880: Fix
.rubocop
file parsing. (@hoshinotsuyoshi) - ๐ #5782: Do not autocorrect
Lint/UnifiedInteger
ifTargetRubyVersion < 2.4
. (@lavoiesl) - ๐ #6387: Prevent
Lint/NumberConversion
from reporting error withTime
/DateTime
. (@tejasbubane) - ๐
#6980: Fix
Style/StringHashKeys
to allow string as keys for hash arguments to gsub methods. (@tejasbubane) - ๐
#6969: Fix a false positive with block methods in
Style/InverseMethods
. (@dduugg) - #6729: Handle array spread for
change_column_default
inRails/ReversibleMigration
cop. (@tejasbubane) - #7033: Fix an error for
Layout/EmptyLineAfterGuardClause
when guard clause is a ternary operator. (@koic)
๐ Changes
- ๐ #6945: Drop support for Ruby 2.2. (@koic)
- ๐
#6945: Set default
EnforcedStyle
tosquiggly
option forLayout/IndentHeredoc
andauto_detection
option is removed. (@koic) - ๐
#6945: Set default
EnforcedStyle
toalways
option forStyle/FrozenStringLiteralComment
andwhen_needed
option is removed. (@koic) - #7027: Allow unicode/display_width dependency version 1.6.0. (@tagliala)
- โ Add support for subclassing using