Skip to content

Commit

Permalink
chore: Add more tools (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonjek authored Nov 23, 2024
1 parent 50be581 commit 9cf1559
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ air: get-deps generate-web
go install github.com/air-verse/air@latest
air

## 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 ./...

## check-go: Check that Go is installed
.PHONY: check-go
check-go:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Commands:
get-deps Download go dependencies
generate-web Compile templ files via github.com/a-h/templ/cmd/templ
air Build and start application in live reload mode via air
format Fix code format issues
deadcode Run deadcode tool for find unreachable functions
audit Quality checks
check-go Check that Go is installed
help Display help
```
Expand Down

0 comments on commit 9cf1559

Please sign in to comment.