MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fl_score

Function fl_score

src/ui/atlas_flows.c:156–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static int fl_score(const flow_node_t *node) {
157 /* Tests are journeys into the code, not of it: a test function is never
158 * an interesting entry unless the indexer flagged it as a real one. */
159 if (!node->flagged_entry && node->file_path && cbm_is_test_file_path(node->file_path))
160 return 0;
161 int score = 0;
162 if (node->flagged_entry)
163 score += 4;
164 if (node->in_count == 0 && node->out_count > 0)
165 score += 2;
166 if (fl_entryish_name(node->name))
167 score += 1;
168 if (node->out_count > node->in_count)
169 score += 1;
170 return score;
171}
172
173typedef struct {
174 int32_t node;

Callers 1

fl_rebuild_lockedFunction · 0.85

Calls 2

cbm_is_test_file_pathFunction · 0.85
fl_entryish_nameFunction · 0.85

Tested by

no test coverage detected