once lint

Run static analysis for a declared target.

Synopsis#

plaintext
once lint [OPTIONS] [TARGET]

Description#

Executes the target's lint capability, normalizes its report, and returns a failing status when a finding meets --fail-on. With no target and no --all, Once lints every workspace-owned target that exposes lint, runs each one to completion, and returns a failing status when any finding meets --fail-on. Pass --all to include every lint-capable target in the loaded graph, including targets reached through vendored dependencies.

Arguments#

ArgumentRequiredDescription
<TARGET>noTarget id, such as quality/python or ./python. Omit it to lint every workspace-owned lint target discovered in the graph.

Options#

FlagValueDefaultDescription
--sandbox<SANDBOX>offLocal filesystem sandbox policy for command actions.
--config<KEY=VALUE>Override the workspace build configuration. See once build --config.
--fail-on<FAIL_ON>warningLowest finding severity that makes this command fail.
--all(flag)Lint every lint-capable target in the loaded graph, including targets reached through vendored dependencies. Without it the targetless default lints only workspace-owned targets.