mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 04:29:27 +00:00
feat(pre-push-safety-net): exclude vendor inputs and partition frontend coverage
This commit is contained in:
@@ -97,7 +97,13 @@ def enumerate_source_files(root: Path) -> list[Path]:
|
||||
patterns = _load_ignore_patterns(root)
|
||||
paths: list[Path] = []
|
||||
for path in root.rglob("*"):
|
||||
if not path.is_file() or _has_ignored_dir(root, path) or _is_ignored(root, path, patterns) or _is_vendored(root, path):
|
||||
if (
|
||||
path.is_symlink()
|
||||
or not path.is_file()
|
||||
or _has_ignored_dir(root, path)
|
||||
or _is_ignored(root, path, patterns)
|
||||
or _is_vendored(root, path)
|
||||
):
|
||||
continue
|
||||
if detect_language(path) != "unknown":
|
||||
paths.append(path)
|
||||
|
||||
Reference in New Issue
Block a user