You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decide Whether the VS Code Lint Tasks Should Run Through docker_lint.py #4064
The Lint group in catalog/snippets/configs/vscode-tasks-python.json runs each linter with docker run --rm --pull=always -v ${workspaceFolder}:/... <image>:latest. A downstream review raised that this mounts the live checkout read-write and runs an unpinned image with network access, where scripts/docker_lint.py resolves each image to a digest, mounts a read-only snapshot, and disables networking.
A carrying repository should not diverge from the reference on its own, so this is raised here. Whether the tasks should call docker_lint.py through hub_fetch_run.py, as Lint: Prose already does for the prose gate, is the snippet owner's call. The input is the maintainer's own checkout, so this is a consistency question rather than a trust-boundary one.
Question for the maintainer (backlog-burndown planner, away mode, round 5). This issue asks a question and carried no decision label, so the away run labels it and holds it. The same answer also settles the undecided half of #3536, which offers to either qualify the Lint group's "It mirrors the CI lint gate" comment or add shell linters to the group.
Should the Lint group in catalog/snippets/configs/vscode-tasks-python.json and catalog/snippets/configs/vscode-tasks.json run each container linter through scripts/docker_lint.py, reached by hub_fetch_run.py the way Lint: Prose already is?
Recommended: yes, and add shellcheck and shfmt tasks the same way.docker_lint.py already pins each image by digest, mounts a read-only snapshot, disables networking, and accepts --linter shellcheck and --linter shfmt. So the editor runs what CI runs, and "mirrors the CI lint gate" becomes true for shell repositories rather than being qualified away. PSScriptAnalyzer joins only where a carrier holds PowerShell.
Keep the raw docker run tasks, and qualify the comment to say the group covers the CI lint gate's language-agnostic checks. Shell and PowerShell linting stays in CI alone.
Keep the raw docker run tasks, and add raw shellcheck and shfmt tasks to match CI's shell checks, without docker_lint.py.
#3536's other points do not depend on this answer: the multi-directory Python shape, the Lint: EOL ordering, and the EOL and pre-commit wording.
Answered by the maintainer, 2026-11-15: option 1. The docker_lint.py half is already in place: both catalog/snippets/configs/vscode-tasks.json and vscode-tasks-python.json run their container linters through it. What remains is adding shellcheck and shfmt tasks the same way (--linter shellcheck, --linter shfmt), with PSScriptAnalyzer only where a carrier holds PowerShell. That also settles the undecided half of #3536. This issue stays open as the work.
Released (2026-11-24): PR #4395 merged to develop at c0ab721; branch and worktree cleaned up, so this claim holds no files. The issue closes on promotion.
Backlog burndown claim (away run 2026-11-24, round 1, group 6): branch burndown/vscode-lint-shell-tasks, issues #4064 and #3536.
Predicted files:
catalog/snippets/configs/vscode-tasks.json, the Lint group: shellcheck and shfmt tasks through scripts/docker_lint.py, the group comment, and the Lint: All order.
catalog/snippets/configs/vscode-tasks-python.json, the same Lint group changes, plus the multi-directory python-directories comment line.
tests/test_hub_fetch_run.py, LINT_TASKS and the lint-task tests, so the new tasks are pinned to the wrapper.
GOVERNANCE.md "Running the Linters Locally (Known-Working Invocations)", the "VS Code Lint tasks" bullet, only where adding the shell tasks makes it false.
Any other group needing one of these files waits for this branch to merge.
Activity
ptr727 commentedon Nov 13, 2026
Question for the maintainer (backlog-burndown planner, away mode, round 5). This issue asks a question and carried no
decisionlabel, so the away run labels it and holds it. The same answer also settles the undecided half of #3536, which offers to either qualify the Lint group's "It mirrors the CI lint gate" comment or add shell linters to the group.Should the Lint group in
catalog/snippets/configs/vscode-tasks-python.jsonandcatalog/snippets/configs/vscode-tasks.jsonrun each container linter throughscripts/docker_lint.py, reached byhub_fetch_run.pythe wayLint: Prosealready is?docker_lint.pyalready pins each image by digest, mounts a read-only snapshot, disables networking, and accepts--linter shellcheckand--linter shfmt. So the editor runs what CI runs, and "mirrors the CI lint gate" becomes true for shell repositories rather than being qualified away. PSScriptAnalyzer joins only where a carrier holds PowerShell.docker runtasks, and qualify the comment to say the group covers the CI lint gate's language-agnostic checks. Shell and PowerShell linting stays in CI alone.docker runtasks, and add raw shellcheck and shfmt tasks to match CI's shell checks, withoutdocker_lint.py.#3536's other points do not depend on this answer: the multi-directory Python shape, the
Lint: EOLordering, and the EOL and pre-commit wording.ptr727 commentedon Nov 15, 2026
Answered by the maintainer, 2026-11-15: option 1. The docker_lint.py half is already in place: both
catalog/snippets/configs/vscode-tasks.jsonandvscode-tasks-python.jsonrun their container linters through it. What remains is adding shellcheck and shfmt tasks the same way (--linter shellcheck,--linter shfmt), with PSScriptAnalyzer only where a carrier holds PowerShell. That also settles the undecided half of #3536. This issue stays open as the work.ptr727 commentedon Nov 24, 2026
Released (2026-11-24): PR #4395 merged to develop at c0ab721; branch and worktree cleaned up, so this claim holds no files. The issue closes on promotion.
Backlog burndown claim (away run 2026-11-24, round 1, group 6): branch
burndown/vscode-lint-shell-tasks, issues #4064 and #3536.Predicted files:
catalog/snippets/configs/vscode-tasks.json, the Lint group: shellcheck and shfmt tasks throughscripts/docker_lint.py, the group comment, and theLint: Allorder.catalog/snippets/configs/vscode-tasks-python.json, the same Lint group changes, plus the multi-directorypython-directoriescomment line.tests/test_hub_fetch_run.py,LINT_TASKSand the lint-task tests, so the new tasks are pinned to the wrapper.GOVERNANCE.md"Running the Linters Locally (Known-Working Invocations)", the "VS Code Lint tasks" bullet, only where adding the shell tasks makes it false.Any other group needing one of these files waits for this branch to merge.
Add ShellCheck and shfmt Lint Tasks to the VS Code Task Snippets (#4395)