diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-27 12:25:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-27 12:25:38 -0400 |
| commit | b5eace4a5a4c7ede51d34d1292c6faad923e8ae8 (patch) | |
| tree | aed0078ef98e5ade9f1ebe0756f4b0a2ec16176a /misc | |
| parent | dd64d056218ee361e6dea0f0328e55ff62ba73ad (diff) | |
| parent | fb70621703b6f480a496e2bf109090a3894e376e (diff) | |
Merge pull request #611 from sndb/space-single-line-blocks
Put spaces around braces of single line blocks
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/odinfmt.schema.json | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/odinfmt.schema.json b/misc/odinfmt.schema.json index 7984da9..6c82dde 100644 --- a/misc/odinfmt.schema.json +++ b/misc/odinfmt.schema.json @@ -56,17 +56,20 @@ "default": false, "description": "When statement in the clause contains one simple statement, it will inline the case and statement in one line" }, - "spaces_around_colons": { "type": "boolean", "default": false, "description": "Put a space on both sides of a single colon during variable/field declaration, such as `foo : bar`" - }, - + }, "sort_imports": { "type": "boolean", "default": true, "description": "Sorts imports alphabetically" + }, + "space_single_line_blocks": { + "type": "boolean", + "default": false, + "description": "Put spaces around braces of single-line blocks: `{return 0}` => `{ return 0 }`" } }, "required": [] |