Skip to content

Commit 55ed3a3

Browse files
committed
add missing details closing tags to README
1 parent 44f490d commit 55ed3a3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
10561056
]
10571057
```
10581058

1059+
</details>
1060+
10591061
* <a id='long-typealias'></a>(<a href='#long-typealias'>link</a>) [Long](https://github.com/airbnb/swift#column-width) type aliases of protocol compositions should wrap before the `=` and before each individual `&`. [![SwiftFormat: wrapArguments](https://img.shields.io/badge/SwiftFormat-wrapArguments-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#wrapArguments)
10601062

10611063
<details>
@@ -1084,6 +1086,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
10841086
& UniverseSimulatorServiceProviding
10851087
```
10861088

1089+
</details>
1090+
10871091
* <a id='sort-typealiases'></a>(<a href='#sort-typealiases'>link</a>) **Sort protocol composition type aliases alphabetically.** [![SwiftFormat: sortTypealiases](https://img.shields.io/badge/SwiftFormat-sortTypealiases-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#sortTypealiases)
10881092

10891093
<details>
@@ -1110,6 +1114,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
11101114
& UniverseSimulatorServiceProviding
11111115
```
11121116

1117+
</details>
1118+
11131119
* <a id='prefer-if-let-shorthand'></a>(<a href='#prefer-if-let-shorthand'>link</a>) Omit the right-hand side of the expression when unwrapping an optional property to a non-optional property with the same name. [![SwiftFormat: redundantOptionalBinding](https://img.shields.io/badge/SwiftFormat-redundantOptionalBinding-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#redundantOptionalBinding)
11141120

11151121
<details>
@@ -1142,6 +1148,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
11421148
else { … }
11431149
```
11441150

1151+
</details>
1152+
11451153
* <a id='else-on-same-line'></a>(<a href='#else-on-same-line'>link</a>) **Else statements should start on the same line as the previous condition's closing brace, unless the conditions are separated by a blank line or comments.** [![SwiftFormat: elseOnSameLine](https://img.shields.io/badge/SwiftFormat-elseOnSameLine-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#elseOnSameLine)
11461154

11471155
<details>
@@ -1196,6 +1204,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
11961204
}
11971205
```
11981206

1207+
</details>
1208+
11991209
* <a id='multi-line-conditions'></a>(<a href='#multi-line-conditions'>link</a>) **Multi-line conditional statements should break after the leading keyword.** Indent each individual statement by [2 spaces](https://github.com/airbnb/swift#spaces-over-tabs). [![SwiftFormat: wrapArguments](https://img.shields.io/badge/SwiftFormat-wrapArguments-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#wrapArguments)
12001210

12011211
<details>
@@ -1609,6 +1619,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
16091619
}
16101620
```
16111621

1622+
</details>
1623+
16121624
* <a id='indent-multiline-string-literals'></a>(<a href='#indent-multiline-string-literals'>link</a>) **Indent the body and closing triple-quote of multiline string literals**, unless the string literal begins on its own line in which case the string literal contents and closing triple-quote should have the same indentation as the opening triple-quote. [![SwiftFormat: indent](https://img.shields.io/badge/SwiftFormat-indent-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#indent)
16131625

16141626
<details>
@@ -1779,6 +1791,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
17791791
}
17801792
```
17811793

1794+
</details>
1795+
17821796
* <a id='no-spaces-around-function-parens'></a>(<a href='#no-spaces-around-parens'>link</a>) For function calls and declarations, there should be no spaces before or inside the parentheses of the argument list. [![SwiftFormat: spaceInsideParens](https://img.shields.io/badge/SwiftFormat-spaceInsideParens-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#spaceInsideParens) [![SwiftFormat: spaceAroundParens](https://img.shields.io/badge/SwiftFormat-spaceAroundParens-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#spaceAroundParens)
17831797

17841798
<details>
@@ -3010,6 +3024,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
30103024
}
30113025
```
30123026

3027+
</details>
3028+
30133029
* <a id='avoid-global-functions'></a>(<a href='#avoid-global-functions'>link</a>) **Avoid global functions whenever possible.** Prefer methods within type definitions.
30143030

30153031
<details>
@@ -4694,6 +4710,8 @@ _You can enable the following settings in Xcode by running [this script](resourc
46944710
}
46954711
```
46964712

4713+
</details>
4714+
46974715
* <a id='prefer-throwing-tests'></a>(<a href='#prefer-throwing-tests'>link</a>) **Prefer throwing tests to `try!`**. `try!` will crash your test suite like a force-unwrapped optional. XCTest and Swift Testing support throwing test methods, so use that instead. [![SwiftFormat: noForceTryInTests](https://img.shields.io/badge/SwiftFormat-noForceTryInTests-7B0051.svg)](https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#noForceTryInTests)
46984716

46994717
<details>

0 commit comments

Comments
 (0)