|
| 1 | +# Concrete enforcement for REPOSITORY_HYGIENE.md. Changes require review of |
| 2 | +# the policy reason, not just a wider allowlist to make the checker pass. |
| 3 | +schema = 1 |
| 4 | + |
| 5 | +[root] |
| 6 | +allowed-files = [ |
| 7 | + ".gitignore", ".gitmodules", ".repo-hygiene.toml", ".wflcfg", |
| 8 | + "AGENTS.md", "AI_POLICY.md", "CLAUDE.md", "CODE_OF_CONDUCT.md", |
| 9 | + "CONTRIBUTING.md", "GOVERNANCE.md", "LICENSE", "README.md", |
| 10 | + "REPOSITORY_HYGIENE.md", "SECURITY.md", "main.wfl", "testing.md", |
| 11 | +] |
| 12 | +allowed-dirs = [ |
| 13 | + ".github", "admin", "app", "docs", "lib", "scripts", "static", |
| 14 | + "TestPrograms", "tests", "themes", |
| 15 | +] |
| 16 | + |
| 17 | +[required] |
| 18 | +files = [ |
| 19 | + ".gitignore", ".gitmodules", ".repo-hygiene.toml", ".wflcfg", |
| 20 | + "AGENTS.md", "AI_POLICY.md", "CLAUDE.md", "CODE_OF_CONDUCT.md", |
| 21 | + "CONTRIBUTING.md", "GOVERNANCE.md", "LICENSE", "README.md", |
| 22 | + "REPOSITORY_HYGIENE.md", "SECURITY.md", "main.wfl", "testing.md", |
| 23 | + "docs/ARCHITECTURE.md", "docs/PROJECT-LAYOUT.md", "docs/THEMING.md", |
| 24 | + "scripts/check_repo_hygiene.py", "scripts/run_tests.py", |
| 25 | + "tests/tooling/test_repo_hygiene.py", "tests/tooling/test_run_tests.py", |
| 26 | + ".github/pull_request_template.md", ".github/workflows/governance.yml", |
| 27 | +] |
| 28 | +# These paths must remain Git gitlinks; their contents are upstream-owned. |
| 29 | +gitlinks = ["lib/scribe"] |
| 30 | + |
| 31 | +[forbidden] |
| 32 | +# Match path components / base names case-insensitively, at any depth. |
| 33 | +dirs = [ |
| 34 | + "__pycache__", ".pytest_cache", ".mypy_cache", ".ruff_cache", |
| 35 | + "node_modules", ".venv", "venv", "target", ".cache", |
| 36 | +] |
| 37 | +names = [".DS_Store", "Thumbs.db", "settings.local.json", "id_rsa", "id_ed25519"] |
| 38 | +patterns = [ |
| 39 | + "*.db", "*.db-*", "*.sqlite", "*.sqlite-*", "*.sqlite3", "*.sqlite3-*", |
| 40 | + "*.log", "*.pyc", "*.pyo", "*.orig", "*.rej", "*.tmp", "*.bak", |
| 41 | + "*_debug.txt", "*.ast.txt", "*.lex.txt", "*.exe", "*.dll", "*.msi", |
| 42 | + ".env", ".env.*", "*.key", "*.pem", "*.p12", "*.pfx", |
| 43 | + "credentials.json", "credentials.*.json", "secrets.json", "secrets.*.json", |
| 44 | +] |
| 45 | +# Mutable application state. Only the existing empty upload placeholder ships. |
| 46 | +paths = ["data", "static/uploads"] |
| 47 | +allowed-placeholders = ["static/uploads/.gitkeep"] |
| 48 | + |
| 49 | +[links] |
| 50 | +# Check local inline links/images and reference-link definitions in these files. |
| 51 | +# Fragments, external URLs, code fences, and paths within gitlinks are skipped. |
| 52 | +files = [ |
| 53 | + "README.md", "CLAUDE.md", "AGENTS.md", "GOVERNANCE.md", "CONTRIBUTING.md", |
| 54 | + "CODE_OF_CONDUCT.md", "AI_POLICY.md", "SECURITY.md", "REPOSITORY_HYGIENE.md", |
| 55 | + "testing.md", |
| 56 | +] |
0 commit comments