diff --git a/Makefile b/Makefile index d21eff5..8b54d0f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ GOHOSTOS:=$(shell go env GOHOSTOS) GOPATH:=$(shell go env GOPATH) VERSION=$(shell git describe --tags --always) +DOCKER ?= podman ifeq ($(GOHOSTOS), windows) #the `find.exe` is different from `find` in bash/shell. @@ -87,6 +88,13 @@ kind/spicedb: # run api locally run: build ./bin/ciam-rebac -conf configs + +# run go linter with the repositories lint config +.PHONY: lint +lint: + @echo "Linting code." + @$(DOCKER) run -t --rm -v $(PWD):/app -w /app golangci/golangci-lint golangci-lint run -v + # show help help: @echo ''