Explorar o código

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

John Saigle hai 7 meses
pai
achega
56a9510e93
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  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 ./...