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 definition ends from EndAlignment, and is configurable. ([@jonas054][])
    • #1145: New cop ClassCheck enforces consistent use of is_a? or kind_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) to LineLength cop. ([@yujinakayama][])

    ๐Ÿ”„ Changes

    • Unused block local variables (obj.each { |arg; this| }) are now handled by UnusedBlockArgument cop instead of UselessAssignment 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 in EachWithObject. ([@bbatsov][])
    • #1152: Handle while/until with no body in Next. ([@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 in IndentationWidth. ([@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 in Next cop. ([@yujinakayama][])
    • ๐Ÿ‘ #1165: Support rescue/else/ensure bodies in IndentationWidth. ([@jonas054][])
    • ๐Ÿ›  Fix false positive for aligned list of values after when in IndentationWidth. ([@jonas054][])