UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Ultimate Portfolio - SwiftLint error (Solution)

Forums > Articles

For anyone that may be getting a fatal error when using swiftlint, below is a link to the solution:

https://github.com/realm/SwiftLint/issues/1466

Look for the 4th reply. It has a command line code that will fix the issue.

5      

I have done this to a project that I am doing ended up with 160 issues. but it was good and took me a hour or so to reduce it. But a good thing is that if you use //TODO: in your code this is lost but when using swiftlint give you a warning.

5      

I got the 160 errors too... most were the tab on an empty line. "Trailing whitespace"... not sure it has any impact on the code, but I did remove them.... should have finished the video first... would have been easier to get the warnings.

The error for me was running swiftlint for the first time. It was giving me a fatalError. Hence the post 😉

5      

This also fixed my error. The autocorrect command from the comments in that link was very helpful as well.

6      

Hacking with Swift is sponsored by Superwall

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn More

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.