aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add defers for destroying walkersBrad Lewis3 days1-0/+1
|
* Update ols to use the new os and filepath packagesBrad Lewis3 days3-49/+51
|
* Merge pull request #1252 from gxhamster/custom-config-pathDanielGavin14 days1-1/+7
|\ | | | | Feat: Add support for odinfmt custom config path
| * Feat: Add support for odinfmt custom config pathIyaan Azeez2026-01-141-1/+7
| | | | | | | | | | | | | | | | | | | | | | Introduces a new argument to -config which allows a user to pass a json config for the formatter which is not neccesarilly in the path of the files we are formatting. For now the function will use the default_style if any errors occur. This was done due to that being the pattern in the source code. I think it would be useful to know if reading a config has failed or has defaulted to a default style but, I wanted to not include that in this.
* | removed small block size used for testingTobias Mollstam2026-01-151-1/+1
| |
* | revert to using arena but virtual memory that can growTobias Mollstam2026-01-151-5/+18
| |
* | use default heap allocator instead of fixed size arena for odinfmt CLITobias Mollstam2026-01-121-17/+5
|/
* Format matrix comp lits that use rangesBrad Lewis2025-10-152-0/+12
|
* Merge pull request #1015 from godalming123/masterBradley Lewis2025-09-192-282/+31
|\ | | | | Use core:flags instead of custom flag parsing code and fix 2 bugs
| * Change the behavior back so that not specifying the path to format cuases an ↵godalming1232025-09-181-7/+17
| | | | | | | | error unless odinfmt is formatting from stdin
| * Use core:flags instead of custom flag parsing library and fix 2 bugsgodalming1232025-09-142-285/+24
| | | | | | | | | | | | - Fixes formatting not working for blank files - Fixes odinfmt not detecting the config file when `-stdin` is specified because it thinks that it is formatting the `-stdin` path - Replaces the custom arg parsing code with odin's `core:flags` library
* | Break with no newline for long partial switch statementBrad Lewis2025-09-142-0/+39
|/
* Make assignment and value decl behaviour the same with long linesBrad Lewis2025-09-131-1/+1
|
* Only inline single line switch if line is not too longBrad Lewis2025-09-063-0/+58
|
* Correctly format types with a long value declBrad Lewis2025-08-262-0/+12
|
* Merge pull request #883 from BradLewis/fix/strip-trailing-whitespaceDanielGavin2025-08-242-5/+5
|\ | | | | Remove trailing whitespace when using Allman style braces
| * Remove trailing whitespace when using Allman style bracesBrad Lewis2025-08-152-5/+5
| |
* | Fix issue with odinfmt stripping the semicolon after a switch init with no ↵Brad Lewis2025-08-182-0/+36
| | | | | | | | condition
* | Process the rest of the comment group when encountering an odinfmt enableBrad Lewis2025-08-172-0/+14
|/
* Fix issue formatting when statements with allman style bracesBrad Lewis2025-08-152-0/+18
|
* Replace hardcoded size in `mem.copy`Bintang Adiputra Pratama2025-07-171-2/+6
|
* fix trailing whitespace in matrix formattingStian H. Johannesen2025-06-272-21/+21
|
* Check for path lengthAkseli Lahtinen2025-04-051-1/+4
|
* Fix Allman brace style test snapshothenbr2025-01-191-3/+6
|
* Read config from file if availablehenbr2025-01-191-37/+32
|
* Fix extra new lines after switch with allman brace stylehenbr2025-01-193-0/+38
|
* Add the ability to error out of the formatter.DanielGavin2024-10-051-30/+4
|
* Fix odinfmtDanielGavin2024-08-041-5/+4
|
* Fix tests.DanielGavin2024-08-041-6/+2
|
* Check the poly map is not null before saving it.DanielGavin2024-06-041-1/+1
|
* Fix issues with space in { on comp literals without types.DanielGavin2024-04-282-1/+17
|
* Fix issues with comments in case clauseDanielGavin2024-04-282-1/+19
|
* Merge pull request #356 from Feoramund/move-core-baseDanielGavin2024-04-181-1/+2
|\ | | | | Move packages to new base collection
| * Move packages to new base collectionFeoramund2024-04-171-1/+2
| |
* | Replace deprecated ptr_from_string with raw_dataFeoramund2024-04-171-1/+1
|/
* Include `-stdin` in args to parse.hchac2024-03-031-3/+13
|
* Automatically add shared collection.DanielGavin2024-02-224-10/+10
|
* Fix issue with anon structs in arrays.DanielGavin2023-11-042-26/+26
|
* Fix issue with formatting where clause not breaking.DanielGavin2023-09-201-6/+6
|
* Fix testsDanielGavin2023-09-012-7/+7
|
* Undo the control of newlines in comp_lit - it broke too many things and ↵DanielGavin2023-08-065-130/+38
| | | | wasn't really compatible with the formatter design.
* Re-introduce forced linebreaks for comp lits that contain fieldsflga2023-07-292-8/+36
|
* Add a new config option to allow multiline composite literalsflga2023-07-061-3/+4
|
* Walk back proc argument and array like comp lit changesflga2023-07-066-153/+141
|
* Force composite literals with comments to be multi line againflga2023-07-044-71/+198
|
* Allow local control over line breaking in composite literals and call ↵flga2023-07-038-94/+239
| | | | expressions
* Fix issue with chainings `do` would increase indentation in a blockDanielGavin2023-06-252-0/+16
|
* Add custom marshal.DanielGavin2023-06-091-3/+15
|
* Add attribute test for odinfmtDanielGavin2023-06-082-1/+15
|
* formatter: fix bug with odinfmt: disable and enableDanielGavin2023-03-142-1/+33
|