relnotes/v0.24.0.md
This release is mostly about fixing bugs, but it also features a few new cops.
Below is the list of all the gory details. Enjoy!
UselessSetterCall. (@yujinakayama)UnneededCapitalW cop does auto-correction. (@sfeldon)DefEndAlignment takes over responsibility for checking alignment of method definition ends from EndAlignment, and is configurable. (@jonas054)ClassCheck enforces consistent use of is_a? or kind_of?. (@bbatsov)SpaceBeforeComma detects spaces before a comma. (@agrimm)SpaceBeforeSemicolon detects spaces before a semicolon. (@agrimm)UnneededPercentQ checks for usage of the %q/%Q syntax when '' or "" would do. (@jonas054)AllowURI option (enabled by default) to LineLength cop. (@yujinakayama)obj.each { |arg; this| }) are now handled by UnusedBlockArgument cop instead of UselessAssignment cop. (@yujinakayama)TrailingComma that a trailing comma is never allowed for lists where some items share a line. (@jonas054)reduce/inject with no arguments in EachWithObject. (@bbatsov)while/until with no body in Next. (@tamird)UselessSetterCall for setter call on a local variable that contains a non-local object. (@yujinakayama)begin..end structures, blocks, and parenthesized expressions in IndentationWidth. (@jonas054)attr is considered an offense. (@jonas054)TrailingComma. (@jonas054)ParenthesesAroundCondition. (@bbatsov)return in a loop in Next cop. (@yujinakayama)rescue/else/ensure bodies in IndentationWidth. (@jonas054)when in IndentationWidth. (@jonas054)