Skip to content

Commit

Permalink
adding golang lint (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoserwal authored Feb 13, 2024
1 parent c7c09e0 commit 1f8b2a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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 ''
Expand Down

0 comments on commit 1f8b2a5

Please sign in to comment.