Add Make targets for formatting and linting

Add configuration and document usage in README

Entire-Checkpoint: 53425877e242
This commit is contained in:
2026-03-30 16:23:12 +02:00
parent 82c514b11a
commit ed236ec539
4 changed files with 108 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ SVELTE_SRC = $(wildcard $(FRONTEND)/src/*.svelte) \
$(wildcard $(FRONTEND)/src/header/*.svelte) \
$(wildcard $(FRONTEND)/src/job/*.svelte)
.PHONY: clean distclean test tags frontend swagger graphql $(TARGET)
.PHONY: clean distclean fmt lint test tags frontend swagger graphql $(TARGET)
.NOTPARALLEL:
@@ -75,6 +75,14 @@ test:
@go vet ./...
@go test ./...
fmt:
$(info ===> FORMAT)
@gofumpt -l -w .
lint:
$(info ===> LINT)
@golangci-lint run ./...
tags:
$(info ===> TAGS)
@ctags -R