@codecheck/trigger-oncommit
v0.2.1
Published
CodeCheck trigger plugin — runs on git commit via husky pre-commit hook
Downloads
30
Maintainers
Readme
@codecheck/trigger-oncommit
Pre-commit trigger for CodeCheck. Runs AI-generated tests on staged files before every git commit.
Setup
npx codecheck-initOr manually add to .husky/pre-commit:
npx codecheckFeatures
- Reads staged files via
git diff --cached - Generates and runs tests automatically
- Never blocks commits on its own errors (exits 0)
--dry-runmode to preview without calling the LLM- Supports all 4 providers: Anthropic, OpenAI, Gemini, Ollama
Part of the CodeCheck ecosystem.
