mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Simplify fmt and vet targets
This commit is contained in:
parent
b6bea6d30d
commit
1ddbc8fa01
1 changed files with 2 additions and 3 deletions
5
Makefile
5
Makefile
|
|
@ -20,13 +20,12 @@ gqlgen:
|
|||
# Runs gofmt -w on the project's source code, modifying any files that do not match its style.
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
go list ./... | grep -v vendor | xargs go fmt
|
||||
go fmt ./...
|
||||
|
||||
# Runs go vet on the project's source code.
|
||||
# https://stackoverflow.com/questions/40531874/how-to-make-go-linters-ignore-vendor
|
||||
.PHONY: vet
|
||||
vet:
|
||||
go list ./... | grep -v vendor | xargs go vet
|
||||
go vet ./...
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
|
|
|
|||
Loading…
Reference in a new issue