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

SOLVED: Lint - turn off trailing whitespace check

Forums > SwiftUI

I've been following along with the UltimatePortfolio app and have done the bit about using Lint. I get a lot of warnings like this one

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

These seem to be on the blank lines I've put in to space out the code. I noticed that Paul is not getting similar warnings, so I was wondering how I turned off this check?

2      

Goto

Perferences ( cmd , ) then in Text Editing tab there is a tab Editing and then check "Including whitespace-only lines" then when you change your code you will not get them.

Unfortunately do not clear them this time so you just have to delete the whitespace from those lines.

3      

Thanks Nigel, that seems to work fine.

2      

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.