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

17 lines
421 B
YAML
Raw Normal View History

2025-04-26 14:23:51 +05:00
- id: go-test-cover
name: 'go-test-cover'
2025-04-26 14:20:44 +05:00
entry: 'go-test-cover.sh'
2020-05-12 22:19:44 +05:00
language: 'script'
2025-04-26 14:20:44 +05:00
description: 'Run go test in module mode with coverage report.'
2020-05-12 22:19:44 +05:00
pass_filenames: false
2025-04-26 14:22:33 +05:00
files: .*.go"
2025-04-26 14:23:51 +05:00
always_run: true
- id: golangci-lint
name: 'golangci-lint'
2025-04-26 14:20:44 +05:00
entry: 'golangci-lint.sh'
2020-05-12 22:16:07 +05:00
language: 'script'
2025-04-26 14:20:44 +05:00
description: 'Run golangci-lint in module mode.'
pass_filenames: false
2025-04-26 14:22:33 +05:00
files: .*.go"
2025-04-26 14:23:51 +05:00
always_run: true