The configuration checker for Tableau.
- Generate
*.pb.goand*.check.go:cd test && buf generate - Test:
cd test && go test ./... - Run directly:
cd test && go run .
We suggest to use strict mode for detecting and excluding auto-generate files in checker project.
An example .golangci.yaml is as follows:
version: "2"
linters:
exclusions:
generated: strictCode generation is driven by buf via the
configuration under test/:
test/buf.yaml: module and remote dependencies (e.g.buf.build/tableauio/tableau).test/buf.gen.yaml: plugins used to generate code, including:buf.build/protocolbuffers/go— generates*.pb.go.github.com/tableauio/loader/cmd/protoc-gen-go-tableau-loader— generates loader code.protoc-gen-go-tableau-checker(this repo) — generates*.check.go.