Prevent publication of styling instructions
This commit is contained in:
@@ -29,6 +29,10 @@ 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)"
|
||||
[[ -z "$styling_hits" ]] || fail "public documentation contains internal styling instructions or compliance language:\n$styling_hits"
|
||||
|
||||
while IFS= read -r commit; do
|
||||
check_ref "$commit"
|
||||
done < <(git rev-list --all)
|
||||
|
||||
Reference in New Issue
Block a user