diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index f0c7508f..64d1ecc8 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,15 +20,11 @@ jobs: id: cache with: path: ~/go/bin - key: ${{ runner.os }}-go-v1.21-misspell-v0.3.4-goimports-reviser-v3.4.5 + key: ${{ runner.os }}-go-v1.21-misspell-v0.3.4 - name: install misspell if: steps.cache.outputs.cache-hit != 'true' run: | go install github.com/client9/misspell/cmd/misspell@v0.3.4 - - name: install goimports-reviser - if: steps.cache.outputs.cache-hit != 'true' - run: | - go install github.com/incu6us/goimports-reviser/v3@v3.4.5 - name: Make Format run: make format - name: Check Diff diff --git a/Makefile b/Makefile index aa40a00f..a0bc6b01 100644 --- a/Makefile +++ b/Makefile @@ -252,7 +252,6 @@ lint: format: find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs gofmt -w -s find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs misspell -w - find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" | xargs -n1 goimports-reviser -rm-unused -set-alias -project-name "github.com/Finschia/finschia/" -company-prefixes "github.com/Finschia/" .PHONY: lint format