check-go 343 B

1234567891011121314151617
  1. #!/bin/bash
  2. # check-go - Checks the code quality of a given Go repository.
  3. echo Running gofmt ...
  4. gofmt -l -w -s .
  5. echo Running go vet ...
  6. go vet ./...
  7. echo Running golint ...
  8. golint -set_exit_status ./...
  9. echo Running ineffassign ...
  10. ineffassign .
  11. echo Running misspell ...
  12. misspell .
  13. echo Running gocyclo ...
  14. gocyclo -over 15 .
  15. echo Done.