18 lines
850 B
Plaintext
18 lines
850 B
Plaintext
---
|
|
description: Run make lint and make test before finishing any code change
|
|
alwaysApply: true
|
|
---
|
|
|
|
# Verify before done
|
|
|
|
After **any** change to Go code, configs, migrations, OpenAPI, or i18n catalogs in this repo:
|
|
|
|
1. Run `make lint` from the repo root (`golangci-lint`; see `.golangci.yaml`).
|
|
2. Run `make test` from the repo root (full `go test ./...` plus logic-package coverage gate).
|
|
|
|
**Do not** tell the user the task is complete, ready to merge, or OK to deploy until **both** commands exit 0.
|
|
|
|
If either fails, fix the failures and re-run both. Do not skip hooks or substitute partial checks (e.g. only `go test` on one package) unless the user explicitly asked for a scoped check.
|
|
|
|
Docs-only or comment-only edits with zero build/test surface may skip verification; anything that can affect compile, lint, or tests must run both targets.
|