github.com/fastly/go-fastly/v6@v6.8.0/scripts/check-imports.sh (about) 1 #!/usr/bin/env bash 2 3 echo "==> Checking that code complies with goimports requirements..." 4 5 goimports_files=$(goimports -d -l {fastly,tools}) 6 if [[ -n ${goimports_files} ]]; then 7 echo 'goimports needs to be run on the following files:' 8 echo " ===== " 9 echo "${goimports_files}" 10 echo " ===== " 11 echo "You can use the command: \`make fiximports\` to resolve." 12 exit 1 13 fi