adguardhome-sync/Makefile
2021-03-27 23:40:59 +01:00

23 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