Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

feat(core): add Cargo benches/ to EXACT_DIR_NAMES

thejesh23bbe76c5253b6
diff --git a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
index 0437ecce..1279a060 100644
--- a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
+++ b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
@@ -162,6 +162,12 @@ describe("generateStarterIgnoreFile", () => {
const content = generateStarterIgnoreFile(testDir);
expect(content).toContain("# bench/");
});
+
+ it("suggests benches/ directories (Cargo convention)", () => {
+ mkdirSync(join(testDir, "benches"), { recursive: true });
+ const content = generateStarterIgnoreFile(testDir);
+ expect(content).toContain("# benches/");
+ });
});
describe("language-grouped test file patterns", () => {
diff --git a/understand-anything-plugin/packages/core/src/ignore-generator.ts b/understand-anything-plugin/packages/core/src/ignore-generator.ts
index cf90a3b4..e05363fa 100644
--- a/understand-anything-plugin/packages/core/src/ignore-generator.ts
+++ b/understand-anything-plugin/packages/core/src/ignore-generator.ts
@@ -34,6 +34,7 @@ const EXACT_DIR_NAMES = [
"bench",
"benchmark",
"benchmarks",
+ "benches",
];
// Directory-name suffixes matched case-insensitively via String.endsWith.