Skip to content

Commit

Permalink
chore: Add more makefile tools
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderxfz committed Apr 8, 2024
1 parent c6bc8f9 commit 5ee0cef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,21 @@ start: get-deps
.PHONY: test
test:
@go test ./...


## format: Fix code format issues
.PHONY: format
format:
go run mvdan.cc/gofumpt@latest -w -l .

## deadcode: Run deadcode tool for find unreachable functions
deadcode:
go run golang.org/x/tools/cmd/deadcode@latest -test ./...


## audit: Quality checks
.PHONY: audit
audit:
go mod verify
go vet ./...
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@ Commands:
install Install binary file from local bin directory to /usr/local/bin/
uninstall Remove binary file from /usr/local/bin/
start Build and start application
test Run unit tests
format Fix code format issues
deadcode Run deadcode tool for find unreachable functions
audit Quality checks
```

0 comments on commit 5ee0cef

Please sign in to comment.