-
**Background**
Xcode format automatically aligns && operators in multi-line Equatable implementations for better readability:
xcode format
```
struct Test: Equatable {
let a: String
le…
-
-
Hello! I've encountered a problem. I can’t find information anywhere on how to configure the formatting of empty lines. Do I understand correctly that now in SwiftFormat you can either clear all space…
-
I'm trying to use swiftformat from the docker image and it always throws an error about not finding swiftformat.
Here are my steps
Download the image:
```
docker pull ghcr.io/nicklockwood/swiftf…
-
Is it possible to run swiftformat/swiftlint on staged files only?
There's past issues showcasing `swift run swiftformat [edited swift]` but utilizing that command returns `error: input path cannot …
-
In https://github.com/MarcoEidinger/SwiftFormatPlugin/issues/1 I found a description for the very same issue that I am experiencing. It seems like fixes for the issue were already incorporated in the …
-
I would like to lint my code during the build process.
Not sure if I'm doing anything wrongly, since the plugin integration seems to be undocumented, but using this simple `Package.swift`:
```
…
-
Hi, we had an instance in our codebase where SwiftFormat removed `return` as redundant in front of `try await withCheckedThrowingContinuation { ... }`, which caused a type error. The outer function re…
-
I think when someone runs the format command, they would expect warnings about issues that the formatter can't fix (In our case, lintonly rules), for example ESLint works this way when passing the --f…
-
### Use case
We use Nick Lockwood's excellent SwiftFormat tool, which [includes an `acronym` rule](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#acronyms) that we'd like to use in ou…