Skip to content

Commit bb38b6f

Browse files
committed
add pre commit hook for linter
1 parent 7511f2f commit bb38b6f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: .githooks/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
golangci-lint run --timeout 5m

Diff for: CONTRIBUTION.md

+7
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,10 @@ The only issue with this reload is that server is not aware of initialization, h
124124

125125
It does have an effect, though, that since clients typically would cache what tools/prompts/resources are available, adding new one would require actually asking for full restart.
126126

127+
## Git Hooks
128+
129+
Setup git hooks used in project by running:
130+
131+
```bash
132+
git config core.hooksPath .githooks
133+
```

0 commit comments

Comments
 (0)