forked from ebhomengo/niki
Merge pull request 'fix(makefile): skip formatting vendor and auto generated files' (#158) from stage/erfan/fix-makefile-format-skipping-vendor into develop
Reviewed-on: ebhomengo/niki#158
This commit is contained in:
commit
243caf8f82
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue