chore: migrate linting and formatting commands to mise tasks

This commit is contained in:
Pasha Sviderski
2026-10-30 21:33:07 +10:00
parent 965879b69f
commit b214d23f21
5 changed files with 34 additions and 52 deletions
-18
View File
@@ -47,21 +47,3 @@ test-clean:
else \
echo "Nothing to clean."; \
fi
.PHONY: vet
vet:
go vet ./...
.PHONY: format fmt
format fmt:
GOOS=linux golangci-lint fmt
LINT_TARGETS := lint lint-and-fix
.PHONY: $(LINT_TARGETS) _lint
$(LINT_TARGETS): _lint
lint: ARGS=
lint-and-fix: ARGS=--fix
_lint:
# Explicitly set OS to Linux to not skip *_linux.go files when running on macOS.
# Uncloud daemon won't likely support OS other than Linux anytime soon, so for now we can rely on that.
GOOS=linux golangci-lint run $(ARGS)