Expand description
Quality checks system
Trait-based check system for running various quality tools.
Structs§
- Cargo
Audit Check - Cargo
Check - Cargo
Geiger Check - Cargo
Test Check - Check
Plan - A resolved plan for running a check.
- Check
Provenance - Provenance data for a check execution (Artifact Pack v1)
- Check
Result - Result of a check execution
- Clippy
Check - ESLint
Check - Mypy
Check - Provenance
Builder - Build provenance from a command execution
- Pytest
Check - Ruff
Check - Rustfmt
Check - Semgrep
Check - Skipped
Check - A check that was configured but could not run
- Stylelint
Check - Type
Script Check - Vitest
Check
Enums§
- Check
Eligibility - Check
Event - Events emitted during check execution
- Check
Status
Constants§
- CHECK_
TIMEOUT_ SECS - Default timeout for checks (5 minutes — large Rust workspaces need this)
- TEST_
TIMEOUT_ SECS - Timeout for test commands (15 minutes - ML projects with model loading need this)
Traits§
- Check
- Trait for implementing checks
Functions§
- find_
hard_ fail_ signatures - Find all matching hard failure signatures in output
- get_
checks_ for_ profile - Get checks supported by the detected profile.
- has_
tool_ crash - Detect tool crash indicators in combined output
- is_
timeout_ error - Whether an error is a command timeout produced by [
timeout_error]. - js_
tool_ available - Check if a JS tool is available in node_modules
- local_
js_ bin - Resolve a JS tool to a directly-runnable local binary, bypassing npx.
- plan_
check_ run - Plan check execution path: if we are in a remote/PR mode (meaning resolved target commit is different from the checked-out HEAD commit), create an ephemeral worktree snapshot of the target commit and run there. Otherwise, scan the working tree in place.
- run_all
- Run all applicable checks with caching (parallel execution, streaming output).
- run_
all_ with_ events - Run all applicable checks with event callbacks (for TUI mode)
- run_
command - Helper to run a command with timeout
- run_
command_ with_ timeout - Helper to run a command with custom timeout
- run_
js_ command - Helper to run JS tools via pnpm or npx (with tool availability check)
- run_
js_ command_ with_ timeout - Helper to run JS tools with custom timeout (for tests)
- tool_
spawn_ failure_ in_ output - True when RAW TOOL OUTPUT shows a launcher could not spawn the requested tool. Matches only markers a tool never emits in its own diagnostics — uv’s “failed to spawn” and a shell “command not found”. A bare “no such file or directory” is deliberately NOT matched here: tools print it in genuine diagnostics, and matching it would turn a real failure into an invisible pass (a tool-output false positive).
- tool_
unavailable_ signature - True when prview’s OWN process-runner error string indicates the tool binary
could not be launched (ENOENT on spawn) — e.g.
“Failed to run mypy: No such file or directory (os error 2)”. Safe ONLY for
prview-generated error strings, where a match reliably means a spawn failure.
Do NOT run this against raw tool output: a tool legitimately prints
“no such file or directory” in its own diagnostics — use
tool_spawn_failure_in_outputfor that case.
Type Aliases§
- Check
Event Callback - Callback type for check events (used by TUI)