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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Scope
Configure local pre-commit hooks for Go files using goimports, go vet, and golangci-lint.
Acceptance