Skip to content

Commit

Permalink
Add basic "lint" Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
eest committed May 27, 2024
1 parent 1238710 commit 697ca06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ build: version.go # ../tapir/tapir.pb.go
# ../tapir/tapir.pb.go: ../tapir/tapir.proto
# make -C ../tapir tapir.pb.go

lint:
go fmt ./...
go vet ./...
staticcheck ./...
gosec ./...
golangci-lint run

linux:
/bin/sh make-version.sh $(VERSION)-$(COMMIT) $(APPDATE) $(PROG)
GOOS=linux GOARCH=amd64 go build $(GOFLAGS) -o ${PROG}.linux
Expand Down

0 comments on commit 697ca06

Please sign in to comment.