瀏覽代碼

node: add targets for linting to Makefiles (#4308)

John Saigle 7 月之前
父節點
當前提交
56a9510e93
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 4 0
      Makefile
  2. 4 0
      node/Makefile

+ 4 - 0
Makefile

@@ -31,6 +31,10 @@ generate: dirs
 	rm -rf node/pkg/proto
 	tools/bin/buf generate
 
+.PHONY: lint
+lint:
+	bash scripts/lint.sh lint
+
 .PHONY: node
 ## Build guardiand binary
 node: $(BIN)/guardiand

+ 4 - 0
node/Makefile

@@ -1,3 +1,7 @@
+.PHONY: lint
+lint: 
+	golangci-lint run -c ../.golangci.yml ./...
+
 .PHONY: test
 test: 
 	go test -v ./...