Chore: add new lint-fix
for Makefile
This commit is contained in:
parent
c5fe5235f7
commit
765982e86a
15
Makefile
15
Makefile
@ -130,12 +130,15 @@ all-arch: $(PLATFORM_LIST) $(WINDOWS_ARCH_LIST)
|
|||||||
|
|
||||||
releases: $(gz_releases) $(zip_releases)
|
releases: $(gz_releases) $(zip_releases)
|
||||||
|
|
||||||
lint:
|
LINT_OS_LIST := darwin windows linux freebsd openbsd
|
||||||
GOOS=darwin golangci-lint run ./...
|
|
||||||
GOOS=windows golangci-lint run ./...
|
lint: $(foreach os,$(LINT_OS_LIST),$(os)-lint)
|
||||||
GOOS=linux golangci-lint run ./...
|
%-lint:
|
||||||
GOOS=freebsd golangci-lint run ./...
|
GOOS=$* golangci-lint run ./...
|
||||||
GOOS=openbsd golangci-lint run ./...
|
|
||||||
|
lint-fix: $(foreach os,$(LINT_OS_LIST),$(os)-lint-fix)
|
||||||
|
%-lint-fix:
|
||||||
|
GOOS=$* golangci-lint run --fix ./...
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(BINDIR)/*
|
rm $(BINDIR)/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user