gograph_check
Run static policy checks on Go code during PR review or pre-commit analysis, including boundaries, API drift, test coverage, and complexity, with structured pass/warn/fail results.
Instructions
Refresh source analysis and run static policy checks: boundaries, API drift, changed-route/export tests, test coverage, orphans, globals, arity, and complexity. Git baselines use the same validated builder as CLI. Read-only apart from temporary baseline extraction. WHEN TO USE: During PR review or pre-commit analysis. NOT TO USE: For CI process exit enforcement (use CLI gograph gate). RETURNS: Structured pass/warn/fail status, findings, and summary counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Git ref for api_drift baseline (e.g. 'main', 'HEAD~5', 'v1.4.50') | |
| config | No | Optional path to a checks.json config file (defaults to .gograph/checks.json if present) | |
| uncommitted | No | If true, include uncommitted changes in the analysis scope |