Rubocop v0.24.0 Release Notes
Release Date: 2014-06-25 // almost 10 years ago-
๐ New features
- ๐ #639: Support square bracket setters in
UselessSetterCall
. ([@yujinakayama][]) - #835:
UnneededCapitalW
cop does auto-correction. ([@sfeldon][]) - ๐ง #1092: New cop
DefEndAlignment
takes over responsibility for checking alignment of method definitionend
s fromEndAlignment
, and is configurable. ([@jonas054][]) - #1145: New cop
ClassCheck
enforces consistent use ofis_a?
orkind_of?
. ([@bbatsov][]) - #1161: New cop
SpaceBeforeComma
detects spaces before a comma. ([@agrimm][]) - #1161: New cop
SpaceBeforeSemicolon
detects spaces before a semicolon. ([@agrimm][]) - #835: New cop
UnneededPercentQ
checks for usage of the%q
/%Q
syntax when''
or""
would do. ([@jonas054][]) - 0๏ธโฃ #977: Add
AllowURI
option (enabled by default) toLineLength
cop. ([@yujinakayama][])
๐ Changes
- Unused block local variables (
obj.each { |arg; this| }
) are now handled byUnusedBlockArgument
cop instead ofUselessAssignment
cop. ([@yujinakayama][]) - #1141: Clarify in the message from
TrailingComma
that a trailing comma is never allowed for lists where some items share a line. ([@jonas054][])
๐ Bugs fixed
- #1133: Handle
reduce/inject
with no arguments inEachWithObject
. ([@bbatsov][]) - #1152: Handle
while/until
with no body inNext
. ([@tamird][]) - ๐ Fix a false positive in
UselessSetterCall
for setter call on a local variable that contains a non-local object. ([@yujinakayama][]) - #1158: Fix auto-correction of floating-point numbers. ([@bbatsov][])
- #1159: Fix checking of
begin
..end
structures, blocks, and parenthesized expressions inIndentationWidth
. ([@jonas054][]) - #1159: More rigid conditions for when
attr
is considered an offense. ([@jonas054][]) - #1167: Fix handling of parameters spanning multiple lines in
TrailingComma
. ([@jonas054][]) - #1169: Fix handling of ternary op conditions in
ParenthesesAroundCondition
. ([@bbatsov][]) - #1147: WordArray checks arrays with special characters. ([@camilleldn][])
- ๐ Fix a false positive against
return
in a loop inNext
cop. ([@yujinakayama][]) - ๐ #1165: Support
rescue
/else
/ensure
bodies inIndentationWidth
. ([@jonas054][]) - ๐ Fix false positive for aligned list of values after
when
inIndentationWidth
. ([@jonas054][])
- ๐ #639: Support square bracket setters in