Rubocop v1.2.0 Release Notes

Release Date: 2020-11-05 // over 3 years ago
  • ๐Ÿ†• New features

    • ๐Ÿ‘ #8983: Support auto-correction for Naming/HeredocDelimiterCase. (@koic)
    • #8004: Add new GitHubActionsFormatter formatter. (@lautis)
    • ๐Ÿ’… #8175: Add new AllowedCompactTypes option for Style/RaiseArgs. (@pdobb)
    • ๐Ÿ’… #8566: Add new Style/CollectionCompact cop. (@fatkodima)
    • #8925: Add --display-time option for displaying elapsed time of rubocop command. (@joshuapinter)
    • ๐Ÿ’… #8967: Add new Style/NegatedIfElseCondition cop. (@fatkodima)
    • ๐Ÿ’… #8984: Support auto-correction for Style/DoubleNegation. (@koic)
    • ๐Ÿ‘• #8992: Support auto-correction for Lint/ElseLayout. (@koic)
    • ๐Ÿ‘• #8988: Support auto-correction for Lint/UselessSetterCall. (@koic)
    • ๐Ÿ‘ #8982: Support auto-correction for Naming/BinaryOperatorParameterName. (@koic)

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #8989: Fix multibyte support in the regexp node handler that led Style/RedundantRegexpEscape to malfunction and corrupt a program in auto-correction. (@knu)
    • #8912: Fix Layout/ElseAlignment for rescue/else/ensure inside do/end blocks with assignment. (@miry)
    • ๐Ÿ‘• #8971: Fix a false alarm for # rubocop:disable Lint/EmptyBlock inline comment with Lint/RedundantCopDisableDirective. (@koic)
    • ๐Ÿ’… #8976: Fix an incorrect auto-correct for Style/KeywordParametersOrder when when kwoptarg is before kwarg and argument parentheses omitted. (@koic)
    • #8084: Fix a bug in how Layout/SpaceAroundBlockParameters handles block parameters with a trailing comma. (@bquorning)
    • ๐Ÿ’… #8966: Fix Layout/SpaceInsideParens to enforce no spaces in empty parens for all styles. (@joshuapinter)

    ๐Ÿ”„ Changes

    • ๐Ÿ‘ #5717: Support defined?-based memoization for Naming/MemoizedInstanceVariableName cop. (@fatkodima)
    • #8964: Extend Naming/VariableNumber cop to handle method names and symbols. (@fatkodima)