trunk check [paths...]
Universal code checker
Arguments
Name | Description |
---|---|
paths | filepaths |
Subcommands
Name | Description |
---|---|
upgrade | Upgrade all linters to latest versions |
download | Download all files needed for trunk to work offline |
enable | Enable linters |
disable | Disable linters |
Options
Name | Description |
---|---|
-y, --fix | Automatically apply all fixes without prompting |
-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) |