It's a common practice to run linter tools in Continuous Integration. Git Hooks can help automate this process and stop lint errors from failing your CI.
Review of how to use CircleCI with your iOS application. Includes explanation of how to handle bumps in the road on the path to CI and easy deployments.