FREE TRIAL: Accelerate your app development career with Hacking with Swift+! >>

SOLVED: SwiftLint and CocoaPods

Forums > macOS

I have set up a build phase to run SwiftLint but, and this is both funny and obnoxious, not only does it check my project's code, but it checks the code in 3rd party pods that the project depends on. That seems broken. I can't reasonably go fixing complexity and variable name errors in that pod, only to have my changes blown away the next time it gets updated!

So what's the assumption, here? That all code, including dependencies, in a single product is written by the person/team who release that product? It's so cute that it's still 1986 somewhere.

But really, is there a way to exclude folders from linting?


yes goto swift github and look at excluded


Hacking with Swift is sponsored by Sentry

SPONSORED With Sentry’s error and performance monitoring for iOS you see mobile vitals that actually matter, can solve any latency issues quickly, and learn how each release is performing over time.

Get started

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.