Skip to content

Add settings to include or exclude types of code (tag support)#232

Merged
blopker merged 6 commits intomainfrom
feature/tags
Mar 20, 2026
Merged

Add settings to include or exclude types of code (tag support)#232
blopker merged 6 commits intomainfrom
feature/tags

Conversation

@blopker
Copy link
Owner

@blopker blopker commented Mar 20, 2026

No description provided.

blopker added 6 commits March 17, 2026 13:46
Rename all capture names in .scm query files to use a dot-separated
hierarchy (e.g., @identifier.function instead of @func_declaration)
so users can filter spell checking by tag via include_tags/exclude_tags
in codebook.toml. Add query tag reference README and document the
new config options in the main README.
Adds a test that checks every capture name across all language queries
matches the allowed tag taxonomy (comment, string, identifier, etc.).
This prevents ad-hoc tag names from being introduced.
Add include_tags/exclude_tags to ConfigSettings with prefix-based
matching. exclude_tags takes precedence over include_tags, matching
how ignore_paths takes precedence over include_paths.

The parser now extracts capture names from tree-sitter queries and
skips captures whose tags don't pass the filter. Text mode (no
tree-sitter) ignores tag filters since there are no captures.
@blopker blopker merged commit 47e74d4 into main Mar 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant