Skip to content

Decide Whether the VS Code Lint Tasks Should Run Through docker_lint.py #4064

Done

Description

@ptr727

Question

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.

Activity

  1. added
    gate
    decision
    on Nov 11, 2026
  2. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    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?

    1. 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.
    2. 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.
    3. 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.

  3. ptr727 commented on Nov 15, 2026

    @ptr727
    OwnerAuthor

    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.

  4. removed
    decision
    on Nov 15, 2026
  5. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions