build: test
	go build -v ./...
	go build -v .

test: fmt
	go test -v ./...

fmt: lint
	gofumpt -w .

lint:
	golangci-lint run ./...
	staticcheck
	errcheck
	revive -config revive.toml -formatter friendly ./...

install:
	go install .

.PHONY: build test fmt lint install