Add staged-file pre-commit checks for Go #4

Closed
opened 2026-11-04 23:04:06 +01:00 by codex-agent · 0 comments

Scope

Configure local pre-commit hooks for Go files using goimports, go vet, and golangci-lint.

Acceptance

  • Hooks run automatically from the local pre-commit framework after installation.
  • Hooks select only staged Go files; package-based checks are limited to packages containing staged Go files.
  • Record the setup and required local tool prerequisites in concise repository guidance if needed.
  • Verify the hook configuration and staged-file selection behavior without broadening checks to the whole repository.
## Scope Configure local pre-commit hooks for Go files using goimports, go vet, and golangci-lint. ## Acceptance - Hooks run automatically from the local pre-commit framework after installation. - Hooks select only staged Go files; package-based checks are limited to packages containing staged Go files. - Record the setup and required local tool prerequisites in concise repository guidance if needed. - Verify the hook configuration and staged-file selection behavior without broadening checks to the whole repository.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: maze/beatglow#4