Add Makefile and remove ad-hoc lint script

This commit is contained in:
2024-11-05 12:40:30 +02:00
parent d5da9ac62d
commit f34ac651b7
2 changed files with 19 additions and 3 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
SHELL := /usr/local/bin/oksh
export PATH := $(PATH)
.PHONY: all fmt lint
all: fmt lint test
# Test
test:
go test -v ./...
# Format code
fmt:
gofumpt -l -w .
gci write .
# Run linter
lint: fmt
golangci-lint run