Rubocop v1.1.0 Release Notes

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

    • ๐Ÿ‘• #8896: Add new Lint/DuplicateRegexpCharacterClassElement cop. (@owst)
    • ๐Ÿ‘• #8895: Add new Lint/EmptyBlock cop. (@fatkodima)
    • ๐Ÿ’… #8934: Add new Style/SwapValues cop. (@fatkodima)
    • ๐Ÿ’… #7549: Add new Style/ArgumentsForwarding cop. (@koic)
    • ๐Ÿ‘• #8859: Add new Lint/UnmodifiedReduceAccumulator cop. (@dvandersluis)
    • ๐Ÿ’… #8951: Support auto-correction for Style/MultipleComparison. (@koic)
    • ๐Ÿ‘• #8953: Add AllowMethodComparison option for Lint/MultipleComparison. (@koic)
    • #8960: Add Regexp::Expression#loc and #expression to replace parsed_tree_expr_loc. (@marcandre)
    • #8930: Add rake tasks for alternative way to specify Changelog entries. (@marcandre)
    • ๐Ÿ’… #8940: Add new Style/DocumentDynamicEvalDefinition cop. (@fatkodima)
    • ๐Ÿ‘• #7753: Add new Lint/ToEnumArguments cop. (@fatkodima)

    ๐Ÿ› Bug fixes

    • ๐Ÿ‘• #8921: Prevent Lint/LiteralInInterpolation from removing necessary interpolation in %W[] and %I[] literals. (@knu)
    • ๐Ÿ‘• #8708: Fix bad regexp recognition in Lint/OutOfRangeRegexpRef when there are multiple regexps. (@dvandersluis)
    • ๐Ÿ— #8945: Fix changelog task to build a correct changelog item when Fix #123 is encountered. (@dvandersluis)
    • #8914: Fix autocorrection for Layout/TrailingWhitespace in heredocs. (@marcandre)
    • ๐Ÿ’… #8913: Fix an incorrect auto-correct for Style/RedundantRegexpCharacterClass due to quantifier. (@ysakasin)
    • #8917: Fix rubocop comment directives handling of cops with multiple levels in department name. (@fatkodima)
    • #8918: Fix a false positives for Bundler/DuplicatedGem when a gem conditionally duplicated within if-elsif or case-when statements. (@fatkodima)
    • #8933: Fix an error for Layout/EmptyLinesAroundAccessModifier when the first line is a comment. (@matthieugendreau)
    • ๐Ÿ’… #8954: Fix autocorrection for Style/RedundantRegexpCharacterClass with %r. (@ysakasin)

    ๐Ÿ”„ Changes

    • ๐Ÿ‘• #8920: Remove Capybara's save_screenshot from Lint/Debugger. (@ybiquitous)
    • #8919: Require RuboCop AST 1.0.1 or higher. (@koic)
    • ๐Ÿ’… #8939: Accept comparisons of multiple method calls for Style/MultipleComparison. (@koic)
    • ๐Ÿ‘• #8950: Add IgnoredMethods and IgnoredClasses to Lint/NumberConversion. (@dvandersluis)