Kaynağa Gözat

chore: remove gofumpt -s flag, default to be enabled (#1816)

Kevin Wan 3 yıl önce
ebeveyn
işleme
095b603788
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 1
      .github/workflows/go.yml
  2. 1 0
      .gitignore

+ 1 - 1
.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 ./...

+ 1 - 0
.gitignore

@@ -17,6 +17,7 @@
 
 # for test purpose
 **/adhoc
+go.work
 
 # gitlab ci
 .cache