From 96848dc64fff7ebb81d34adf15e21aff3d5675db Mon Sep 17 00:00:00 2001 From: Matthew Sevey Date: Wed, 13 Sep 2023 10:51:03 -0400 Subject: [PATCH] feat: add go fmt to make fmt command (#1178) ## Overview Closes #223 Instead of adding a formatted to the CI, which would introduce a diff that would need to be committed, I extended the `make fmt` command. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index afabd170b03..8f6b79122f7 100644 --- a/Makefile +++ b/Makefile @@ -47,10 +47,12 @@ lint: vet .PHONY: lint -## fmt: Run fixes for linters. Currently only markdownlint. +## fmt: Run fixes for linters. fmt: @echo "--> Formatting markdownlint" @markdownlint --config .markdownlint.yaml '**/*.md' -f + @echo "--> Formatting go" + @golangci-lint run --fix .PHONY: fmt ## vet: Run go vet