New features
- #5881: Add new
Rails/BulkChangeTable
cop. (@wata727) - #5444: Add new
Style/AccessModifierDeclarations
cop. (@brandonweiss) - #5803: Add new
Style/UnneededCondition
cop. (@balbesina) - #5406: Add new
Layout/ClosingHeredocIndentation
cop. (@siggymcfried) - #5823: Add new
slashes
style toRails/FilePath
since Ruby accepts forward slashes even on Windows. (@sunny) - New cop
Layout/LeadingBlankLines
checks for empty lines at the beginning of a file. (@rrosenblum)
Bug fixes
- #5897: Fix
Style/SymbolArray
andStyle/WordArray
not working on arrays of size 1. (@TikiTDO) - #5894: Fix
Rails/AssertNot
to allow it to have failure message. (@koic) - #5888: Do not register an offense for
headers
orenv
keyword arguments inRails/HttpPositionalArguments
. (@rrosenblum) - Fix the indentation of autocorrected closing squiggly heredocs. (@garettarrowood)
- #5908: Fix
Style/BracesAroundHashParameters
auto-correct going past the end of the file when the closing curly brace is on the last line of a file. (@EiNSTeiN-) - Fix a bug where
Style/FrozenStringLiteralComment
would be added to the second line if the first line is empty. (@rrosenblum) - #5914: Make
Layout/SpaceInsideReferenceBrackets
aware ofno_space
when using nested reference brackets. (@koic) - #5799: Fix false positive in
Style/MixinGrouping
when method namedinclude
accepts block. (@Darhazer)
Changes
- #5937: Add new
--fix-layout/-x
command line alias. (@scottmatthewman) - #5887: Remove
Lint/SplatKeywordArguments
cop. (@koic) - #5761: Add
httpdate
to acceptedRails/TimeZone
methods. (@cupakromer) - #5899: Add
xmlschema
to acceptedRails/TimeZone
methods. (@koic) - #5906: Move REPL command from
rake repl
task tobin/console
command. (@koic) - #5917: Let
inherit_mode
work for default configuration too. (@jonas054) - #5929: Stop including string extensions from
unicode/display_width
. (@nroman-stripe)