Delete merge-check.sh and merge-check-typescript.sh: every step they ran is a Go test or the build module's; a test refuses their return (issues 1295 and 1293, E5c)

This commit is contained in:
2026-10-23 15:31:10 +02:00
parent 20ea65f0ac
commit 2c32728395
2 changed files with 22 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
module checks/noscripts
go 1.22
+19
View File
@@ -0,0 +1,19 @@
package noscripts
import (
"errors"
"os"
"path/filepath"
"testing"
)
// The catalogue's checks are Go tests (novox/hq ADR 0529 clause 5, ADR 0445): the checker runs every nested Go module's tests by
// the language's convention and no script at the root says what else to run. A script back at the root would be a check nobody
// runs (ADR 0503 §3: since R4e the checker has not run them), so it is refused.
func TestNoScriptOfTheOldCheckStandsAtTheRoot(t *testing.T) {
for _, name := range []string{"merge-check.sh", "merge-check-typescript.sh", "check-nested-modules.sh"} {
if _, err := os.Stat(filepath.Join("..", "..", name)); !errors.Is(err, os.ErrNotExist) {
t.Errorf("%s stands at the catalogue's root (%v): what it ran is a Go test in checks/ or a step of the build module", name, err)
}
}
}