#!/bin/bash 
#

if [ "$1" == "-h" ]; then
  echo "Purpose:"
  echo ""
  echo " Runs 'golangci-lint' with our standard flag configuration"
  exit 0
fi

set -ex

pushd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 1

staticcheck ./...

popd || exit 1
