forked from ebhomengo/niki
1
0
Fork 0

fix(makefile): skip formatting vendor and auto generated files

This commit is contained in:
Erfan Mohammadi 2024-09-09 12:39:57 +03:30
parent 9ddcdd7a82
commit 82e71763e2
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ format:
@which gofumpt || (go install mvdan.cc/gofumpt@latest) @which gofumpt || (go install mvdan.cc/gofumpt@latest)
@gofumpt -l -w $(ROOT) @gofumpt -l -w $(ROOT)
@which gci || (go install github.com/daixiang0/gci@latest) @which gci || (go install github.com/daixiang0/gci@latest)
@gci write $(ROOT) @gci write $(ROOT) --skip-generated --skip-vendor
@which golangci-lint || (go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.0) @which golangci-lint || (go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.0)
@golangci-lint run --fix @golangci-lint run --fix