ypresto / SwiftLintXcode

An Xcode plug-in to format your code using SwiftLint.
Other
351 stars 15 forks source link

ypresto/SwiftLintXcode#11 always call autocorrect with --format option. #12

Closed r3wald closed 4 years ago

r3wald commented 8 years ago

I only added the new --format option. Works well.

ypresto commented 8 years ago

SwiftLint only supports 4 spaces indentation. https://github.com/realm/SwiftLint/blob/dd8ea842a8dbdc745aef6f4b5b5dbcbab9e1770d/Source/swiftlint/Commands/AutoCorrectCommand.swift#L32

If this is not enforced by swiftlint lint, IMO to use or not to use --format should be configurable.

r3wald commented 7 years ago

You're absolutly right, but at the moment that's beyond my possibilities. I'm still learning... Any hints?

ypresto commented 7 years ago

I'll try to implement setting dialog for #1, after below nasty issue is solved... https://github.com/alcatraz/Alcatraz/issues/475