aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-27 12:25:38 -0400
committerGitHub <noreply@github.com>2025-08-27 12:25:38 -0400
commitb5eace4a5a4c7ede51d34d1292c6faad923e8ae8 (patch)
treeaed0078ef98e5ade9f1ebe0756f4b0a2ec16176a /misc
parentdd64d056218ee361e6dea0f0328e55ff62ba73ad (diff)
parentfb70621703b6f480a496e2bf109090a3894e376e (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.json9
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": []