What is a SwiftLint?
SwiftLint — A linting tool that enforces swift style and conventions, loosely based on GitHub’s swift style guide.
When you're working on a project which has a big team, it could be hard to maintain code style & standards, also manual code style check is always a tedious task.
Thus, it’s better to let a tool and CI do the job for us by enforcing everyone in the team to follow community standards.
The code review plays a vital role in
— Discovering the bugs before the deployment stage can save both time and money.
— Maintain consistent coding style across all company applications.
— Equip the team members with a greater knowledge of each other’s skill-sets and weaknesses, becoming more responsive to greater issues and discrepancies.
In this article, you will learn how to set up SwiftLint in your Xcode project, and how to add custom lint rules and integrate them with CI.