Skip to content

Correct the Lint Snippets' Claim That the Hook's EOL Gate Is Diff-Scoped #3369

Closed

Description

@ptr727

The Lint-group comment in both VS Code task snippets says the commit hook runs both doc gates diff-scoped:

  • catalog/snippets/configs/vscode-tasks.json:127
  • catalog/snippets/configs/vscode-tasks-python.json:135

Pre-commit already runs the prose/EOL gates diff-scoped.

Only the prose gate is diff-scoped in the hook. The EOL entry runs repo_gate.py --check eol with no --diff, and that check covers every tracked file. catalog/snippets/pre-commit/README.md calls it "the whole-tree line-ending check", and GOVERNANCE.md describes the hook's EOL check as already whole-repo. The comment on the next line ("add the same two checks in whole-repo mode") inherits the error for Lint: EOL, which runs exactly what the hook runs.

A repository carrying the snippet repeats the false claim. ptr727/ESPHome-NonRoot caught it in its own local review while adopting the Lint group and scoped its local comment to the prose task.

Done means both snippets say only the prose gate is diff-scoped in the hook.

Activity

  1. added
    documentation
    on Oct 22, 2026
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions