Skip to content

Commit 753ea50

Browse files
committed
feat: added new make cmd
1 parent 6ab38d5 commit 753ea50

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.make/go.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ coverage: ## Show test coverage
4040
@echo "Generating coverage report..."
4141
@go test -coverprofile=coverage.out ./... $(TAGS) && go tool cover -func=coverage.out
4242

43+
.PHONY: fumpt
44+
fumpt: ## Run fumpt to format Go code
45+
@echo "Running fumpt..."
46+
@go install mvdan.cc/gofumpt@latest
47+
@gofumpt -w -extra .
48+
4349
.PHONY: generate
4450
generate: ## Run go generate in the base of the repo
4551
@echo "Running go generate..."

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ citation ## Update version in CITATION.cff (use version=X.Y.Z)
187187
clean-mods ## Remove all the Go mod cache
188188
coverage ## Show test coverage
189189
diff ## Show git diff and fail if uncommitted changes exist
190+
fumpt ## Run fumpt to format Go code
190191
generate ## Run go generate in the base of the repo
191192
godocs ## Trigger GoDocs tag sync
192193
govulncheck-install ## Install govulncheck

0 commit comments

Comments
 (0)