ci(arch): include openflare in cordis architecture checks

This commit is contained in:
ryan
2026-09-03 09:32:43 +08:00
parent b183e80565
commit ed57e44e3c
5 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ build-embedded:
code-check:
@echo "==> Architecture guards..."
@command -v rg >/dev/null 2>&1 || { echo 'error: rg (ripgrep) is required for architecture guards' >&2; exit 1; }
scripts/check_cordis_architecture.sh
@if rg -n 'db\.DB\(|db\.Redis' backend/openflare/plugins/server/kernel/model --glob '*.go' -g '!*_test.go' ; then \
echo 'error: internal/model must not access db.DB or db.Redis (non-test code)' >&2; \
exit 1; \