Skip to content

0.18.1: Misaligned Drum

Compare
Choose a tag to compare
@jpsim jpsim released this 06 Apr 23:53
· 3955 commits to main since this release
ab66412
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