An incremental parsing system for programming tools
This report summarizes scanner evidence for tree-sitter/tree-sitter, a Rust project with 27,341 GitHub stars. SynthScan examined 120,387 lines of code across 382 source files, recording 175 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 164 finding(s).
Are imports declared and package/API names verified? 8 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 175 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 175 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/highlight/src/c_lib.rs | 61 | attribute_strings, | COMMENT |
| LOW | crates/highlight/src/c_lib.rs | 161 | /// | COMMENT |
| LOW | crates/highlight/src/c_lib.rs | 181 | /// | COMMENT |
| LOW | crates/highlight/src/c_lib.rs | 201 | #[unsafe(no_mangle)] | COMMENT |
| LOW | crates/highlight/src/highlight.rs | 341 | /// # Parameters | COMMENT |
| LOW | crates/language/wasm/include/inttypes.h | 1 | #ifndef TREE_SITTER_WASM_INTTYPES_H_ | COMMENT |
| LOW | crates/language/wasm/include/endian.h | 1 | #ifndef TREE_SITTER_WASM_ENDIAN_H_ | COMMENT |
| LOW | crates/language/wasm/include/assert.h | 1 | #ifndef TREE_SITTER_WASM_ASSERT_H_ | COMMENT |
| LOW | crates/language/wasm/include/stdint.h | 21 | COMMENT | |
| LOW | crates/language/wasm/include/string.h | 1 | #ifndef TREE_SITTER_WASM_STRING_H_ | COMMENT |
| LOW | crates/language/src/language.rs | 1 | #![no_std] | COMMENT |
| LOW | crates/cli/src/test.rs | 181 | pub parse_results: TestResultHierarchy, | COMMENT |
| LOW | crates/cli/src/test.rs | 201 | COMMENT | |
| LOW | crates/cli/src/main.rs | 81 | #[derive(Args)] | COMMENT |
| LOW | crates/cli/src/main.rs | 121 | #[arg(long, short = '0')] | COMMENT |
| LOW | crates/cli/src/main.rs | 161 | default_value = "node" | COMMENT |
| LOW | crates/cli/src/main.rs | 181 | pub output: Option<PathBuf>, | COMMENT |
| LOW | crates/cli/src/main.rs | 201 | #[arg(long = "paths")] | COMMENT |
| LOW | crates/cli/src/main.rs | 221 | #[expect( | COMMENT |
| LOW | crates/cli/src/main.rs | 241 | /// Output the parse data in a pretty-printed CST format | COMMENT |
| LOW | crates/cli/src/main.rs | 261 | /// multiple times | COMMENT |
| LOW | crates/cli/src/main.rs | 301 | #[derive(Args)] | COMMENT |
| LOW | crates/cli/src/main.rs | 321 | #[arg(long, requires = "lib_path")] | COMMENT |
| LOW | crates/cli/src/main.rs | 341 | /// The path to an alternative config.json file | COMMENT |
| LOW | crates/cli/src/main.rs | 421 | /// Only fuzz corpus test cases whose name matches the given regex | COMMENT |
| LOW | crates/cli/src/main.rs | 441 | clippy::struct_field_names, | COMMENT |
| LOW | crates/cli/src/main.rs | 461 | /// Suppress main output | COMMENT |
| LOW | crates/cli/src/main.rs | 481 | /// contained within the provided row range will be returned. | COMMENT |
| LOW | crates/cli/src/main.rs | 501 | #[arg(short, long)] | COMMENT |
| LOW | crates/cli/src/main.rs | 521 | #[arg(long)] | COMMENT |
| LOW | crates/cli/src/main.rs | 541 | /// The source file(s) to use | COMMENT |
| LOW | crates/cli/src/main.rs | 561 | COMMENT | |
| LOW | crates/cli/src/main.rs | 581 | pub grammar_path: Option<PathBuf>, | COMMENT |
| LOW | crates/cli/src/main.rs | 601 | #[arg(long)] | COMMENT |
| LOW | crates/cli/src/tests/query_test.rs | 2421 | .unwrap(); | COMMENT |
| LOW | crates/cli/src/tests/query_test.rs | 4121 | assert_eq!(captures.len(), 2 * count); | COMMENT |
| LOW | crates/cli/src/tests/query_test.rs | 5121 | // Row { | COMMENT |
| LOW | crates/cli/src/templates/lib.rs | 1 | //! This crate provides TITLE_PARSER_NAME language support for the [tree-sitter] parsing library. | COMMENT |
| LOW | crates/tags/src/c_lib.rs | 81 | /// Add a language to a [`TSTagger`]. | COMMENT |
| LOW | crates/tags/src/c_lib.rs | 241 | drop(Box::from_raw(this)); | COMMENT |
| LOW | crates/tags/src/c_lib.rs | 261 | /// # Safety | COMMENT |
| LOW | crates/tags/src/c_lib.rs | 281 | #[unsafe(no_mangle)] | COMMENT |
| LOW | crates/tags/src/c_lib.rs | 301 | /// `this` must be non-null and a valid pointer to a [`TSTagsBuffer`] instance created by | COMMENT |
| LOW | crates/loader/src/loader.rs | 1161 | let mut lock_path = etcetera::choose_base_strategy()?.cache_dir(); | COMMENT |
| LOW | crates/generate/src/render.rs | 1961 | COMMENT | |
| LOW | crates/generate/src/generate.rs | 81 | #[derive(Debug, Error, Serialize, Deserialize, PartialEq, Eq)] | COMMENT |
| LOW | crates/generate/src/node_types.rs | 181 | /// 1. `child_types` - The types of visible children that can appear within `N`. | COMMENT |
| LOW | crates/generate/src/tables.rs | 161 | offset: u32, | COMMENT |
| LOW | crates/generate/src/templates/array.h | 1 | #ifndef TREE_SITTER_ARRAY_H_ | COMMENT |
| LOW | crates/generate/src/templates/array.h | 41 | (assert((uint32_t)(_index) < (self)->size), &(self)->contents[_index]) | COMMENT |
| LOW | crates/generate/src/templates/array.h | 161 | /// `needle` should be inserted in order to preserve the sorting, and `exists` | COMMENT |
| LOW | crates/generate/src/templates/array.h | 181 | COMMENT | |
| LOW | crates/generate/src/templates/array.h | 321 | COMMENT | |
| LOW | crates/generate/src/templates/alloc.h | 21 | #define ts_malloc ts_current_malloc | COMMENT |
| LOW | crates/generate/src/templates/alloc.h | 41 | #ifndef ts_realloc | COMMENT |
| LOW | crates/generate/src/build_tables/item_set_builder.rs | 141 | /// Items are ordered by `step_index` first, so the items at their first step come before | COMMENT |
| LOW | crates/generate/src/build_tables/item_set_builder.rs | 381 | // each of that symbol's productions. These productions might themselves begin | COMMENT |
| LOW | crates/generate/src/build_tables/item.rs | 261 | /// | COMMENT |
| LOW | crates/generate/src/build_tables/build_parse_table.rs | 61 | /// symbols in progress along the path to that state, and their parents: the non-auxiliary | COMMENT |
| LOW | crates/generate/src/prepare_grammar/pattern.rs | 1 | //! Parsing of token patterns. | COMMENT |
| 101 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | lib/binding_web/test/node.test.ts | 85 | elif two: | CODE |
| HIGH⚡ | lib/binding_web/test/node.test.ts | 87 | elif three: | CODE |
| HIGH⚡ | lib/binding_web/test/node.test.ts | 89 | elif four: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/cli/src/templates/__init__.py | 3 | CODE | |
| LOW | lib/lldb_pretty_printers/tree_sitter_types.py | 5 | CODE | |
| LOW | lib/lldb_pretty_printers/tree_sitter_types.py | 6 | CODE | |
| LOW | lib/lldb_pretty_printers/tree_sitter_types.py | 7 | CODE | |
| LOW | lib/lldb_pretty_printers/tree_sitter_types.py | 7 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/cli/src/templates/test_binding.py | 11 | except Exception: | CODE |
| MEDIUM | crates/cli/src/templates/test_binding.py | 8 | def test_can_load_grammar(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/lldb_pretty_printers/ts_tree.py | 53 | CODE | |
| LOW | lib/lldb_pretty_printers/ts_tree.py | 69 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/cli/src/templates/__init__.py | 32 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/binding_web/src/marshal.ts | 172 | export function unmarshalLanguageMetadata(address: number): LanguageMetadata { | CODE |