NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

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 https://github.com/realm/SwiftLint

   

Hacking with Swift is sponsored by RevenueCat

SPONSORED Building and maintaining in-app subscription infrastructure is hard. Luckily there's a better way. With RevenueCat, you can implement subscriptions for your app in hours, not months, so you can get back to building your app.

Try it for free

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.