fix(scripts): use make fmt-check in pre-commit script
This commit is contained in:
@@ -50,8 +50,8 @@ docker run --rm \
|
|||||||
echo '📥 Installing golangci-lint...'
|
echo '📥 Installing golangci-lint...'
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /root/go/bin || exit 1
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /root/go/bin || exit 1
|
||||||
|
|
||||||
echo '📋 Running make fmt-check...'
|
echo '📋 Running go fmt...'
|
||||||
make fmt-check || exit 1
|
go fmt ./... || exit 1
|
||||||
|
|
||||||
echo '🔍 Running make lint...'
|
echo '🔍 Running make lint...'
|
||||||
make lint || exit 1
|
make lint || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user