mirror of https://github.com/0xERR0R/blocky.git
added golangci-lint installation
This commit is contained in:
parent
e37c3ae035
commit
4a554e2ca3
3
Makefile
3
Makefile
|
@ -13,7 +13,7 @@ clean: ## cleans output directory
|
|||
$(shell rm -rf $(BIN_OUT_DIR)/*)
|
||||
|
||||
swagger: ## creates swagger documentation as html file
|
||||
go get github.com/swaggo/swag/cmd/swag@v1.6.9
|
||||
go install github.com/swaggo/swag/cmd/swag@v1.6.9
|
||||
npm install bootprint bootprint-openapi html-inline
|
||||
$(shell go env GOPATH)/bin/swag init -g api/api.go
|
||||
$(shell) node_modules/bootprint/bin/bootprint.js openapi docs/swagger.json /tmp/swagger/
|
||||
|
@ -29,6 +29,7 @@ test: ## run tests
|
|||
go test -v -coverprofile=coverage.txt -covermode=atomic -cover ./...
|
||||
|
||||
lint: build ## run golangcli-lint checks
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1
|
||||
$(shell go env GOPATH)/bin/golangci-lint run
|
||||
|
||||
run: build ## Build and run binary
|
||||
|
|
Loading…
Reference in New Issue