zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 174 forks source link

Integrate linter and code formatter in the build process #46

Open wojciechczerski opened 7 years ago

wojciechczerski commented 7 years ago

To ensure code format consistency we could use SwiftFormat. We can integrate it as a build phase that triggers a warning or an error if swiftformat command was not found. If we choose the error approach we should clearly describe in README that in order to contribute to the project you should first make sure you have the swiftformat installed.

In addition we could use SwiftLint to ensure a consistent code style. The integration options are the same as for the SwiftFormat.