forked from isaacphi/mcp-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (31 loc) · 650 Bytes
/
justfile
File metadata and controls
38 lines (31 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Help
help:
just -l
# Build
build:
go build -o mcp-language-server
# Install locally
install:
go install
# Format code
fmt:
gofmt -w .
# Generate LSP types and methods
generate:
go run ./cmd/generate
# Run code audit checks
check:
gofmt -l .
test -z "$(gofmt -l .)"
go tool staticcheck ./...
go tool errcheck ./...
find . -path "./integrationtests/workspaces" -prune -o \
-path "./integrationtests/test-output" -prune -o \
-name "*.go" -print | xargs gopls check
go tool govulncheck ./...
# Run tests
test:
go test ./...
# Update snapshot tests
snapshot:
UPDATE_SNAPSHOTS=true go test ./integrationtests/...