1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix golang ci linter prehook (#8359)

This commit is contained in:
Prabhat Khera 2023-01-19 12:11:09 +13:00 committed by GitHub
parent fed3d14adf
commit adf92ce5e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

11
golangci-lint.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
cd api
if golangci-lint run -c .golangci.yaml
then
echo "golangci-lint run successfully"
else
echo "golangci-lint run failed"
exit 1
fi