Skip to content

Commit

Permalink
Merge pull request #108 from bmf-san/feature/add-govulncheck
Browse files Browse the repository at this point in the history
Add govulncheck
  • Loading branch information
bmf-san authored Jul 14, 2023
2 parents 4a8a907 + 0d535ba commit 047ef05
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
- run:
name: "Run benchstat"
command: make benchstat
- run:
name: "Run govulncheck"
command: make govulncheck
- run:
name: Build go
command: go build
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ endif
ifeq ($(shell command -v benchstat 2> /dev/null),)
go install golang.org/x/perf/cmd/benchstat@latest
endif
ifeq ($(shell govulncheck ./... 2> /dev/null),)
go install golang.org/x/vuln/cmd/govulncheck@latest
endif

.PHONY: gofmt
gofmt: ## Run gofmt.
Expand All @@ -47,6 +50,10 @@ staticcheck: ## Run staticcheck.
gosec: ## Run gosec.
gosec -exclude-dir=_examples ./...

.PHONY: govulncheck
govulncheck: ## Run govulncheck.
govulncheck ./...

.PHONY: test
test: ## Run tests.
go test -v -race ./...
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ This logo was created by [gopherize.me](https://gopherize.me/gopher/d654ddf2b81c
- [Design](#design)
- [Contribution](#contribution)
- [Sponsor](#sponsor)
- [Stargazers](#stargazers)
- [Forkers](#forkers)
- [License](#license)
- [Author](#author)

# Features
- Go1.20 >= 1.16
- Simple data structure based on trie tree
- Lightweight
- Lines of codes: 2428
Expand Down

0 comments on commit 047ef05

Please sign in to comment.