Rubocop v0.23.0 Release Notes
Release Date: 2014-06-02 // almost 10 years ago-
๐ New features
- #1117:
BlockComments
cop does auto-correction. ([@jonas054][]) - #1124:
TrivialAccessors
cop auto-corrects class-level accessors. ([@ggilder][]) - #1062: New cop
InlineComment
checks for inline comments. ([@salbertson][]) - #1118: Add checking and auto-correction of right brackets in
IndentArray
andIndentHash
. ([@jonas054][])
๐ Changes
- ๐
#1097: Add optional namespace prefix to cop names:
Style/LineLength
instead ofLineLength
in config files,--only
argument,--show-cops
output, and# rubocop:disable
. ([@jonas054][]) - #1075: More strict limits on when to require trailing comma. ([@jonas054][])
- ๐ Renamed
Rubocop
module toRuboCop
. ([@bbatsov][])
๐ Bugs fixed
- #1126: Fix
--auto-gen-config
bug withRegexpLiteral
where only the last file's results would be used. ([@ggilder][]) - #1104: Fix
EachWithObject
with modifier if as body. ([@geniou][]) - #1106: Fix
EachWithObject
with single method call as body. ([@geniou][]) - โ Avoid the warning about ignoring syck YAML engine from JRuby. ([@jonas054][])
- #1111: Fix problem in
EndOfLine
with reading non-UTF-8 encoded files. ([@jonas054][]) - #1115: Fix
Next
to ignore super nodes. ([@geniou][]) - #1117: Don't auto-correct indentation in scopes that contain block comments (
=begin
..=end
). ([@jonas054][]) - ๐ #1123: Support setter calls in safe assignment in
ParenthesesAroundCondition
. ([@jonas054][]) - ๐ #1090: Correct handling of documentation vs annotation comment. ([@jonas054][])
- ๐ #1118: Never write invalid ruby to a file in auto-correct. ([@jonas054][])
- #1120: Don't change indentation of heredoc strings in auto-correct. ([@jonas054][])
- #1109: Handle conditions with modifier ops in them in
ParenthesesAroundCondition
. ([@bbatsov][])
- #1117: