Skip to content

Commit

Permalink
Revise make format command
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed Jun 25, 2024
1 parent 3ba0031 commit 9af086f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/format.yml

This file was deleted.

6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,8 @@ lint: golangci-lint
golangci-lint:
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59

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/"
format: golangci-lint
golangci-lint run ./... --fix

.PHONY: lint format

Expand Down

0 comments on commit 9af086f

Please sign in to comment.