Skip to content

Commit 57aadef

Browse files
committed
Only indent <details> blocks by one level
1 parent 54ce7ed commit 57aadef

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
23902390

23912391
- <a id='unused-function-parameter-naming'></a>(<a href='#unused-function-parameter-naming'>link</a>) **Name unused function parameters as underscores (`_`).**
23922392

2393-
<details>
2393+
<details>
23942394

23952395
[![SwiftFormat: unusedArguments](https://img.shields.io/badge/SwiftFormat-unusedArguments-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#unusedArguments)
23962396

@@ -2458,7 +2458,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
24582458
}
24592459
```
24602460

2461-
</details>
2461+
</details>
24622462

24632463
- <a id='remove-blank-lines-between-chained-functions'></a>(<a href='#remove-blank-lines-between-chained-functions'>link</a>) **Remove blank lines between chained functions.**
24642464

@@ -2562,7 +2562,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
25622562

25632563
- <a id='unused-closure-parameter-naming'></a>(<a href='#unused-closure-parameter-naming'>link</a>) **Name unused closure parameters as underscores (`_`).**
25642564

2565-
<details>
2565+
<details>
25662566

25672567
[![SwiftFormat: unusedArguments](https://img.shields.io/badge/SwiftFormat-unusedArguments-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#unusedArguments)
25682568

@@ -2583,7 +2583,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
25832583
}
25842584
```
25852585

2586-
</details>
2586+
</details>
25872587

25882588
- <a id='closure-brace-spacing'></a>(<a href='#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.
25892589

@@ -3896,7 +3896,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
38963896

38973897
- <a id='redundant-get'></a>(<a href='#redundant-get'>link</a>) **Omit the `get` clause from a computed property declaration that doesn't also have a `set`, `willSet`, or `didSet` clause.**
38983898

3899-
<details>
3899+
<details>
39003900

39013901
[![SwiftFormat: redundantGet](https://img.shields.io/badge/SwiftFormat-redundantGet-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#redundantGet)
39023902

@@ -3920,11 +3920,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
39203920
}
39213921
```
39223922

3923-
</details>
3923+
</details>
39243924

39253925
- <a id='prefer-opaque-generic-parameters'></a>(<a href='#prefer-opaque-generic-parameters'>link</a>) **Prefer using opaque generic parameters (with `some`) over verbose named generic parameter syntax where possible.**
39263926

3927-
<details>
3927+
<details>
39283928

39293929
[![SwiftFormat: opaqueGenericParameters](https://img.shields.io/badge/SwiftFormat-opaqueGenericParameters-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#opaqueGenericParameters)
39303930

@@ -3998,11 +3998,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
39983998

39993999
`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`.
40004000

4001-
</details>
4001+
</details>
40024002

40034003
- <a id='unchecked-sendable'></a>(<a href='#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`.
40044004

4005-
<details>
4005+
<details>
40064006

40074007
`@unchecked Sendable` provides no guarantees about the thread safety of a type, and instead unsafely suppresses compiler errors related to concurrency checking.
40084008

@@ -4157,11 +4157,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
41574157
extension PlanetaryBody: @unchecked Sendable { }
41584158
```
41594159

4160-
</details>
4160+
</details>
41614161

41624162
- <a id='redundant-property'></a>(<a href='#redundant-property'>link</a>) **Avoid defining properties that are then returned immediately.** Instead, return the value directly.
41634163

4164-
<details>
4164+
<details>
41654165

41664166
[![SwiftFormat: redundantProperty](https://img.shields.io/badge/SwiftFormat-redundantProperty-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#redundantProperty)
41674167

@@ -4195,11 +4195,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
41954195
}
41964196
```
41974197

4198-
</details>
4198+
</details>
41994199

42004200
- <a id='redundant-equatable-implementation'></a>(<a href='#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.
42014201

4202-
<details>
4202+
<details>
42034203

42044204
[![SwiftFormat: redundantEquatable](https://img.shields.io/badge/SwiftFormat-redundantEquatable-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#redundantEquatable)
42054205

@@ -4265,11 +4265,11 @@ _You can enable the following settings in Xcode by running [this script](resourc
42654265
}
42664266
```
42674267

4268-
</details>
4268+
</details>
42694269

42704270
- <a id='redundant-environment-key-implementation'></a>(<a href='#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.
42714271

4272-
<details>
4272+
<details>
42734273

42744274
[![SwiftFormat: environmentEntry](https://img.shields.io/badge/SwiftFormat-environmentEntry-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/develop/Rules.md#environmentEntry)
42754275

@@ -4296,7 +4296,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
42964296
}
42974297
```
42984298

4299-
</details>
4299+
</details>
43004300

43014301
- <a id='void-type'></a>(<a href='#void-type'>link</a>) **Avoid using `()` as a type**. Prefer `Void`.
43024302

@@ -4352,7 +4352,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
43524352

43534353
- <a id='url-macro'></a>(<a href='#url-macro'>link</a>) **If available in your project, prefer using a `#URL(_:)` macro instead of force-unwrapping `URL(string:)!` initializer`**.
43544354

4355-
<details>
4355+
<details>
43564356

43574357
[![SwiftFormat: urlMacro](https://img.shields.io/badge/SwiftFormat-urlMacro-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#urlMacro)
43584358

@@ -4368,7 +4368,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
43684368
let url = #URL("https://example.com")
43694369
```
43704370

4371-
</details>
4371+
</details>
43724372

43734373
**[⬆ back to top](#table-of-contents)**
43744374

0 commit comments

Comments
 (0)