From eea70112f84c0c02ba4c5ee95eb303e16df4500a Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Sun, 31 Oct 2021 21:02:27 +0100 Subject: [PATCH] chore(deps): Adding gofumpt as a formatting tool Signed-off-by: Vincent Boutour --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e180acc..a90cfb0 100644 --- a/Makefile +++ b/Makefile @@ -43,16 +43,17 @@ dev: format style test build .PHONY: init init: @curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "git_hooks" "coverage" "release" - go install github.com/kisielk/errcheck@latest - go install golang.org/x/lint/golint@latest - go install golang.org/x/tools/cmd/goimports@latest + go install "github.com/kisielk/errcheck@latest" + go install "golang.org/x/lint/golint@latest" + go install "golang.org/x/tools/cmd/goimports@latest" + go install "mvdan.cc/gofumpt@latest" go mod tidy -compat=1.17 ## format: Format code. e.g Prettier (js), format (golang) .PHONY: format format: goimports -w $(shell find . -name "*.go") - gofmt -s -w $(shell find . -name "*.go") + gofumpt -s -w $(shell find . -name "*.go") ## style: Check lint, code styling rules. e.g. pylint, phpcs, eslint, style (java) etc ... .PHONY: style