KISC arch init
This commit is contained in:
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
DOC_PATH="${1:-KISC-merkarhitektura-apraksts.md}"
|
||||
|
||||
if [ ! -f "$DOC_PATH" ]; then
|
||||
echo "ERROR: regenerated doc not found: $DOC_PATH"
|
||||
echo "Hint: pass path as argument, e.g.: tools/qa/check_generated_doc_headings.sh docs/output.md"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
need_heading() {
|
||||
h="$1"
|
||||
if ! grep -Eq "^[#]{1,6}[[:space:]]+$h([[:space:]]|\$)" "$DOC_PATH"; then
|
||||
echo "ERROR: missing heading: $h"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Required headings (core completeness gates)
|
||||
need_heading "1.2 Iesaistītās puses"
|
||||
need_heading "1.3 Saīsinājumi"
|
||||
need_heading "1.4 Saistītie dokumenti"
|
||||
need_heading "4.1 Juridiskais skats"
|
||||
need_heading "5.1 Pasākumu plāns"
|
||||
need_heading "5.2 Mijiedarbība ar citām jomām"
|
||||
need_heading "5.3 Riski"
|
||||
|
||||
echo "OK: required headings exist in $DOC_PATH"
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
REQ_FILES="
|
||||
domains/kultura-valoda/registers/08-roadmap/roadmap.yaml
|
||||
domains/kultura-valoda/registers/08-roadmap/interactions.yaml
|
||||
domains/kultura-valoda/registers/09-risks/risks.yaml
|
||||
"
|
||||
|
||||
for f in $REQ_FILES; do
|
||||
if [ ! -f "$f" ]; then
|
||||
echo "ERROR: missing required register: $f"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# fail if file contains only an empty items list
|
||||
if grep -Eq '^\s*items:\s*\[\s*\]\s*$' "$f"; then
|
||||
echo "ERROR: register is empty (items: []): $f"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "OK: required registers exist and are non-empty"
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
DOC_PATH="${1:-KISC-merkarhitektura-apraksts.md}"
|
||||
|
||||
if [ ! -f "$DOC_PATH" ]; then
|
||||
echo "ERROR: regenerated doc not found: $DOC_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Naive but effective: count organization list lines containing "org." OR common abbreviations.
|
||||
# Adjust pattern if your doc renders differently.
|
||||
COUNT="$(grep -Eo '(org\.[a-z0-9_]+)|\b(KM|KISC|LNB|LNA|NKMP|LNKC|NKC|VKKF|VDAA|VARAM|TA|TM|VVC|LVA|LUMII)\b' "$DOC_PATH" | wc -l | tr -d ' ')"
|
||||
|
||||
# Require at least 10 hits to ensure it isn't collapsed to just 3 orgs.
|
||||
if [ "$COUNT" -lt 10 ]; then
|
||||
echo "ERROR: stakeholder content appears too small (hits=$COUNT). Likely collapsed list."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "OK: stakeholder presence check passed (hits=$COUNT)"
|
||||
@@ -0,0 +1,10 @@
|
||||
# Regenerated document completeness checklist (kultura-valoda)
|
||||
|
||||
The regenerated architecture document MUST include:
|
||||
|
||||
- [ ] Abbreviations/terms (1.3)
|
||||
- [ ] Related documents (1.4)
|
||||
- [ ] Stakeholders/organizations list (1.2 scope)
|
||||
- [ ] Legal view section "Juridiskais skats" (4.1) sourced from `registers/00-meta/legal-acts.yaml`
|
||||
|
||||
If any item is missing, the generator/template must be updated (do not delete content from re
|
||||
Reference in New Issue
Block a user