fix(lint): stop the linters from reading gitignored build output

The workflow-reference lint walked every project file and markdownlint
globbed the whole tree, so a composer vendor tree turned both red with
findings from third-party packages nobody here maintains.
This commit is contained in:
kevinveenbirkenbach committed 2026-08-22 20:25:27 +02:00
1 parent 9b78933153
commit 8ff6b490b3
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -29,6 +29,7 @@
],
"ignores": [
"node_modules/**",
"vendor/**",
".cache/**",
".git/**",
"venv/**",
@@ -24,7 +24,7 @@ import unittest
from pathlib import Path
from utils.annotations.suppress import is_suppressed_in_head
from utils.cache.files import iter_project_files, read_text
from utils.cache.files import iter_non_ignored_files, read_text
from . import PROJECT_ROOT
@@ -42,7 +42,7 @@ def missing_references() -> list[str]:
"""Every `<file>:<line>: <workflow>` whose workflow is not on disk."""
known = {entry.name for entry in _WORKFLOW_DIR.iterdir() if entry.is_file()}
offenders: list[str] = []
for path_str in iter_project_files():
for path_str in iter_non_ignored_files():
path = Path(path_str)
if not _scanned(path):
continue