GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

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 Essential Developer.

SPONSORED Transform your career with the iOS Lead Essentials. Unlock over 40 hours of expert training, mentorship, and community support to secure your place among the best devs. Click for early access to this limited offer and a FREE crash course.

Click to save your free spot 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.