Reusable pre-commit hooks
Go-ified version of hook in Bahjat's project
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: go-err-check
Use kisielk/errcheck to check that you checked errors
Go-ified version of hook in Bahjat's project
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: gofumpt
Use mvdan/gofumpt to check your Go formatting
Go-ified version of hook in Bahjat's project
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: go-fmt-import
Use goimports to format your import statementstps://github.com/mvdan/gofumpt) to check your Go formatting
Go-ified version of hook in Bahjat's project
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: go-static-check
Use staticcheck to lint your Go code
Go-ified version of hook in Bahjat's project
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: go-vet
Use go vet to check your Go code
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: license-eye
Add SkyWalking-Eyes and check that the files have the correct headers implemented.
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: packer-fmt
Run Packer fmt command.
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: "" # Use the ref you want to point at
hooks:
- id: packer-validate
Run Packer validate command.