0.18.1: Misaligned Drum
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
-
Fix --lenient enforcement not being applied to all violations.
aaroncrespo
#1391 -
Fix false positives in
unused_optional_binding
rule.
Daniel Rodríguez Troitiño
#1376 -
Fix false positives in
redundant_discardable_let
rule.
Jeremy David Giesbrecht
#1415 -
Compile releases in the 'Release' configuration rather than 'Debug'.