trunk fmt [paths...]
Universal code formatter
Arguments
Name | Description |
---|---|
paths | filepaths |
Options
Name | Description |
---|---|
-a, --all | Run on all files instead of only changed files |
-n, --no-fix | Don't automatically apply fixes |
--include-existing-autofixes | Show autofixes for existing issues |
--force | Run on all files, even if ignored |
--diff <mode> | Diff printing mode |
--filter <linter or code...> | Filter the set of executed linters and/or the returned codes; use a leading '-' to exclude a linter or code |
--exclude <linter or code...> | Shorthand for an inverse --filter |
-j, --jobs <number> | Number of concurrent jobs (does not affect background linting) |
--sample <N> [paths...] | Run each linter on N files (implies --no-fix and --all if no paths are given) |
--upstream <branch> | Upstream branch used to compute changed files (autodetected by default) |