treefmt/nix
Brian McGee ce14ee828f
feat: simplify pipeline model
For each path we determine the list of formatters that are interested in formatting it. From there, we sort
the list of formatters first by priority (lower value, higher priority) and then by name (lexicographically).

With this information we create a batch key which is based on the unique sequence of formatters. When enough paths with the same sequence is ready we apply them in order to each formatter.

By default, with no special configuration, this model guarantees that a given path will only be processed by one formatter at a time.

If a user wishes to influence the order in which formatters are applied they can use the priority field.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-05-26 16:52:04 +01:00
..
checks.nix feat: add nix github workflow 2024-05-08 08:54:58 +01:00
default.nix chore: remove flake-root input 2024-05-02 13:41:10 +01:00
devshell.nix ci: handle releases with goreleaser 2024-05-09 22:16:57 +02:00
docs.nix fix: install node dependencies in devshell commands 2024-05-10 11:15:04 +01:00
formatters.nix feat: ensure deterministic application of formatters 2024-04-26 10:33:29 +01:00
nixpkgs.nix feat: initial import 2023-12-23 12:50:51 +00:00
packages.nix fix: remove -dirty suffix from revision 2024-05-13 10:08:50 +01:00
treefmt.nix feat: simplify pipeline model 2024-05-26 16:52:04 +01:00