Add Zig language support - #17
Merged
Merged
Conversation
Adds Zig as the 17th supported language with: - 8 regex rules (ZIG-001 to ZIG-008): unsafe pointer casts, command injection, path traversal, error suppression, weak crypto - Taint catalog: 22 sources, 23 sinks, 11 sanitizers covering std.http, std.os, std.fs, std.process, std.net, std.json - tsflow language config with Zig tree-sitter node type extractors - 7 test fixtures (4 vulnerable, 3 safe) - Updated docs (CLAUDE.md, README.md, docs/perl.md) with new language counts Tree-sitter AST analyzer deferred pending grammar binding integration (tree-sitter-zig grammar exists but go-tree-sitter binding not yet added). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds docs/claude-md-snippet.md with a ready-to-copy section that projects can paste into their CLAUDE.md so Claude understands Batou findings and knows how to respond to blocks, hints, and suppressions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@ptrCast,@intToPtr,@alignCast,@bitCast), command injection, path traversal, error suppression (catch unreachable), weak cryptoTree-sitter AST analyzer (Layer 2) deferred — the
tree-sitter-ziggrammar exists with Go bindings but thego-tree-sitterbinding integration is a follow-up.Test plan
go build ./...passesgo test ./internal/rules/zig/ -v— 30 tests passmake teston CI🤖 Generated with Claude Code