SwiftLint v0.18.0 Release Notes

  • 💥 Breaking
    • 👕 Replace YamlSwift with Yams. SwiftLint no longer includes YamlSwift. If your project implicitly depends on YamlSwift, you need to modify it to depend on YamlSwift explicitly.
      norio-nomura #1412

    • Yams interprets YAML more strictly than YamlSwift, so if your YAML configurations previously worked with SwiftLint but didn't fully conform to the YAML 1.2 standard, you'll need to fix those validation errors. For example:

      custom_rules:
      wrong_regex:
        name: "wrong regex"
        regex: "((assert|precondition)\(false)" # '\' in "" means escape sequence
      strict_regex:
        name: "strict regex"
        regex: '((assert|precondition)\(false)' # Use single quotes
      
    ✨ Enhancements
    • 👌 Support compiling with Xcode 8.3 and Swift 3.1.
      Keith Smiley

    • 🛠 Fix false positives on for_where rule and skip violation on complex conditions.
      Marcelo Fabri #1387

    • 🔧 Print YAML configuration errors in locatable format compatible with Xcode's Issue Navigator.

    🐛 Bug Fixes