From 146e68670a68e16c62314ba854e039fa6ad2ff20 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Mon, 25 Jan 2021 19:18:35 +0000 Subject: [PATCH] Enable the golangci-lint in the CI --- Makefile | 3 +++ bootstrap/Makefile | 3 +++ 2 files changed, 6 insertions(+) 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