trunk check [paths...]

Universal code checker

Arguments

NameDescription
pathsfilepaths

Subcommands

NameDescription
upgradeUpgrade all linters to latest versions
downloadDownload all files needed for trunk to work offline
enableEnable linters
disableDisable linters

Options

NameDescription
-y, --fixAutomatically apply all fixes without prompting
-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)