run_typecheck
Run the project’s type checker. Go today (uses go vet); future detectors add tsc, mypy, etc.
Schema
Section titled “Schema”| Param | Type | Required | Default |
|---|---|---|---|
timeout | number | no | 120 (clamped to 600) |
Behaviour
Section titled “Behaviour”Near-clone of run_tests but invokes detector.TypecheckCmd() (for Go: go vet ./...). Output format is identical: stdout → optional --- stderr --- → optional timeout marker → trailing exit: N.
go vet emits diagnostics on stderr, so typical output looks like:
--- stderr ---./bad.go:6:17: fmt.Printf format %d has arg "not-an-int" of wrong type stringexit: 1Failure modes
Section titled “Failure modes”Same as run_tests:
- No detector → error result.
- Binary missing → error result.
- Non-zero exit → text result (not an error).
- Timeout → text result with marker + exit 124.