Skip to content

Commit

Permalink
Merge pull request #40 from dnstapir/add_lint_target
Browse files Browse the repository at this point in the history
Add basic "lint" Makefile target
  • Loading branch information
johanix authored May 27, 2024
2 parents 1238710 + 697ca06 commit ba74ecd
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 ba74ecd

Please sign in to comment.