-
I want keep a code format: add a blank line between functions. |
Beta Was this translation helpful? Give feedback.
Answered by
bombsimon
Jun 28, 2022
Replies: 1 comment 1 reply
-
func foo() {
println("multiline foo")
}
func bar() {
println("multiline bar")
} To func foo() {
println("multiline foo")
}
func bar() {
println("multiline bar")
}
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ppd0705
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gofumpt
has the rule "Multiline top-level declarations must be separated by empty lines" which affects functions at top level scope. It will changeTo
wsl
has the rule "Expressions should not be cuddled with blocks" although WSL does not have an auto fixer likegofumpt
and it's also not possible to only enable this check in WSL.