make build
make lint
make test
make test-coverage
make install
make cleanmake build creates a local retrogolint binary from ./cmd/retrogolint.
Before tagging a release, run:
go fmt ./...
make lint
make test
go vet ./...
go run ./cmd/retrogolint ./...The repository includes .retrogolint.ini to exclude intentional fixtures in testdata.
The version, commit, and build date are injected at build time via ldflags in the Makefile:
-X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.date=$(DATE)
VERSION defaults to the output of git describe --tags --always --dirty. Print the version with:
retrogolint -version