Rubocop v0.85.0 Release Notes

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

    • #6289: Add new CheckDefinitionPathHierarchy option for Naming/FileName. (@jschneid)
    • ๐Ÿ’… #8055: Add new Style/RedundantRegexpCharacterClass cop. (@owst)
    • #8069: New option for expect_offense to help format offense templates. (@marcandre)
    • ๐Ÿ’… #7908: Add new Style/RedundantRegexpEscape cop. (@owst)
    • #7978: Add new option OnlyFor to the Bundler/GemComment cop. (@ric2b)
    • #8063: Add new AllowedNames option for Naming/ClassAndModuleCamelCase. (@tejasbubane)
    • โœ… #8050: New option --display-only-failed that can be used with --format junit. Speeds up test report processing for large codebases and helps address the sorts of concerns raised at mikian/rubocop-junit-formatter #18. (@burnettk)
    • ๐Ÿ‘• #7746: Add new Lint/MixedRegexpCaptureTypes cop. (@pocke)

    ๐Ÿ› Bug fixes

    • ๐Ÿ‘• #8008: Fix an error for Lint/SuppressedException when empty rescue block in def. (@koic)
    • ๐Ÿ‘• #8012: Fix an incorrect autocorrect for Lint/DeprecatedOpenSSLConstant when deprecated OpenSSL constant is used in a block. (@koic)
    • ๐Ÿ‘• #8017: Fix a false positive for Lint/SuppressedException when empty rescue with comment in def. (@koic)
    • #7990: Fix resolving inherit_gem in remote configs. (@CvX)
    • ๐Ÿ‘• #8035: Fix a false positive for Lint/DeprecatedOpenSSLConstant when using double quoted string argument. (@koic)
    • โšก๏ธ #7971: Fix an issue where --disable-uncorrectable would not update uncorrected code with rubocop:todo. (@rrosenblum)
    • ๐Ÿ‘• #8035: Fix a false positive for Lint/DeprecatedOpenSSLConstant when argument is a variable, method, or consntant. (@koic)

    ๐Ÿ”„ Changes

    • #8056: (Breaking) Remove support for unindent/active_support/powerpack from Layout/HeredocIndentation, so it only recommends using squiggy heredoc. (@bquorning)