https://github.com/pztrn/pre-commit-hooks-golang
Hand-crafted pre-commit hooks for pre-commit.com
https://github.com/pztrn/pre-commit-hooks-golang
Last synced: 2 months ago
JSON representation
Hand-crafted pre-commit hooks for pre-commit.com
- Host: GitHub
- URL: https://github.com/pztrn/pre-commit-hooks-golang
- Owner: pztrn
- License: mit
- Created: 2021-11-19T23:53:40.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-19T23:54:33.000Z (over 3 years ago)
- Last Synced: 2025-02-06T04:44:41.014Z (4 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pre-commit hooks for golang
This repository contains [pre-commit](https://pre-commit.com) hooks for modern Golang developers.
## Using
Add this to your ``.pre-commit-config.yaml``:
```yaml
repos:
- repo: https://sources.dev.pztrn.name/pztrn/pre-commit-hooks-golang
rev: master
hooks:
- id: golangci-lint-mod
...
```## Hooks list
* ``go-test-mod-cover`` - executes ``go test`` with ``-cover`` parameter.
* ``golangci-lint-mod`` - executes ``golangci-lint`` in module mode (``GO111MODULES=on``)