We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NoEmptyLinesOpeningClosingBraces
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
The NoEmptyLinesOpeningClosingBraces swift-format option will remove blank lines from the beginning/end of blocks, eg.
func myFunc() { var x = 3 return x }
is reformatted into:
But comments are ignored, eg.
func myFunc() { // Some comment here // Do a thing var x = doAThing() // Some other comment here }
ends up as:
I would expect the input to remain unchanged in this particular case.
rdar://141589363
The text was updated successfully, but these errors were encountered:
Related (or a dup?) to #807
Sorry, something went wrong.
Yes, that looks like a dupe. Thanks for noticing, @andre-richter 🙏🏽
Successfully merging a pull request may close this issue.
The
NoEmptyLinesOpeningClosingBraces
swift-format option will remove blank lines from the beginning/end of blocks, eg.is reformatted into:
But comments are ignored, eg.
ends up as:
I would expect the input to remain unchanged in this particular case.
rdar://141589363
The text was updated successfully, but these errors were encountered: