mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +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.
|
# Runs gofmt -w on the project's source code, modifying any files that do not match its style.
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt:
|
fmt:
|
||||||
go list ./... | grep -v vendor | xargs go fmt
|
go fmt ./...
|
||||||
|
|
||||||
# Runs go vet on the project's source code.
|
# Runs go vet on the project's source code.
|
||||||
# https://stackoverflow.com/questions/40531874/how-to-make-go-linters-ignore-vendor
|
|
||||||
.PHONY: vet
|
.PHONY: vet
|
||||||
vet:
|
vet:
|
||||||
go list ./... | grep -v vendor | xargs go vet
|
go vet ./...
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue