UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on 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?

3      

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

3      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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.