We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
swift-format swift-5.2-branch Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51) Target: x86_64-apple-darwin19.4.0
md5: cd15c52cf061747e90bea8cc3162cbdf
Issue Description:
A trailing comma on a single-element Array will cause the lint phase to fail with a non-zero exit code:
ExampleBug.swift:
var strings: [String] { ["just me",] }
$ swift-format -m lint ExampleBug.swift /Users/tcldr/Desktop/ExampleBug.swift:1:36: warning: [Spacing]: add 1 space /Users/tcldr/Desktop/ExampleBug.swift:1:37: warning: [AddLines]: add 1 line breaks [1] 27222 illegal hardware instruction swift-format -m lint ExampleBug.swift
The text was updated successfully, but these errors were encountered:
Comment by Dylan Sturgeon (JIRA)
Fixed by #228.
Sorry, something went wrong.
No branches or pull requests
Environment
swift-format swift-5.2-branch
Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)
Target: x86_64-apple-darwin19.4.0
Additional Detail from JIRA
md5: cd15c52cf061747e90bea8cc3162cbdf
Issue Description:
A trailing comma on a single-element Array will cause the lint phase to fail with a non-zero exit code:
ExampleBug.swift:
The text was updated successfully, but these errors were encountered: