You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for developing this tool. I have encountered a bug that I cannot seem to fix.
When I run swift-format using the following command, all of my top-level documentation comments are duplicated to all of the top-level declarations that previously had documentation comments.
swift run swift-format --in-place -r --configuration .swift-format.json -p Sources Tests Package.swift
I figured out the root issue that caused this bug: I had the git config core.autocrlf turned on in WSL, so my line endings were not the same as the tool expected, even inside devcontainers (maybe it inherited some git configurations?). It would be nice if the tool either gave errors about this or it was able to handle both CRLF and LF line endings correctly. Once I turned off core.autocrlf, the problem went away.
Hi, thanks for developing this tool. I have encountered a bug that I cannot seem to fix.
When I run swift-format using the following command, all of my top-level documentation comments are duplicated to all of the top-level declarations that previously had documentation comments.
My .swift-format.json:
I used the following version inside my Package.swift:
The text was updated successfully, but these errors were encountered: