Setup SwiftLint for iOS project
Opened this issue · 0 comments
8bitzz commented
Reference: SwiftLint Github
Installation
Using CocoaPods:
Simply add the following line to your Podfile:
pod 'SwiftLint'
Usage
-
Click the Project in the file navigator
-
Click the primary app target
-
Go to Build Phases
-
Click the
+
button and select "New Run Script Phase"
- Insert the following as the script
- Move your SwiftLint phase directly before 'Compile Sources' step, to detect errors quickly before compiling
That's all for this blog. Happy coding :]