Swiftlint: Xcode file saving inserts trailing whitespaces everywhere

Created on 16 Dec 2015  ·  3Comments  ·  Source: realm/SwiftLint

Xcode seems to be going crazy and inserts whitespaces everywhere just after saving any file.
Auto indent seems to fix it, but right after saving, all the whispaces come back.
Any idea on how to work around this?
Really wish I didn't have to add trailing_whitespace to the ignore list of the .swiftlint.yml file.

Image

Most helpful comment

screen shot 2015-12-16 at 10 34 44 am

All 3 comments

screen shot 2015-12-16 at 10 34 44 am

I already had it on, wonder if something is acting up. I didn't have this problem before today.

screen shot 2015-12-16 at 18 43 53

Auto indent (ctrl + i) introduces trailing whitespaces in lines, and "automatically trim trailing whitespaces" do not trigger on auto indent. You have to select all content in your file, cut and paste it again before saving to trigger an "edit"

Was this page helpful?
0 / 5 - 0 ratings