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 as to_s and to_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 of fail and raise.
    • ๐Ÿ†• New cop ModuleFunction checks for usage of extend self in modules.

    ๐Ÿ› Bugs fixed

    • ๐Ÿ›  #374: Fixed error at post condition loop (begin-end-while, begin-end-until) in UnusedLocalVariable and ShadowingOuterLocalVariable.
    • #373 and #376: Allow braces around multi-line blocks if do-end would change the meaning of the code.
    • ๐Ÿ’Ž RedundantSelf now allows self. followed by any ruby keyword.
    • #391: Fix bug in counting slashes in a regexp.
    • #394: DotPosition cop handles correctly code like l.(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.