diff --git a/Makefile b/Makefile index 9fbee08..1c7d9d2 100644 --- a/Makefile +++ b/Makefile @@ -176,7 +176,7 @@ format: format/go format/cspell format/go: echo "Formatting Go files..." $(call _ensure_installed,binary,goimports) - go fmt ./... + gofmt -w -l -s . $(BIN_DIR)/goimports -local=github.com/nobl9/sloctl -w . ## Format cspell config file. diff --git a/cspell.yaml b/cspell.yaml index 0812024..f864cac 100644 --- a/cspell.yaml +++ b/cspell.yaml @@ -32,6 +32,7 @@ words: - dynatrace - endef - gobin + - gofmt - goimports - golangci - gosec