treefmt icon indicating copy to clipboard operation
treefmt copied to clipboard

one CLI to format your repo

Results 62 treefmt issues
Sort by recently updated
recently updated
newest added

This is useful if you want to configure treefmt with nix, and precisely pass all the commands from nixpkgs.

`terraform fmt` doesn't obey the treefmt spec ```console $ terraform fmt --help Usage: terraform fmt [options] [DIR] Rewrites all Terraform configuration files to a canonical format. Both configuration files (.tf)...

bug
formatter

**Is your feature request related to a problem? Please describe.** `treefmt` looks like a great choice for a pre-commit hook. I'd like to know the options to do this. **Describe...

enhancement

I think this would merit some thought. Sometimes `treefmt` (through one of the formatters) does invalidate `editorconfig-checker`. But on the other hand, formatters don't `eclint`. I wonder if `treefmt` could...

enhancement

Sometimes `treefmt` with a bunch of formatters is a bit slow. In some cases, I'd like to explicitly narrow down the list of formatters to run. It'd be nice if...

enhancement

I'd like to minimize the Nix stub required to use treefmt in my projects. Presently, there is a ~40 line nix that provides me `nix run .#format` (runs treefmt in...

enhancement

Some developers like to invoke the formatters just before committing the code. When invoked, it should only format the code that has been staged for the commit and not touch...

enhancement

**Is your feature request related to a problem? Please describe.** Treefmt should have color coded output relative to the loglevel that is being emitted **Describe the solution you'd like** ```shell...

enhancement
good first issue

Currently if a `treefmt` run completes but one of the formatters exits with an error, the cache does not get updated, and subsequent `treefmt` runs will therefore have more work...

enhancement

**Describe the bug** If two processes invoke treefmt at the same time, all the eval cache mtime calculation get messed up.

bug