adguardhome-sync/Makefile

23 lines
300 B
Makefile
Raw Normal View History

2021-03-28 06:40:59 +08:00
# Run go fmt against code
fmt:
go fmt ./...
gofmt -s -w .
# Run go vet against code
vet:
go vet ./...
# Run golangci-lint
lint:
golangci-lint run
# Run go mod tidy
tidy:
go mod tidy
# Run tests
test: tidy fmt vet
go test ./... -coverprofile=coverage.out
go tool cover -func=coverage.out