#!/bin/bash # check-go - Checks the code quality of a given Go repository. echo Running gofmt ... gofmt -l -w -s . echo Running go vet ... go vet ./... echo Running golint ... golint -set_exit_status ./... echo Running ineffassign ... ineffassign . echo Running misspell ... misspell . echo Running gocyclo ... gocyclo -over 15 . echo Done.