github.com/digitalocean/go-netbox@v0.0.2/scripts/golint.sh (about) 1 #!/bin/bash 2 3 # Verify that all files are correctly golint'd. 4 set -e -o nounset -o pipefail 5 counter=0 6 while read -r line; do 7 echo $line 8 : $((counter++)) 9 done < <(golint ./...) 10 11 if ((counter == 0)); then 12 exit 0 13 fi 14 exit 1