build: add a make target 'golangci-lint'
This adds a command 'make golangci-lint' This is done so developers can conveiently run golangci-lint locally like it runs in the CI. golangci-lint is also run as part of the more general 'make lint'. Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
1 parent
d1ef4f9e69
commit
8a4aa1fd00
1 file changed
+2
-2
@@ -167,10 +167,10 @@ yamllint:
|
||||
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint:
|
||||
@golangci-lint run
|
||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
|
||||
|
||||
.PHONY: lint
|
||||
lint: yamllint pylint shellcheck vet markdownlint ## Run various linters
|
||||
lint: yamllint pylint shellcheck vet markdownlint golangci-lint ## Run various linters
|
||||
|
||||
.PHONY: pylint
|
||||
pylint:
|
||||
|
||||
Reference in new issue
Block a user