Rubocop v1.6.0 Release Notes

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

    • #9125: Allow ConfigObsoletion to be extended by other RuboCop libraries. (@dvandersluis)
    • ๐Ÿ’… #9182: Support auto-correction for Style/RedundantArgument. (@koic)
    • ๐Ÿ’… #9186: Support auto-correction for Style/FloatDivision. (@koic)
    • ๐Ÿ’… #9167: Support auto-correct for StyleSingleLineBlockParams. (@koic)

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #9177: Remove back-ref related code from Style/SpecialGlobalVars. (@r7kamura)
    • ๐Ÿ’… #9160: Fix an incorrect auto-correct for Style/IfUnlessModifier and Style/SoleNestedConditional when auto-correction conflicts for guard condition. (@koic)
    • ๐Ÿ’… #9174: Handle send nodes with unparenthesized arguments in Style/SoleNestedConditional. (@dvandersluis)
    • #9184: Layout/EmptyLinesAroundAttributeAccessor fails if the attr_accessor is the last line of the file. (@tas50)

    ๐Ÿ”„ Changes

    • ๐Ÿ”ง #9171: Add "did you mean" message when failing due to invalid cops in configuration. (@dvandersluis)
    • ๐Ÿ’… #8897: Change Style/StringConcatenation to accept line-end concatenation between two strings so that Style/LineEndConcatenation can handle it instead. (@dvandersluis)
    • ๐Ÿ’… #9172: Add Style/PerlBackrefs targets and change message more detailed. (@r7kamura)
    • โšก๏ธ #9187: Update formatters to output [Correctable] for correctable offenses. (@dvandersluis)
    • ๐Ÿš… #9169: Add obsoletion warnings for Performance/* and Rails/* which are in separate gems now. (@dvandersluis)

Previous changes from v1.5.2

  • ๐Ÿ› Bug fixes

    • ๐Ÿ’… #9152: Fix an incorrect auto-correct for Style/SoleNestedConditional when nested || operator modifier condition. (@koic)
    • #9161: Fix a false positive for Layout/HeredocArgumentClosingParenthesis when using subsequence closing parentheses in the same line. (@koic)
    • #9151: Fix SuggestExtensions to not suggest extensions that are installed but not direct dependencies. (@dvandersluis)
    • ๐Ÿ’… #8985: Fix Style/StringConcatenation autocorrect generating invalid ruby. (@tejasbubane)
    • #9155: Fix a false positive for Layout/MultilineMethodCallIndentation when multiline method chain has expected indent width and the method is preceded by splat for EnforcedStyle: indented_relative_to_receiver. (@koic)

    ๐Ÿ”„ Changes