-
We have 2 places in our project where SwiftFormat fails to parse the code and therefore throws errors:
```
christian@MacBook-Pro-tilhrende-Christian ios-spring % swiftformat --lint .
Running Swif…
-
I'm working on a script that will assemble a file list based on `git diff` output, and the call SwiftFormat with that file list. Here's a sample of the file list contents:
```
./.swift-version
./…
-
## 概要
可読性 & 開発効率の向上に期待してルールを設ける。
また、今まで取り組んでいなかったprefixなど、レベルアップの為、できることから着手する。
## 詳細
■コーディング規約
コーディングルールはクックパッドSwiftコーディング規約を参考に対応する。
https://github.com/cookpad/styleguide/blob/master/swift.…
-
Note: this would be simple in cases like:
```swift
let foo: CGFloat = 5
```
It's less clear what to do in cases like:
```swift
let foo = CGFloat(someValue)
```
Since someValue might be…
-
I am currently upgrading from 0.48.11
self is removed here, causing a compiler warning that I can also use Swift.max and simd.max and if I want Sequence's max, I should explicitly use self.max
`…
-
I have a Nimble test that uses code like this:
```swift
class MyTest: XCTestCase {
var foo = 1
func testThing() {
let array = ["a", "b", "c"]
expect(array[self.foo]).to(equal("b"))…
-
A bit worried about the dependency to be honest.
It would solve though accidental formatting changes in the source gen.
To be explored.
// via @tomerd
ktoso updated
3 years ago
-
This error occurred when I used pod Install, no matter the specified version or the latest version, I am not sure how to solve it, I need help!
-
This is the result of `swiftformat . --xcodeindentation true`, v. 0.48.18
```swift
private func actualContent(_ proxy: GeometryProxy) -> some View {
HStack(spacing: 0) {
if…
-
Rule RedundantGet break code it the getter of a computed property can throw.
example:
```
enum Endpoint {
case foo
var url: URL {
get throws {
switch self {
…