commit 63847c8b4b9d2a2ee39d6042e527be24c4f48ae2
parent 17d958e303f8ee131ba092bba12e64b3cafcecf2
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Sun, 20 Sep 2026 14:11:30 -0300
build: settle the formatting rules in the repository
odinfmt looks for its configuration beside the file it is formatting, not beside
itself, so with nothing here every contributor was formatting to whatever their
own defaults happened to be.
The width is the one this code was already written to: of 6862 lines, 71 pass a
hundred columns and those are foreign declarations that cannot be broken.
Constant alignment is on because the code aligns them by hand in fifteen places,
and the default would have pulled every one of those apart. LF is stated because
odinfmt's own default is CRLF.
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/odinfmt.json b/odinfmt.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/odinfmt.schema.json",
+ "character_width": 100,
+ "tabs": true,
+ "tabs_width": 4,
+ "newline_style": "LF",
+ "align_constant_definitions": true
+}