trunk fmt [paths...]

Universal code formatter

Arguments

NameDescription
pathsfilepaths

Options

NameDescription
-a, --allRun on all files instead of only changed files
-n, --no-fixDon't automatically apply fixes
--include-existing-autofixesShow autofixes for existing issues
--forceRun 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)