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: Documentation/Configuration.md
+24-1
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,30 @@ switch someValue {
204
204
---
205
205
206
206
### `reflowMultilineStringLiterals`
207
-
**type:**`string`
207
+
208
+
> [!NOTE]
209
+
> This setting should be specified as a string value (e.g. `"never"`)
210
+
> For backward compatibility with swift-format version 601.0.0, the configuration also accepts the legacy object format where the setting is specified as an object with a single key (e.g., `{ "never": {} }`).
211
+
212
+
**type:**`string` or `object` (legacy)
213
+
214
+
**example:**
215
+
216
+
For all versions above 601.0.0, the configuration should be specified as a string, for example:
217
+
```json
218
+
{
219
+
"reflowMultilineStringLiterals": "never"
220
+
}
221
+
```
222
+
223
+
For version 601.0.0, the configuration should be specified as an object, for example:
224
+
```json
225
+
{
226
+
"reflowMultilineStringLiterals": {
227
+
"never": {}
228
+
}
229
+
}
230
+
```
208
231
209
232
**description:** Determines how multiline string literals should reflow when formatted.
0 commit comments