treefmt
treefmt copied to clipboard
one CLI to format your repo [maintainers=@zimbatm,@brianmcgee]
Intended for cases like scripts, which may lack extensions indicating their file/language type. An incidental change is the introduction of the `format.Matcher` interface and various types implementing this interface. The...
This completes step 1 of https://github.com/numtide/treefmt/issues/573#issuecomment-2877869301.
**Is your feature request related to a problem? Please describe.** **Describe the solution you'd like** Add support for a global config file as a fallback if one in the current...
**Describe the bug** I run e.g. `treefmt --stdin test.js < test.js`, but no changes. Neither for json files. But file does change if I run `treefmt test.js`. **To Reproduce** Steps...
**Describe the bug** When running treefmt (v2.3.1, but will try on latest) on Nixpkgs (and probably some other mysterious condition being met), one file changing results in three formatters running...
**Describe the bug** Does treefmt.toml have no effect when using `treefmt` with `--stdin`? **To Reproduce** Steps to reproduce the behavior: 1. configure zed & treefmt as above 2. edit `foo/bar.nix`...
**Describe the bug** `nix fmt` crashed with a segfault when running on a fork of nixpkgs which needed some minor formatting. Unfortunately the crash was somehow not raised to the...
**Is your feature request related to a problem? Please describe.** Formatting is slow in large repos, even with caching enabled (4 seconds the first time, 0.5s on subsequent runs with...
This is part of https://github.com/numtide/treefmt/issues/334. I could use some feedback, especially on the parts with conflict markers (`
**Is your feature request related to a problem? Please describe.** I use `treefmt.withConfig` from nixpkgs and it generates a wrapper like `treefmt --config-file /nix/store/vykk3qvdjrnmvgp4pmw4jy2kdb8321fm-treefmt.toml`. **Describe the solution you'd like** I'd...