Skip to content

Instantly share code, notes, and snippets.

@zackijack
Created January 5, 2024 08:20
Show Gist options
  • Save zackijack/fa8cc7314a4ac603cc006008f2387bee to your computer and use it in GitHub Desktop.
Save zackijack/fa8cc7314a4ac603cc006008f2387bee to your computer and use it in GitHub Desktop.
pre-commit configuration for Golang
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy
- id: go-vet
- id: go-fmt
- id: golangci-lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment