Skip to content

Commit a1fe027

Browse files
committed
Add lint target
1 parent 7d91b60 commit a1fe027

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LDFLAGS := $(EXTRA_LDFLAGS)
1111
LDFLAGS += -X 'github.com/Soft/mkprompt/internal/constants.Version=$(REF_NAME)'
1212
LDFLAGS += -X 'github.com/Soft/mkprompt/internal/constants.DestDir=$(DESTDIR)'
1313

14-
.PHONY: all generate build test install archive clean download-assets
14+
.PHONY: all generate build test lint install archive clean download-assets
1515

1616
all: build
1717

@@ -27,6 +27,9 @@ build: generate
2727
test: generate
2828
go test -v ./...
2929

30+
lint: generate
31+
go vet ./...
32+
3033
install: build
3134
install -m 755 -D -t $(DESTDIR)/bin $(BINARY)
3235
install -m 644 -D -t $(DESTDIR)/share/$(BINARY)/shell shell/*

0 commit comments

Comments
 (0)