Rubocop v0.77.0 Release Notes

Release Date: 2019-11-27 // 15 days ago
  • 🐛 Bug fixes

    • 💅 #7493: Fix Style/RedundantReturn to inspect conditional constructs that are preceded by other statements. (@buehmann)
    • #7509: Fix Layout/SpaceInsideArrayLiteralBrackets to correct empty lines. (@ayacai115)
    • 💅 #7517: Style/SpaceAroundKeyword allows :: after super. (@ozydingo)
    • 💅 #7515: Fix a false negative for Style/RedundantParentheses when calling a method with safe navigation operator. (@koic)
    • #7477: Fix line length autocorrect for semicolons in string literals. (@maxh)
    • 💅 #7522: Fix a false-positive edge case (n % 2 == 2) for Style/EvenOdd. (@buehmann)

    🔄 Changes

    • #7077: (Breaking) Further standardisation of cop names. (@scottmatthewman)
    • #7469: (Breaking) Replace usages of the terms Whitelist and Blacklist with better alternatives. (@koic)
    • 🚚 #7502: Remove SafeMode module. (@koic)

Previous changes from v0.76.0

  • 🐛 Bug fixes

    • 💅 #7439: Make Style/FormatStringToken ignore percent escapes (%%). (@buehmann)
    • #7438: Fix assignment edge-cases in Layout/MultilineAssignmentLayout. (@gsamokovarov)
    • 💅 #7449: Make Style/IfUnlessModifier respect rubocop:disable comments for Metrics/LineLength. (@jonas054)
    • 💅 #7442: Fix an incorrect autocorrect for Style/SafeNavigation when an object check followed by a method call with a comment at EOL. (@koic)
    • 💅 #7434: Fix an incorrect autocorrect for Style/MultilineWhenThen when the body of when branch starts with then. (@koic)
    • 🐎 #7464: Let Performance/StartWith and Performance/EndWith correct regexes that contain forward slashes. (@eugeneius)

    🔄 Changes

    • 0️⃣ #7465: Add os to allowed names of Naming/UncommunicativeMethodParamName cop in default config. (@nijikon)
    • 💅 #7446: Add merge to list of non-mutating methods. (@cstyles)
    • #7077: (Breaking) Rename Unneeded* cops to Redundant* (e.g., Style/UnneededPercentQ becomes Style/RedundantPercentQ). (@scottmatthewman)
    • #7396: Display assignments, branches, and conditions values with the offense. (@avmnu-sng)