You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2390,7 +2390,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
2390
2390
2391
2391
- <aid='unused-function-parameter-naming'></a>(<ahref='#unused-function-parameter-naming'>link</a>) **Name unused function parameters as underscores (`_`).**
@@ -2583,7 +2583,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
2583
2583
}
2584
2584
```
2585
2585
2586
-
</details>
2586
+
</details>
2587
2587
2588
2588
- <aid='closure-brace-spacing'></a>(<ahref='#closure-brace-spacing'>link</a>) **Closures should have a single space or newline inside each brace.** Trailing closures should additionally have a single space or newline outside each brace.
2589
2589
@@ -3896,7 +3896,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
3896
3896
3897
3897
- <aid='redundant-get'></a>(<ahref='#redundant-get'>link</a>) **Omit the `get` clause from a computed property declaration that doesn't also have a `set`, `willSet`, or `didSet` clause.**
@@ -3920,11 +3920,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
3920
3920
}
3921
3921
```
3922
3922
3923
-
</details>
3923
+
</details>
3924
3924
3925
3925
- <aid='prefer-opaque-generic-parameters'></a>(<ahref='#prefer-opaque-generic-parameters'>link</a>) **Prefer using opaque generic parameters (with `some`) over verbose named generic parameter syntax where possible.**
@@ -3998,11 +3998,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
3998
3998
3999
3999
`some Any` is somewhat unintuitive, and the named generic parameter is useful in this situation to compensate for the weak type information. Because of this, prefer using named generic parameters instead of `some Any`.
4000
4000
4001
-
</details>
4001
+
</details>
4002
4002
4003
4003
- <aid='unchecked-sendable'></a>(<ahref='#unchecked-sendable'>link</a>) **Prefer to avoid using `@unchecked Sendable`**. Use a standard `Sendable` conformance instead where possible. If working with a type from a module that has not yet been updated to support Swift Concurrency, suppress concurrency-related errors using `@preconcurrency import`.
4004
4004
4005
-
<details>
4005
+
<details>
4006
4006
4007
4007
`@unchecked Sendable` provides no guarantees about the thread safety of a type, and instead unsafely suppresses compiler errors related to concurrency checking.
4008
4008
@@ -4157,11 +4157,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
4157
4157
extensionPlanetaryBody: @uncheckedSendable { }
4158
4158
```
4159
4159
4160
-
</details>
4160
+
</details>
4161
4161
4162
4162
- <aid='redundant-property'></a>(<ahref='#redundant-property'>link</a>) **Avoid defining properties that are then returned immediately.** Instead, return the value directly.
@@ -4195,11 +4195,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
4195
4195
}
4196
4196
```
4197
4197
4198
-
</details>
4198
+
</details>
4199
4199
4200
4200
- <aid='redundant-equatable-implementation'></a>(<ahref='#redundant-equatable-implementation'>link</a>) **Prefer using a generated Equatable implementation when comparing all properties of a type.** For structs, prefer using the compiler-synthesized Equatable implementation when possible.
@@ -4265,11 +4265,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
4265
4265
}
4266
4266
```
4267
4267
4268
-
</details>
4268
+
</details>
4269
4269
4270
4270
- <aid='redundant-environment-key-implementation'></a>(<ahref='#redundant-environment-key-implementation'>link</a>) **Prefer using the `@Entry` macro to define properties inside `EnvironmentValues`**. When adding properties to SwiftUI `EnvironmentValues`, prefer using the compiler-synthesized property implementation when possible.
@@ -4296,7 +4296,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
4296
4296
}
4297
4297
```
4298
4298
4299
-
</details>
4299
+
</details>
4300
4300
4301
4301
- <aid='void-type'></a>(<ahref='#void-type'>link</a>) **Avoid using `()` as a type**. Prefer `Void`.
4302
4302
@@ -4352,7 +4352,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
4352
4352
4353
4353
- <aid='url-macro'></a>(<ahref='#url-macro'>link</a>) **If available in your project, prefer using a `#URL(_:)` macro instead of force-unwrapping `URL(string:)!` initializer`**.
0 commit comments