Skip to content

Commit

Permalink
makefile: add validate target using golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgzr committed Jan 24, 2021
1 parent f301fb1 commit 0b6aab9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ porcelain:
porcelain.1: porcelain.1.scd
$(SCDOC) < $< >$@


.PHONY: validate
validate: GOLANGCI_LINT = golangci-lint
validate:
$(GOLANGCI_LINT) run

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
Expand Down

0 comments on commit 0b6aab9

Please sign in to comment.