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
Attachment: Download
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: 309a6cbb23c057de7ad21f94da974b48
Issue Description:
It seems that swift-format should set a non-zero Xcode when it identifies a style violation.
However, violations are returned with a zero error which may complicate integration with other parts of a build pipeline:
$ swift-format -m lint Test.swift /Users/tcldr/Desktop/Test.swift:1:1: warning: [Indentation] remove all leading whitespace /Users/tcldr/Desktop/Test.swift:1:8: warning: [Spacing]: remove 1 space /Users/tcldr/Desktop/Test.swift:1:18: warning: [Spacing]: remove 3 spaces $ echo $? 0
The text was updated successfully, but these errors were encountered:
Comment by Jorge Cohen (JIRA)
Wanted to have look at this, but unfortunately am not able to reproduce. @tcldr could you please attach the test file you were using?
Sorry, something went wrong.
Sure – I've added as an attachment.
This was fixed by the addition of the --strict flag.
--strict
No branches or pull requests
Attachment: Download
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: 309a6cbb23c057de7ad21f94da974b48
Issue Description:
It seems that swift-format should set a non-zero Xcode when it identifies a style violation.
However, violations are returned with a zero error which may complicate integration with other parts of a build pipeline:
The text was updated successfully, but these errors were encountered: