Documentation
¶
Overview ¶
Command protovalidatecoverage scans .proto files under the supplied directory and prints a human-readable summary of fields that lack a `validate:` constraint declared via the @gotags marker (protoc-go-inject-tag convention), across ALL messages (requests AND responses) for triage.
It is a reporting tool only — it always exits 0. The authoritative CI gate is the Go test TestEveryBoundableRequestFieldCarriesValidateTag in coverage_test.go, which hard-fails when a bound-able *Request* field is missing a validate tag and runs under the normal `go test ./...` job. This binary stays useful for spotting untagged RESPONSE fields (which the gate deliberately does not require) when triaging coverage by hand.
Usage:
go run ./test/protovalidatecoverage <proto-dir>
Example:
go run ./test/protovalidatecoverage ./proto/pm/v1