treefmt.nix 586 B

1234567891011121314151617181920
  1. {
  2. projectRootFile = "Cargo.toml";
  3. programs = {
  4. alejandra.enable = true; # nix
  5. statix.enable = true; # nix static analysis
  6. deadnix.enable = true; # find dead nix code
  7. rustfmt.enable = true; # rust
  8. shellcheck.enable = true; # bash/shell
  9. taplo.enable = true; # toml
  10. yamlfmt.enable = true; # yaml
  11. };
  12. settings = {
  13. formatter = {
  14. shellcheck.includes = ["*.sh" "./completions/bash/eza"];
  15. rustfmt.excludes = ["src/options/flags.rs"];
  16. taplo.excludes = ["tests/ptests/*.toml"];
  17. yamlfmt.excludes = ["./powertest.yaml"];
  18. };
  19. };
  20. }