mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-01-08 16:19:34 +08:00
22 lines
300 B
Makefile
22 lines
300 B
Makefile
|
|
# 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
|