docs: 校正文档分类与当前边界
bat-rust / Build and test Rust (push) Canceled after 0s
bat-rust / Build and test Go API (push) Canceled after 0s

This commit is contained in:
2026-09-04 19:58:07 +08:00
parent 34e2f0d907
commit d21c01a697
25 changed files with 727 additions and 985 deletions
+4 -16
View File
@@ -72,11 +72,7 @@ test-go-all: test-go-api test-go-ffi ## 全部 Go 测试
bench: ## 运行性能基准测试
@echo "$(BLUE)Running benchmarks...$(NC)"
cargo bench --workspace
@if [ -n "$$(go list ./... 2>/dev/null)" ]; then \
go test -bench=. -benchmem ./...; \
else \
echo "$(YELLOW)No Go packages yet, skipping Go benchmarks...$(NC)"; \
fi
go test -bench=. -benchmem ./...
official-smoke: ## 运行真实官方全量拉取 smoke(默认写入 /tmp 隔离目录)
@echo "$(BLUE)Running official full pull smoke...$(NC)"
@@ -98,11 +94,7 @@ check-rust: ## 检查 Rust 代码
check-go: ## 检查 Go 代码
@echo "$(BLUE)Checking Go code...$(NC)"
@if [ -n "$$(go list ./... 2>/dev/null)" ]; then \
go vet ./...; \
else \
echo "$(YELLOW)No Go packages yet, skipping...$(NC)"; \
fi
go vet ./...
check-docs: ## 检查权威状态文档与占位目录声明
@echo "$(BLUE)Checking documentation status claims...$(NC)"
@@ -116,17 +108,13 @@ fmt-rust: ## 格式化 Rust 代码
fmt-go: ## 格式化 Go 代码
@echo "$(BLUE)Formatting Go code...$(NC)"
@if [ -n "$$(go list ./... 2>/dev/null)" ]; then \
go fmt ./...; \
else \
echo "$(YELLOW)No Go packages yet, skipping...$(NC)"; \
fi
go fmt ./...
lint: lint-rust lint-go ## 运行所有 Linter
lint-rust: ## Rust Clippy 检查
@echo "$(BLUE)Running Clippy...$(NC)"
cargo clippy --workspace -- -D warnings
cargo clippy --workspace --all-targets -- -D warnings
lint-go: ## Go Linter 检查
@echo "$(BLUE)Running golangci-lint...$(NC)"