Skip to content

Commit

Permalink
added golangci-lint installation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed Sep 9, 2021
1 parent e37c3ae commit 4a554e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
go install github.com/swaggo/swag/cmd/[email protected]
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/
Expand All @@ -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/[email protected]
$(shell go env GOPATH)/bin/golangci-lint run

run: build ## Build and run binary
Expand Down

0 comments on commit 4a554e2

Please sign in to comment.