Official cwtch.im peer and server implementations. https://cwtch.im
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

quality.sh 543B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. echo "Checking code quality (you want to see no output here)"
  3. echo ""
  4. echo "Vetting:"
  5. go list ./... | xargs go vet
  6. echo ""
  7. echo "Linting:"
  8. go list ./... | xargs golint
  9. echo "Time to format"
  10. gofmt -l -s -w .
  11. # ineffassign (https://github.com/gordonklaus/ineffassign)
  12. echo "Checking for ineffectual assignment of errors (unchecked errors...)"
  13. ineffassign .
  14. # misspell (https://github.com/client9/misspell/cmd/misspell)
  15. echo "Checking for misspelled words..."
  16. misspell . | grep -v "vendor/" | grep -v "go.sum" | grep -v ".idea"