diff --git a/scripts/check_public_content.sh b/scripts/check_public_content.sh index e427cce..2bab1bf 100755 --- a/scripts/check_public_content.sh +++ b/scripts/check_public_content.sh @@ -30,7 +30,7 @@ check_names() { check_names styling_meta_pattern='[Cc][Oo][Ll][Oo][Uu]?[Rr][ -]?[Bb][Ll][Ii][Nn][Dd]|[Gg][Rr][AaEe][Yy][ -]?[Ss][Cc][Aa][Ll][Ee]|[Mm][Oo][Nn][Oo][Cc][Hh][Rr][Oo][Mm][Ee]|[Ss][Tt][Yy][Ll][Ii][Nn][Gg][ -]?[Cc][Oo][Mm][Pp][Ll][Ii][Aa][Nn][Cc][Ee]|[Dd][Ee][Ss][Ii][Gg][Nn][ -]?[Nn][Ee][Gg][Oo][Tt][Ii][Aa][Tt][Ii][Oo][Nn]' -styling_hits="$(git grep -n -I -E "$styling_meta_pattern" HEAD -- README.md validation ':(glob)**/*.md' 2>/dev/null || true)" +styling_hits="$(git grep -n -I -E "$styling_meta_pattern" HEAD -- README.md ':(glob)validation/**/*.md' 2>/dev/null || true)" [[ -z "$styling_hits" ]] || fail "public documentation contains internal styling instructions or compliance language:\n$styling_hits" while IFS= read -r commit; do