⚠️ This project is still under active development and breaking changes is a guarantee. 😱
A linter and formatter using SwiftLint and SwiftFormat to enforce code styling. The idea is to have a stand-alone swift package to enforce a team's code styling, by using linting and formatting. The idea came from Airbnb Swift Style Guide and aims to take their existing approach just one step further.
swiftstyle --swift-format-path /opt/homebrew/bin/swiftformat --swift-format-config default.swiftformat --swift-lint-path /opt/homebrew/bin/swiftlint --swift-lint-config swiftlint.yml .During development run:
swift run swiftstyleAdd the package to Xcode as with any other swift package BUT don't add it to the project. i.e. don't add it the targets, this will cause unexpected errors.
To run swiftstyle for each build in Xcode add it as a Build Tool Plugin under Build Phases. StyleSwift will then run on each build.
TODO: Documentation
- Update
Makefilewith version - Run
make - Copy
checksumfrom above command and paste inPackage.swiftunder binary targetSwiftStyleBinary - Bump version in
urlinPackage.swiftunder binary targetSwiftStyleBinary - Commit changes and push
- Create new release on Github matching new version in
Makefile - Upload
swiftstyle.artifactbundle.zipas resource to the release
NOTES:
See issues for outstanding features/tasks