Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocorrect corrects parts that are wrapped with swiftlint-disable #601

Closed
ldiqual opened this issue Apr 3, 2016 · 0 comments · Fixed by #766
Closed

Autocorrect corrects parts that are wrapped with swiftlint-disable #601

ldiqual opened this issue Apr 3, 2016 · 0 comments · Fixed by #766
Labels

Comments

@ldiqual
Copy link

ldiqual commented Apr 3, 2016

Running swiftlint autocorrect will fix lines that are wrapped with swiftlint-disable/enable.

For instance:

 // swiftlint:disable comma
 let cancelOptions = [
     XLFormOptionsObject(value: TestConfig.CancelMode.NotCancelled.rawValue, displayText: "Not cancelled"),
-    XLFormOptionsObject(value: TestConfig.CancelMode.ByThem.rawValue,       displayText: "Cancelled by them"),
-    XLFormOptionsObject(value: TestConfig.CancelMode.ByMe.rawValue,         displayText: "Cancelled by me")
+    XLFormOptionsObject(value: TestConfig.CancelMode.ByThem.rawValue, displayText: "Cancelled by them"),
+    XLFormOptionsObject(value: TestConfig.CancelMode.ByMe.rawValue, displayText: "Cancelled by me")
 ]
 // swiftlint:enable comma

SwiftLint 0.9.2

@jpsim jpsim added the bug label Apr 6, 2016
masters3d added a commit to masters3d/SwiftLint that referenced this issue Jul 13, 2016
masters3d added a commit to masters3d/SwiftLint that referenced this issue Jul 13, 2016
masters3d added a commit to masters3d/SwiftLint that referenced this issue Aug 11, 2016
masters3d added a commit to masters3d/SwiftLint that referenced this issue Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants