NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

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?

1      

yes goto swift github and look at excluded https://github.com/realm/SwiftLint

1      

Hacking with Swift is sponsored by MadMachine

SPONSORED Want to try Swift on microcontrollers? MadMachine provides ways to interact with the physical world in a Swift way. Join us and have fun!

Get it now

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.