diff --git a/Makefile b/Makefile index 9a0adba..e11672b 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,9 @@ ROOT_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) include $(ROOT_DIR)/bootstrap/Makefile +.PHONY: lint +lint: lint-bootstrap + .PHONY: compile compile: compile-bootstrap diff --git a/bootstrap/Makefile b/bootstrap/Makefile index 3f724ec..0258408 100644 --- a/bootstrap/Makefile +++ b/bootstrap/Makefile @@ -6,3 +6,6 @@ compile-bootstrap: clean-bootstrap: docker rmi serene-lang/serene-bootstrap:$(BOOTSTRAP_TAG) + +lint-bootstrap: + docker run --rm -v $(BOOTSTRAP_DIR):/app -w /app golangci/golangci-lint:v1.35.2 golangci-lint run pkg/core