Skip to content

Commit df2690f

Browse files
committed
refactor(make): Split pre-commit out from lint.
1 parent b2a5e4e commit df2690f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Makefile

+8-4
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ docs-serve:
183183
# Linting
184184

185185
.PHONY: vuln
186-
## vuln: [lint]* Runs `govulncheck` (vulnerability scanning) against all Golang (*.go) code.
186+
## vuln: [lint]* Runs `govulncheck` (vulnerability scanning).
187187
vuln:
188188
@ $(ECHO) " "
189189
@ $(ECHO) "\033[1;33m=====> Running govulncheck (https://go.dev/blog/vuln)...\033[0m"
@@ -197,13 +197,17 @@ vuln:
197197
@ $(ECHO) "\033[1;33m=====> Running osv-scanner (https://osv.dev)...\033[0m"
198198
osv-scanner -r .
199199

200-
.PHONY: lint
201-
## lint: [lint]* Runs ALL linting/validation tasks.
202-
lint: vuln
200+
.PHONY: pre-commit
201+
## pre-commit: [lint]* Runs `pre-commit` against all files.
202+
pre-commit:
203203
@ $(ECHO) " "
204204
@ $(ECHO) "\033[1;33m=====> Running pre-commit...\033[0m"
205205
pre-commit run --all-files
206206

207+
.PHONY: lint
208+
## lint: [lint]* Runs ALL linting/validation tasks.
209+
lint: vuln pre-commit
210+
207211
#-------------------------------------------------------------------------------
208212
# Testing
209213
# https://github.com/golang/go/wiki/TableDrivenTests

0 commit comments

Comments
 (0)