pre-commit(go): use golangci-lint for most checks
[skip ci]
This commit is contained in:
parent
5e6a8f9001
commit
1f62d3dec6
@ -45,20 +45,13 @@ repos:
|
|||||||
- repo: https://github.com/dnephin/pre-commit-golang
|
- repo: https://github.com/dnephin/pre-commit-golang
|
||||||
rev: v0.5.0
|
rev: v0.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: go-fmt
|
|
||||||
- id: go-vet
|
- id: go-vet
|
||||||
- id: go-imports
|
- id: go-unit-tests
|
||||||
- id: go-cyclo
|
- id: go-cyclo
|
||||||
args: [-over=15]
|
args: [-over=15]
|
||||||
- id: golangci-lint
|
- id: golangci-lint
|
||||||
- id: go-unit-tests
|
|
||||||
- id: go-build
|
- id: go-build
|
||||||
- id: go-mod-tidy
|
- id: go-mod-tidy
|
||||||
- repo: https://github.com/tekwizely/pre-commit-golang
|
|
||||||
rev: v1.0.0-beta.5
|
|
||||||
hooks:
|
|
||||||
- id: go-revive-mod
|
|
||||||
- id: go-sec-mod
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: nix-build
|
- id: nix-build
|
||||||
|
Loading…
Reference in New Issue
Block a user