-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #540 from meshery/fix/badge
Add more specify check for code
- Loading branch information
Showing
4 changed files
with
37 additions
and
14 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
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 |
---|---|---|
|
@@ -107,19 +107,17 @@ vet: ## Run go vet against code. | |
go vet ./... | ||
|
||
# Run go lint against code | ||
check: golint | ||
golint: get-lint | ||
golint: run-lint | ||
.PHONY: lint | ||
lint: | ||
golangci-lint run -c .golangci.yml -v ./... | ||
|
||
run-lint: | ||
go run github.com/golangci/golangci-lint/cmd/golangci-lint run | ||
|
||
get-lint: | ||
go get github.com/golangci/golangci-lint/cmd/[email protected] | ||
.PHONY: tidy | ||
tidy: ## Run go mod tidy against code. | ||
go mod tidy | ||
|
||
.PHONY: test | ||
test: manifests generate fmt vet ## Run tests. | ||
go test ./... -coverprofile cover.out | ||
go test --short ./... -race -coverprofile=coverage.txt -covermode=atomic | ||
|
||
##@ Build | ||
|
||
|
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