Private
Public Access
0
0

feat(audit): flag hardcoded workspace and project-root paths in tests

This commit is contained in:
2026-06-09 17:01:14 -04:00
parent d2ff6ffcf9
commit 749120d239
2 changed files with 50 additions and 0 deletions
+2
View File
@@ -20,6 +20,8 @@ PATTERNS = [
re.compile(rf'open\(["\'](?:{"|".join(TOML_BASENAMES)})\.toml["\']'),
re.compile(rf'["\']\.{{1,2}}/(?:{"|".join(TOML_BASENAMES)})\.toml["\']'),
re.compile(rf'Path\(["\']\.\./(?:{"|".join(TOML_BASENAMES)})\.toml["\']'),
re.compile(r'Path\(["\']tests/artifacts/'),
re.compile(r'Path\(["\']C:[/\\]+projects'),
]
EXCLUDE_DIRS = {"artifacts", "logs", "__pycache__", "snapshots"}