Closed adam-fowler closed 2 years ago
Thanks for the report! Didn't know about the feature!
I'll have a look on the swiftformat docs and work on a fix soon.
Update: according to the SwiftFormat docs, we need to pass the path of the file --stdinpath /path/to/file.swift
. Should be relatively easy.
$ cat /path/to/file.swift | swiftformat stdin --stdinpath /path/to/file.swift
Fix has been released in 1.3.8
I have a comment header defined in my
.swiftformat
file which includes the{created}
variable. The swift format extension fails to run while this is included. It returns with the errorAdd this to your
.swiftformat
to replicate