-
``` swift
var rating: Int? = 3
switch rating {
case (2...)?:
doSomething()
default:
break
}
```
`redundantParens` removes () around "2..."
-
Tuist already supports linting using [SwiftLint](https://github.com/realm/SwiftLint).
Please consider adding [SwiftFormat](https://github.com/nicklockwood/SwiftFormat) as an alternative.
Perhaps…
-
Looks like a recent change now always adds a file header on formatting
https://github.com/vknabel/vscode-swiftformat/commit/9f6af87a5e3487292c9def33979057fffffd26c8
-
I noticed that the `allman` formatting is not being applied to multi-line functions. e.g.:
For this guy **it works beautifully** 🌸:
```
func httpURLResponse(withResponse response: URLResponse) th…
-
Repro code:
```swift
@frozen
public struct Array {
}
```
When trying to format this snippet, SwiftFormat prints an error message: `error: Expected identifier on line 2 in Array.swift.`
-
https://github.com/nicklockwood/SwiftFormat/releases/tag/0.48.18
-
This is a valid Swift file:
```swift
#!/usr/bin/swift
let array: [[String: Any]] = [
["foo": "bar"],
]
guard let value = array[0]["foo"] as? String else {
fatalError("oops")
}
…
-
I honestly expect this to be a Xcode issue, but I'll put it up here to see if anyone has an ideas.
Basically I have two Xcode's in my Applications folder. One with the name "Xcode" (v13 downloaded…
-
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 error
```
Faile…
-
The [openapi-generator](https://github.com/OpenAPITools/openapi-generator) is of course a good tool, but it is difficult to use https://api.jellyfin.org/openapi/jellyfin-openapi-stable.json without mo…