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
With a dummy test file:
var f = l.filter { return $0.a != o }
And a config file that includes:
"OmitExplicitReturns" : true,
swift format lint --configuration swift-format.cfg test.swift
Produces:
test.swift:1:20: warning: [OmitExplicitReturns] 'return' can be omitted because body consists of a single expression
However
swift format format --configuration swift-format.cfg test.swift
Doesn't actually return the return in what it produces.
return
The text was updated successfully, but these errors were encountered:
Synced to Apple’s issue tracker as rdar://136555297
Sorry, something went wrong.
No branches or pull requests
With a dummy test file:
And a config file that includes:
Produces:
However
Doesn't actually return the
return
in what it produces.The text was updated successfully, but these errors were encountered: