This repository has been archived on 2024-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
treefmt/internal/format
Brian McGee c7d0138a02 support formatter ordering (#20)
Allows specifying the order in which formatters are applied.

Very simple for now, adding a `Before` field to the formatted config which allows the user to say that formatter `x` needs to be applied _before_ formatted `y`.

```toml
[formatter.statix]
command = "statix"
includes = ["*.nix"]
before = "deadnix"

[formatter.deadnix]
command = "statix"
includes = ["*.nix"]
```

Signed-off-by: Brian McGee <brian@bmcgee.ie>
Reviewed-on: #20
Reviewed-by: Jonas Chevalier <zimbatm@noreply.git.numtide.com>
Co-authored-by: Brian McGee <brian@bmcgee.ie>
Co-committed-by: Brian McGee <brian@bmcgee.ie>
2024-01-12 11:46:04 +00:00
..
config_test.go feat: allow missing formatters (#6) 2023-12-23 15:00:39 +00:00
config.go support formatter ordering (#20) 2024-01-12 11:46:04 +00:00
context.go support formatter ordering (#20) 2024-01-12 11:46:04 +00:00
format.go support formatter ordering (#20) 2024-01-12 11:46:04 +00:00
glob.go feat: support .gitignore files (#19) 2024-01-11 20:52:22 +00:00