spellcheck 581 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -uo pipefail
  3. if [ -z "${1:-}" ]; then
  4. SCHEMA="_build/emqx/lib/emqx_dashboard/priv/www/static/schema.json"
  5. else
  6. SCHEMA="$1"
  7. fi
  8. docker run -d --name langtool "ghcr.io/iequ1/emqx-schema-validate:0.3.1"
  9. docker exec -i langtool ./emqx_schema_validate - < "${SCHEMA}"
  10. success="$?"
  11. docker kill langtool || true
  12. docker rm langtool || true
  13. echo "If this script finds a false positive (e.g. when it things that a protocol name is a typo),
  14. make a PR here: https://github.com/ieQu1/emqx-schema-validate/blob/master/dict/en_spelling_additions.txt"
  15. exit "$success"