Skip to content

Commit

Permalink
Makefile: add lint target
Browse files Browse the repository at this point in the history
Convenience lint target for running just the lint test. Especially
useful to quickly find all compile errors in a big change.
  • Loading branch information
RaduBerinde committed Jan 23, 2023
1 parent 7953ed0 commit 825168d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ test:
testrace: testflags += -race -timeout 20m
testrace: test

.PHONY: lint
lint:
${GO} test -tags '$(TAGS)' ${testflags} -run ${TESTS} ./internal/lint

.PHONY: stress stressrace
stressrace: testflags += -race
stress stressrace: testflags += -exec 'stress ${STRESSFLAGS}' -timeout 0 -test.v
Expand Down

0 comments on commit 825168d

Please sign in to comment.