pre-commit-hooks-golang/.pre-commit-hooks.yaml

17 lines
421 B
YAML

- id: go-test-cover
name: 'go-test-cover'
entry: 'go-test-cover.sh'
language: 'script'
description: 'Run go test in module mode with coverage report.'
pass_filenames: false
files: .*.go"
always_run: true
- id: golangci-lint
name: 'golangci-lint'
entry: 'golangci-lint.sh'
language: 'script'
description: 'Run golangci-lint in module mode.'
pass_filenames: false
files: .*.go"
always_run: true