0.43.0-rc.2: Clothes Line Interface
Pre-release
Pre-release
This is a prerelease version. It won't be published to Homebrew or CocoaPods. But there are many other ways to install:
- Downloading the attached
SwiftLint.pkginstaller and launching it - Downloading the attached
portable_swiftlint.ziparchive, extracting it and moving the binary fromportable_swiftlint/swiftlintto/usr/local/binor elsewhere in yourPATH - Using Mint:
mint install realm/SwiftLint@0.43.0-rc.2 - Cloning and building from source:
git clone https://github.com/realm/SwiftLint.git && cd SwiftLint && git checkout 0.43.0-rc.2 && make install
Changes from 0.43.0-rc.1: 0.43.0-rc.1...0.43.0-rc.2
Breaking
- The command line syntax has slightly changed due to migrating from the
Commandant command line parsing library to swift-argument-parser.
For the most part the breaking changes are all to make the syntax more
unix compliant and intuitive to use. For example, commands such as
swiftlint --helporswiftlint -hnow work as expected.
The help output from various commands has greatly improved as well.
Notably:swiftlint autocorrectwas removed in favor of
swiftlint --fix.
Previous commands should continue to work temporarily to help with the
transition. Please let us know if there's a command that no longer
works and we'll attempt to add a bridge to help with its transition.
JP Simard
Experimental
- None.
Enhancements
-
Support relative paths in compilation databases for SwiftLint analyzer
rules.
JP Simard -
Add opt-in rule
discouraged_assertto encourage the use of
assertionFailure()and/orpreconditionFailure()over
assert(false).
Otavio Cordeiro