-
Is there anyway to support piping the auto correctable rules into stdout or another file, similar to how SwiftFormat does here: https://github.com/nicklockwood/SwiftFormat#command-line-tool ?
To my…
-
Hi,
I just upgraded a project to swiftformat 0.50.2, and whenever I try to format or lint our project I see the following output...
```
error: Failed to terminate.
```
I've been able to tra…
-
The new `wrapSingleLineComments` rule introduced with #1151 is transforming this comment
```
/// See [Visual Format Language](https://developer.apple.com/library/archive/documentation/UserExper…
awein updated
2 years ago
-
We've ran in to an interesting issue where running SwiftFormat (e.g. just `swiftformat . --indent 2`) on the following code causes it to no longer compile:
### Before
```swift
if
previousScr…
calda updated
2 years ago
-
swift file
```swift
import UIKit
extension UIColor {
var rgb: Int {
var red: CGFloat = 0
var green: CGFloat = 0
var blue: CGFloat = 0
var alpha: CGFloat…
-
* Originally commented on #1194, but still happening and think it deserves to be a separate issue
I am getting different behaviour for this between the command line and the Xcode extension.
hav…
-
SwiftFormat 0.49.14
Xcode 14 beta 5
With SwiftFormat reset to default settings (which has `redundantReturn` enabled), the following code is left intact as-is.
```swift
var foo: Int {
get …
-
Hi, there are multiple non-updated docker images (https://github.com/slashmo/swiftformat-docker, https://hub.docker.com/r/paumesa/swiftformat, ...) around, but they are all out of date. Would be great…
-
Using the latest version of SwiftFormat (0.49.11), this code:
```
private extension FooOperator {
var op: ((Double, Double) -> Double)? {
switch self {
case .unknown:
…
-
## Issue
1. When a single-line string has interpolation containing a ternary expression, the line will be broken up into multiple lines according to the `wrap` rule.
2. In this example it also see…