From 095b603788f3967d5bc6cfcd32b33f55ca8eb8af Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Fri, 22 Apr 2022 14:37:17 +0800 Subject: [PATCH] chore: remove gofumpt -s flag, default to be enabled (#1816) --- .github/workflows/go.yml | 2 +- .gitignore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 461eed17..fc8dc0dc 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -28,7 +28,7 @@ jobs: run: | go vet -stdmethods=false $(go list ./...) go install mvdan.cc/gofumpt@latest - test -z "$(gofumpt -s -l -extra .)" || echo "Please run 'gofumpt -l -w -extra .'" + test -z "$(gofumpt -l -extra .)" || echo "Please run 'gofumpt -l -w -extra .'" - name: Test run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... diff --git a/.gitignore b/.gitignore index 50158305..2f2cb2f2 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ # for test purpose **/adhoc +go.work # gitlab ci .cache