Skip to content

Commit 9db738d

Browse files
committed
build: add staticcheck to prek
1 parent 09bdc42 commit 9db738d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ repos:
2727
language: system
2828
files: \.go$
2929
pass_filenames: false
30+
- id: go-staticcheck
31+
name: go staticcheck
32+
entry: bash -c 'cd neutrino_server && go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./...'
33+
language: system
34+
files: \.go$
35+
pass_filenames: false
3036
- id: go-mod-tidy
3137
name: go mod tidy
3238
entry: bash -c 'cd neutrino_server && go mod tidy'

0 commit comments

Comments
 (0)