From 8ff6b490b38cc5ea9f9efd2ac8768456620df403 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 22 Aug 2026 20:25:27 +0200 Subject: [PATCH] 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. --- .markdownlint-cli2.jsonc | 1 + tests/lint/repository/test_workflow_references.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index e3874c93b5..06f5549299 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -29,6 +29,7 @@ ], "ignores": [ "node_modules/**", + "vendor/**", ".cache/**", ".git/**", "venv/**", diff --git a/tests/lint/repository/test_workflow_references.py b/tests/lint/repository/test_workflow_references.py index 50e1f6b9bc..fcb8156f37 100644 --- a/tests/lint/repository/test_workflow_references.py +++ b/tests/lint/repository/test_workflow_references.py @@ -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 `:: ` 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