Closed
Description
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:
func myFunc() {
var x = 3
return x
}
But comments are ignored, eg.
func myFunc() {
// Some comment here
// Do a thing
var x = doAThing()
// Some other comment here
}
ends up as:
func myFunc() {
// Some comment here
// Do a thing
var x = doAThing()
// Some other comment here
}
I would expect the input to remain unchanged in this particular case.
rdar://141589363
Metadata
Metadata
Assignees
Labels
No labels