-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: lint check * ci: add codecov token
- Loading branch information
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ YELLOW := $(shell tput -Txterm setaf 3) | |
WHITE := $(shell tput -Txterm setaf 7) | ||
RESET := $(shell tput -Txterm sgr0) | ||
|
||
PROJECT_DIR=$(shell pwd) | ||
|
||
.PHONY: help build fmt lint test release-tag release-push | ||
|
||
## Show help | ||
|
@@ -38,9 +40,12 @@ fmt: | |
@go fmt . | ||
|
||
## Lint with golangci-lint | ||
lint: | ||
lint: golangci-lint | ||
@echo Linting | ||
@golangci-lint run --no-config --issues-exit-code=0 --timeout=5m | ||
@$(PROJECT_DIR)/bin/golangci-lint run --config $(PROJECT_DIR)/.golangci.yaml | ||
|
||
golangci-lint: | ||
GOBIN=$(PROJECT_DIR)/bin go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
## Format docs | ||
docs: | ||
|