File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
.github/workflows/scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ test -n "${UNACCEPTABLE_WORD_LIST:-}" || fatal "UNACCEPTABLE_WORD_LIST unset"
2121
2222unacceptable_language_lines=
2323if [[ -f .unacceptablelanguageignore ]]; then
24- log " Found for unacceptable file..."
24+ log " Found unacceptable language ignore file..."
2525 log " Checking for unacceptable language..."
26- unacceptable_language_lines=$( tr ' \n' ' \0' < .unacceptablelanguageignore | xargs -0 -I% printf ' ":(exclude)%" ' | xargs git grep -i -I -w -H -n --column -E " ${UNACCEPTABLE_WORD_LIST// / |} " | grep -v " ignore-unacceptable-language" ) || true | /usr/bin/paste -s -d " " -
26+ unacceptable_language_lines=$( tr ' \n' ' \0' < .unacceptablelanguageignore | xargs -0 -I% printf ' ":(exclude)%" ' | xargs git grep -i -I -w -H -n --column -E " ${UNACCEPTABLE_WORD_LIST// / |} " -- ' :!*.unacceptablelanguageignore ' | grep -v " ignore-unacceptable-language" ) || true | /usr/bin/paste -s -d " " -
2727else
2828 log " Checking for unacceptable language..."
2929 unacceptable_language_lines=$( git grep -i -I -w -H -n --column -E " ${UNACCEPTABLE_WORD_LIST// / |} " | grep -v " ignore-unacceptable-language" ) || true | /usr/bin/paste -s -d " " -
You can’t perform that action at this time.
0 commit comments