github.com/bazelbuild/remote-apis-sdks@v0.0.0-20240425170053-8a36686a6350/check-golint.sh (about)

     1  #!/bin/bash
     2  
     3  linterrs=$(golint -min_confidence 1.0 ./...)
     4  [ -z "$linterrs" ] && exit 0
     5  
     6  # Some files are not golint'd. Print message and fail.
     7  
     8  echo >&2 "Please fix the following lint errors:"
     9  echo >&2 "$linterrs"
    10  
    11  exit 1