0.3.0-0-pre.1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# file: scripts/audit_project_workspace_rules.py
|
||||
# version: 5
|
||||
# version: 6
|
||||
|
||||
"""Audit mechanically verifiable games.sasedev workspace boundaries."""
|
||||
|
||||
@@ -92,6 +92,18 @@ def main() -> int:
|
||||
for java_path in sorted(root.rglob("*.java")):
|
||||
if not java_path.is_relative_to(root / "Android"):
|
||||
errors.append(f"GAME-ANDROID-001: Java source outside Android/: {java_path.relative_to(root).as_posix()}")
|
||||
|
||||
changelog_text = (root / "CHANGELOG.md").read_text(encoding="utf-8")
|
||||
stable_versions = set(re.findall(r"^## ([0-9]+\.[0-9]+\.[0-9]+)(?: \u2014.*)?$", changelog_text, re.MULTILINE))
|
||||
roadmap_text = (root / "ROADMAP.md").read_text(encoding="utf-8")
|
||||
roadmap_sections = re.split(r"(?=^## )", roadmap_text, flags=re.MULTILINE)
|
||||
for section in roadmap_sections:
|
||||
heading = re.match(r"^## ([0-9]+\.[0-9]+\.[0-9]+)(?: \u2014.*)?$", section.splitlines()[0] if section.splitlines() else "")
|
||||
if heading is None or heading.group(1) not in stable_versions:
|
||||
continue
|
||||
for line in section.splitlines()[1:]:
|
||||
if line.startswith("- ( )"):
|
||||
errors.append(f"DOC-RMAP-010: stable version {heading.group(1)} retains planned scope: {line}")
|
||||
if errors:
|
||||
for error in errors:
|
||||
print(error, file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user