Rubocop v0.88.0 Release Notes

Release Date: 2020-07-13 // almost 4 years ago
  • ๐Ÿ†• New features

    • ๐Ÿ‘• #8279: Recognise require method passed as argument in Lint/NonDeterministicRequireOrder cop. (@biinari)
    • ๐Ÿ’… #7333: Add new Style/RedundantFileExtensionInRequire cop. (@fatkodima)
    • ๐Ÿ‘• #8316: Support autocorrect for Lint/DisjunctiveAssignmentInConstructor cop. (@fatkodima)
    • #8242: Internal profiling available with bin/rubocop-profile and rake tasks. (@marcandre)
    • ๐Ÿ’… #8295: Add new Style/ArrayCoercion cop. (@fatkodima)
    • ๐Ÿ‘• #8293: Add new Lint/DuplicateElsifCondition cop. (@fatkodima)
    • ๐Ÿ’… #7736: Add new Style/CaseLikeIf cop. (@fatkodima)
    • ๐Ÿ’… #4286: Add new Style/HashAsLastArrayItem cop. (@fatkodima)
    • ๐Ÿ’… #8247: Add new Style/HashLikeCase cop. (@fatkodima)
    • #8286: Internal method expect_offense allows abbreviated offense messages. (@marcandre)

    ๐Ÿ› Bug fixes

    • #8232: Fix a false positive for Layout/EmptyLinesAroundAccessModifier when end immediately after access modifier. (@koic)
    • #7777: Fix crash for Layout/MultilineArrayBraceLayout when comment is present after last element. (@shekhar-patil)
    • #7776: Fix crash for Layout/MultilineMethodCallBraceLayout when comment is present before closing braces. (@shekhar-patil)
    • ๐Ÿ’… #8282: Fix Style/IfUnlessModifier bad precedence detection. (@tejasbubane)
    • ๐Ÿ’… #8289: Fix Style/AccessorGrouping to not register offense for accessor with comment. (@tejasbubane)
    • ๐Ÿ’Ž #8310: Handle major version requirements in Gemspec/RequiredRubyVersion. (@eugeneius)
    • ๐Ÿ’… #8315: Fix crash for Style/PercentLiteralDelimiters when the source contains invalid characters. (@eugeneius)
    • ๐Ÿ”ง #8239: Don't load .rubocop.yml files at all outside of the current project, unless they are personal configuration files and the project has no configuration. (@deivid-rodriguez)

    ๐Ÿ”„ Changes

    • #8021: Rewrite Layout/SpaceAroundMethodCallOperator cop to make it faster. (@fatkodima)
    • #8294: Add of to AllowedNames of MethodParameterName cop. (@AlexWayfer)