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

HWS+ SwiftLint Question

Forums > SwiftUI

I just finished cleaning up my code with SwiftLint and it is great thing indeed. However, most of my errors were about all my whitespaces. I noticed that Paul's SwiftLint request on the terminal did not have that issue and I did not see anywhere that he incorporated a "ignore" command like we did with the "id" in the Awards file. Fortunately the whitespace errors are not fatal but it just bugs me and I would like to figure it out. So my question is: How to make swiftlint ignore my whitespaces?

3      

That's because in the video he removes these whitespace lines. It was annoying going through them all, but you have 2 options here:

1- Go to the github for SwiftLint and checkout how to disable certain rules.

2- Here's a tweet that should actually remove the whitespace from empty lines:

https://twitter.com/johnsundell/status/952142890020540416?lang=en

It's a setting in Xcode.

3      

Thanks I figured it was something simple. I really am grateful for the help.

3      

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

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.