From e5af66b2cdeaf3ee35f073d41d298135d00b1cbd Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 10 May 2022 18:25:49 +0200 Subject: [PATCH] add "fmt" to justfile --- Justfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Justfile b/Justfile index 8d31fa9..1114aaf 100644 --- a/Justfile +++ b/Justfile @@ -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; \