check-banned-words.sh 495 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # Checks Python and doc files for common mispellings.
  3. BANNED_WORDS="RLLib Rllib"
  4. echo "Checking for common mis-spellings..."
  5. for word in $BANNED_WORDS; do
  6. if grep -R --include="*.py" --include="*.rst" "$word" .; then
  7. echo "******************************"
  8. echo "*** Misspelled word found! ***"
  9. echo "******************************"
  10. echo "Please fix the capitalization/spelling of \"$word\" in the above files."
  11. exit 1
  12. fi
  13. done