Get Better With SwiftLint
Everything was going just fine, it compiles and runs with issue. Then you run SwiftLint on the code and suddenly feel very sad. But in the long run, you know it will make you stronger….right?
If you want to feel the pain of being judged, install SwiftLint and see how well you. If you are using Brew, simply
Brew install swiftlint
Or using CocoaPods
Then add a run script phase to your project in Xcode, and it will run the analysis every time you build.
if which swiftlint >/dev/null; then
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"