Skip to content

Commit 8e134e4

Browse files
authored
Add staticcheck pre-commit hook (#1019)
Signed-off-by: kwanhur <huang_hua2012@163.com>
1 parent 60731f5 commit 8e134e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@
1414
#
1515
repos:
1616
- repo: git://github.com/dnephin/pre-commit-golang
17-
rev: v0.4.0
17+
rev: v0.5.0
1818
hooks:
1919
- id: go-fmt
2020
- id: go-vet
2121
- id: go-unit-tests
2222
- id: go-build
23+
24+
- repo: git://github.com/Bahjat/pre-commit-golang
25+
rev: c3086eea8af86847dbdff2e46b85a5fe3c9d9656
26+
hooks:
27+
- id: go-static-check

0 commit comments

Comments
 (0)