add "fmt" to justfile

This commit is contained in:
6543 2022-05-10 18:25:49 +02:00
parent 2dbc66d052
commit e5af66b2cd
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE

View file

@ -15,6 +15,9 @@ lint: tool-golangci tool-gofumpt
[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }; \
golangci-lint run --timeout 5m
fmt: tool-gofumpt
gofumpt -w --extra .
tool-golangci:
@hash golangci-lint> /dev/null 2>&1; if [ $? -ne 0 ]; then \
ggo install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \