Run the full success criteria checks to validate code quality.
Steps
- •
Detect the project type by checking for config files:
- •
Makefilewith acheckortesttarget - •
package.json(Node.js — npm/pnpm/yarn) - •
Cargo.toml(Rust — cargo) - •
go.mod(Go) - •
pyproject.tomlorsetup.py(Python) - •
Gemfile(Ruby) - •
test.sh(shell-based test runner)
- •
- •
Run the appropriate checks for the detected project type:
- •Makefile:
make check(ormake testif no check target) - •Node.js:
npm test/pnpm test(check lockfile for package manager) - •Rust:
cargo build,cargo test,cargo clippy,cargo fmt --check - •Go:
go build ./...,go test ./...,go vet ./... - •Python:
pytestorpython -m pytest - •Ruby:
bundle exec rake test - •Shell:
./test.sh
- •Makefile:
- •
If formatting checks fail, attempt to auto-fix:
- •Rust:
cargo fmt - •Go:
gofmt -w . - •Node.js:
npm run format(if script exists)
- •Rust:
- •
Report a summary of pass/fail status for each check run.
- •
If any checks fail that cannot be auto-fixed, report what needs manual attention.
This is the gate for all PRs — all checks must pass before merge.