pre-commit-hooks-golang/.pre-commit-hooks.yaml
Stanislav N. aka pztrn cb3db89b1c Remove GO111MODULE and update lint/test commands. (#1)
Reviewed-on: #1
Co-authored-by: Stanislav N. aka pztrn <pztrn@pztrn.name>
Co-committed-by: Stanislav N. aka pztrn <pztrn@pztrn.name>
2025-04-26 14:25:26 +05:00

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