Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ test/serena-mcp-tests/results/
test/serena-mcp-tests/results-gateway/
test/serena-mcp-tests/**/__pycache__/
test/serena-mcp-tests/**/*.pyc

# WASM guard build artifacts
examples/guards/*/guard.wasm
*.wasm
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ build:
lint:
@echo "Running linters..."
@go mod tidy
@go vet ./...
@go vet $$(go list ./... | grep -v '/examples/guards/')
@echo "Running gofmt check..."
@test -z "$$(gofmt -l .)" || (echo "The following files are not formatted:"; gofmt -l .; exit 1)
@test -z "$$(gofmt -l $$(find . -name '*.go' -not -path './examples/guards/*'))" || (echo "The following files are not formatted:"; gofmt -l $$(find . -name '*.go' -not -path './examples/guards/*'); exit 1)
@echo "Running golangci-lint..."
@GOPATH=$$(go env GOPATH); \
if [ -f "$$GOPATH/bin/golangci-lint" ]; then \
$$GOPATH/bin/golangci-lint run --timeout=5m || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
$$GOPATH/bin/golangci-lint run --timeout=5m --skip-dirs examples/guards || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
elif command -v golangci-lint >/dev/null 2>&1; then \
golangci-lint run --timeout=5m || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
golangci-lint run --timeout=5m --skip-dirs examples/guards || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
else \
echo "⚠ Warning: golangci-lint not found. Run 'make install' to install it."; \
echo " Skipping golangci-lint checks..."; \
Expand Down
Loading