Rubocop v0.86.0 Release Notes

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

    • ๐Ÿ’… #8147: Add new Style/RedundantFetchBlock cop. (@fatkodima)
    • ๐Ÿ’… #8111: Add auto-correct for Style/StructInheritance. (@tejasbubane)
    • #8113: Let expect_offense templates add variable-length whitespace with _{foo}. (@eugeneius)
    • ๐Ÿ’… #8148: Support auto-correction for Style/MultilineTernaryOperator. (@koic)
    • ๐Ÿ’… #8151: Support auto-correction for Style/NestedTernaryOperator. (@koic)
    • ๐Ÿ‘• #8142: Add Lint/ConstantResolution cop. (@robotdana)
    • ๐Ÿ‘• #8170: Support auto-correction for Lint/RegexpAsCondition. (@koic)
    • ๐Ÿ‘• #8169: Support auto-correction for Lint/RaiseException. (@koic)

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #8132: Fix the problem with Naming/MethodName: EnforcedStyle: camelCase and _ or i variables. (@avrusanov)
    • ๐Ÿ‘• #8115: Fix false negative for Lint::FormatParameterMismatch when argument contains formatting. (@andrykonchin)
    • ๐Ÿ’… #8131: Fix false positive for Style/RedundantRegexpEscape with escaped delimiters. (@owst)
    • ๐Ÿ‘• #8124: Fix a false positive for Lint/FormatParameterMismatch when using named parameters with escaped %. (@koic)
    • ๐Ÿ‘ป #7979: Fix "uninitialized constant DidYouMean::SpellChecker" exception. (@bquorning)
    • ๐Ÿ’… #8098: Fix a false positive for Style/RedundantRegexpCharacterClass when using interpolations. (@owst)
    • #8150: Fix a false positive for Layout/EmptyLinesAroundAttributeAccessor when using attribute accessors in if ... else branches. (@koic)
    • #8179: Fix an infinite correction loop error for Layout/MultilineBlockLayout when missing newline before opening parenthesis ( for block body. (@koic)
    • ๐Ÿ’… #8185: Fix a false positive for Style/YodaCondition when interpolation is used on the left hand side. (@koic)

    ๐Ÿ”„ Changes

    • #8146: Use UTC in RuboCop todo file generation. (@mauro-oto)
    • 0๏ธโƒฃ #8149: Cop Metrics/CyclomaticComplexity now counts &., ||=, &&= and blocks known to iterate. Default bumped from 6 to 7. (@marcandre)
    • ๐Ÿ‘• #8178: Mark unsafe for Lint/RaiseException. (@koic)