Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Satisfy lint for the new extraction recursion helpers
Martin Vogel8a5c992bd223
diff --git a/internal/cbm/sqlite_writer.c b/internal/cbm/sqlite_writer.cindex 052fd3f0f..c3148e5cb 100644--- a/internal/cbm/sqlite_writer.c+++ b/internal/cbm/sqlite_writer.c@@ -1917,7 +1917,6 @@ static int write_db_after_nodes(write_db_ctx_t *w, uint32_t nodes_root) {int node_count = w->node_count;CBMDumpEdge *edges = w->edges;int edge_count = w->edge_count;- const char *project = w->project;// Phase 1 (cont.): remaining data tables (edge + vector + token_vector records)CBM_PROF_START(t_data);@@ -2021,7 +2020,7 @@ static int write_db_after_nodes(write_db_ctx_t *w, uint32_t nodes_root) {// 1 row: project nameRecordBuilder r;rec_init(&r);- rec_add_text(&r, project);+ rec_add_text(&r, w->project);rec_add_int(&r, FIRST_ROWID); /* rowid */int plen = 0;uint8_t *payload = rec_finalize(&r, &plen);@@ -2205,10 +2204,9 @@ int cbm_writer_finalize(cbm_db_writer_t *w, const char *project, const char *roow->wc.token_vec_count = token_vec_count;write_db_ctx_t wc = w->wc; /* value copy survives free(w) */- FILE *fp = w->wc.fp;free(w);if (err != 0) {- (void)fclose(fp);+ (void)fclose(wc.fp); /* wc is a value copy, valid after free(w) */return err;}return write_db_after_nodes(&wc, nodes_root);diff --git a/src/foundation/recursion_whitelist.h b/src/foundation/recursion_whitelist.hindex b26e015fc..c3e2b5c8c 100644--- a/src/foundation/recursion_whitelist.h+++ b/src/foundation/recursion_whitelist.h@@ -18,6 +18,10 @@* R import scanner (bounded by source-file AST depth):* - r_collect_imports*+ * Extraction descendant search (bounded by AST depth):+ * - find_first_descendant_by_kind (Verilog/SystemVerilog name wrappers)+ * - find_first_descendant_of (Dart/Zig import URI/string nesting)+ ** To add a function: add it below AND add NOLINT(misc-no-recursion) on* the function definition line. The lint gate verifies both match.*/@@ -25,4 +29,5 @@"parse_or_expr", "parse_xor_expr", "parse_and_expr", "parse_not_expr", "parse_atom_expr", \"parse_post_where", "cbm_parse", "eval_expr", "glob_match", "glob_match_star", \"glob_match_doublestar", "glob_match_doublestar_slash", "glob_match_doublestar_any", \- "parse_bool_expr", "parse_bool_atom", "r_collect_imports"+ "parse_bool_expr", "parse_bool_atom", "r_collect_imports", \+ "find_first_descendant_by_kind", "find_first_descendant_of"