Rubocop v0.11.0 Release Notes
Release Date: 2013-08-09 // over 10 years ago-
๐ New features
- #421:
TrivialAccessors
now ignores methods on user-configurable whitelist (such asto_s
andto_hash
). - ๐ง #369: New option
--auto-gen-config
outputs RuboCop configuration that disables all cops that detect any offences. - ๐ง The list of annotation keywords recognized by the
CommentAnnotation
cop is now configurable. - ๐ง Configuration file names are printed as they are loaded in
--debug
mode. - ๐ Auto-correct support added in
AlignParameters
cop. - ๐ New cop
UselessComparison
checks for comparisons of the same arguments. - ๐ New cop
UselessAssignment
checks for useless assignments to local variables. - ๐ New cop
SignalException
checks for proper usage offail
andraise
. - ๐ New cop
ModuleFunction
checks for usage ofextend self
in modules.
๐ Bugs fixed
- ๐ #374: Fixed error at post condition loop (
begin-end-while
,begin-end-until
) inUnusedLocalVariable
andShadowingOuterLocalVariable
. - #373 and #376: Allow braces around multi-line blocks if
do
-end
would change the meaning of the code. - ๐
RedundantSelf
now allowsself.
followed by any ruby keyword. - #391: Fix bug in counting slashes in a regexp.
- #394:
DotPosition
cop handles correctly code likel.(1)
. - โก๏ธ #390:
CommentAnnotation
cop allows keywords (e.g. Review, Optimize) if they just begin a sentence. - #400: Fix bug concerning nested defs in
EmptyLineBetweenDefs
cop. - #399: Allow assignment inside blocks in
AssignmentInCondition
cop. - ๐ Fix bug in favor_modifier.rb regarding missed offences after else etc.
- ๐ #393: Retract support for multiline chaining of blocks (which fixed #346), thus rejecting issue 346.
- #389: Ignore symbols that are arguments to Module#private_constant in
SymbolName
cop. - #387: Do auto-correct in
AndOr
cop only if it does not change the meaning of the code. - #398: Don't display blank lines in the output of the clang formatter.
- #283: Refine
StringLiterals
string content check.
- #421: