Created
January 5, 2024 08:20
-
-
Save zackijack/fa8cc7314a4ac603cc006008f2387bee to your computer and use it in GitHub Desktop.
pre-commit configuration for Golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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