Browse Source

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

John Saigle 7 months ago
parent
commit
56a9510e93
2 changed files with 8 additions and 0 deletions
  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 ./...