Repository navigation
Conversation
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
|
Status check-in to keep this PR active — CI checks are green and the branch is mergeable against base. Happy to address any review feedback whenever convenient! |
|
Keeping this PR active — all CI test suites are green and ready for maintainer review whenever convenient. Happy to rebase or adjust anything if needed! |
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
|
Status check-in to keep this PR active — CI checks are green and the branch is mergeable against base. Happy to address any review feedback whenever convenient! |
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
|
Status check-in to keep this PR active — CI checks are green and the branch is mergeable against base. Happy to address any review feedback whenever convenient! |
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
Part of tscircuit/tscircuit#4205 (P0 item 4: one strict, machine-readable preflight)
This adds
tsci check all [file]. It builds the circuit once and runs the checks the CLI already has, then prints a single report:runAllPinSpecificationCheckssuboptimal_orientationis a warning, everything else is an error)@tscircuit/check-shorts(errors, only when there is a board with copper)If the same diagnostic shows up twice (same severity, type and message), it's reported once.
--formatistext(default),jsonorsarif.--fail-oniserror(default),warningornone. Any other value exits 1 and prints an error.The JSON output looks like
{ ok, failOn, file, summary: { errors, warnings, byCategory }, diagnostics: [{ severity, category, type, message }] }. With--format jsonor--format sarif, build logs such as "Saved autorouting paths…" go to stderr so stdout can be parsed.Plain
tsci checkdoesn't change and still exits 0.Tests:
tests/cli/check/check-all-preflight.test.tscovers a clean circuit in all three formats, warning-only output with the default and with--fail-on warning, error dedupe plus SARIF results with--fail-on none, rejected flag values, and a bridged-copper short.