Closed RussBaz closed 1 month ago
The following snippet causes SwiftFormat to break the code:
SwiftFormat
func urlTestContains(path: String, strict _: Bool = true) -> Bool { let path = if path.hasSuffix("/") { path } else { "\(path)/" } return false }
It does not detect that the path variable is used, and it will insert_ to the function signature.
path
_
I am sorry I could not describe the issue any better and could not verify if it was previously reported. Please have a look.
I am using swiftformat version 0.53.8.
swiftformat
Thank you.
Should be fixed by https://github.com/nicklockwood/SwiftFormat/pull/1687
@RussBaz fix landed in 0.53.9
The following snippet causes
SwiftFormat
to break the code:It does not detect that the
path
variable is used, and it will insert_
to the function signature.I am sorry I could not describe the issue any better and could not verify if it was previously reported. Please have a look.
I am using
swiftformat
version 0.53.8.Thank you.