Public-text checks: the OER/2 documents and corpus are checked like any other file #545

Merged
dcharlot merged 1 commit from scripts/public-text-checks-cover-oer into main 2026-10-29 22:53:46 -04:00
2 changed files with 5 additions and 10 deletions

View file

@ -9,9 +9,8 @@
#
# Scope: the same files as scripts/check-public-names.sh — the tracked files
# under wai/ with the extensions .md .rs .toml .py .sh .mjs .js .json .html
# .css .ttl .h .c .txt and wai/'s .gitignore files, except the settled OER/2
# documents and corpus, and except wai/CHANGELOG.md: its history is a record,
# and only names are redacted from it. Files given as arguments replace that
# .css .ttl .h .c .txt and wai/'s .gitignore files, except wai/CHANGELOG.md:
# its history is a record, and only names are redacted from it. Files given as arguments replace that
# list (the self-test, scripts/test-public-text-checks.sh, uses this).
#
# Opt-out, for a functional identifier or a quotation only (an environment
@ -79,7 +78,6 @@ if [ $# -gt 0 ]; then
else
while IFS= read -r f; do
case "$f" in
wai/extensions/oer-receipts.md|wai/wai-rs/src/oer.rs|wai/oer-conformance/*) continue ;;
wai/CHANGELOG.md) continue ;;
esac
files+=("$f")

View file

@ -20,9 +20,9 @@
# .sh .mjs .js .json .html .css .ttl .h .c .txt, and wai/'s .gitignore files;
# or, when files are given as arguments, those files (the self-test,
# scripts/test-public-text-checks.sh, uses this), each a path relative to the
# directory the script is run from, or absolute. Excluded:
# - the settled OER/2 documents and corpus (wai/extensions/oer-receipts.md,
# wai/wai-rs/src/oer.rs, wai/oer-conformance/), which no change may edit.
# directory the script is run from, or absolute. No file is excluded: the
# OER/2 documents and corpus once were, as settled text, until a minor version
# edited them; they pass, and a change to them is checked like any other.
#
# Opt-out, for a functional identifier only (a model-hub id a tool defaults
# to, a repository URL, an OS API name, a security advisory id, a capability
@ -80,9 +80,6 @@ if [ $# -gt 0 ]; then
done
else
while IFS= read -r f; do
case "$f" in
wai/extensions/oer-receipts.md|wai/wai-rs/src/oer.rs|wai/oer-conformance/*) continue ;;
esac
files+=("$f")
done < <(git ls-files 'wai/*.md' 'wai/*.rs' 'wai/*.toml' 'wai/*.py' 'wai/*.sh' 'wai/*.mjs' 'wai/*.js' \
'wai/*.json' 'wai/*.html' 'wai/*.css' 'wai/*.ttl' 'wai/*.h' 'wai/*.c' 'wai/*.txt' \