From 59a853839cde30e103f297654ad4494228368cb2 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Mon, 16 Nov 2026 08:54:06 +0100 Subject: [PATCH] Rename keep.md to DOCS-textgate-keep.md md-naming only allows README*, CLAUDE* and DOCS* markdown, so keep.md failed the all-files gate. Its only reader, check_textgate_keep.sh, now points at the new name. The textgate tool does not read the file; it is this repo's own keep list. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWWfb63jncj9Lca2jeX --- keep.md => DOCS-textgate-keep.md | 0 scripts/check_textgate_keep.sh | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename keep.md => DOCS-textgate-keep.md (100%) diff --git a/keep.md b/DOCS-textgate-keep.md similarity index 100% rename from keep.md rename to DOCS-textgate-keep.md diff --git a/scripts/check_textgate_keep.sh b/scripts/check_textgate_keep.sh index e5d5575..ae89174 100755 --- a/scripts/check_textgate_keep.sh +++ b/scripts/check_textgate_keep.sh @@ -1,10 +1,10 @@ #!/bin/bash # ============================================================================ -# Fail if `textgate scan` reports any text item not covered by keep.md. +# Fail if `textgate scan` reports any text item not covered by DOCS-textgate-keep.md. # # textgate has no path exclusion and its config is a gate control, so the -# repo's deliberate exceptions live in keep.md instead. This script reads the +# repo's deliberate exceptions live in DOCS-textgate-keep.md instead. This script reads the # "## Scan exceptions" table there (first cell: a backticked file, or a # directory ending in "/"; second cell: the backticked exact text, or * for # any text) and prints every scan hit no row covers. @@ -20,7 +20,7 @@ set -euo pipefail REPO_ROOT="$(git rev-parse --show-toplevel)" readonly REPO_ROOT -readonly KEEP_FILE="$REPO_ROOT/keep.md" +readonly KEEP_FILE="$REPO_ROOT/DOCS-textgate-keep.md" readonly SECTION="## Scan exceptions" die() { @@ -28,7 +28,7 @@ die() { exit 2 } -# Print the exception rows of keep.md as "pathtext" (empty text = any). +# Print the exception rows of DOCS-textgate-keep.md as "pathtext" (empty text = any). keep_rows() { awk -v section="$SECTION" '/^## /{on = ($0 == section)} on && /^\| `/' "$KEEP_FILE" | sed -E 's/^\| `([^`]+)` \| (`([^`]*)`|\*) \|.*$/\1\t\3/' @@ -56,10 +56,10 @@ main() { if [[ -n "$unmatched" ]]; then echo "$unmatched" - echo "textgate keep: $(wc -l <<<"$unmatched") hit(s) not in keep.md" >&2 + echo "textgate keep: $(wc -l <<<"$unmatched") hit(s) not in DOCS-textgate-keep.md" >&2 exit 1 fi - echo "textgate keep: all $(jq length <<<"$scan") hit(s) covered by keep.md" + echo "textgate keep: all $(jq length <<<"$scan") hit(s) covered by DOCS-textgate-keep.md" } main "$@"