github.com/hyperledger/fabric-ca@v2.0.0-alpha.0.20201120210307-7b4f34729db1+incompatible/scripts/check_vet (about) 1 #!/bin/bash 2 3 # 4 # Copyright IBM Corp. All Rights Reserved. 5 # 6 # SPDX-License-Identifier: Apache-2.0 7 # 8 9 PRINTFUNCS="Print,Printf,Info,Infof,Warning,Warningf,Error,Errorf,Critical,Criticalf,Sprint,Sprintf,Log,Logf,Panic,Panicf,Fatal,Fatalf,Notice,Noticef,Wrap,Wrapf,WithMessage" 10 OUTPUT="$(go vet -all -printfuncs $PRINTFUNCS ./...)" 11 if [ -n "$OUTPUT" ]; then 12 echo "The following files contain go vet errors" 13 echo $OUTPUT 14 exit 1 15 fi