ray/ci/lint/check-banned-words.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
495 B
Bash
Raw Normal View History

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