github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/scripts/golinter.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright Greg Haskins All Rights Reserved.
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  
     8  
     9  set -e
    10  
    11  declare -a arr=(
    12  "./bccsp"
    13  "./common"
    14  "./core"
    15  "./events"
    16  "./examples"
    17  "./gossip"
    18  "./msp"
    19  "./orderer"
    20  "./peer"
    21  "./protos"
    22  )
    23  
    24  for i in "${arr[@]}"
    25  do
    26      echo "Checking $i"
    27      go vet $i/...
    28  done