Repository Analysis

abhigyanpatwari/GitNexus

GitNexus: The Zero-Server Code Intelligence Engine - GitNexus is a client-side knowledge graph creator that runs entirely in your browser. Drop in a GitHub repo or ZIP file, and get an interactive knowledge graph wit a built in Graph RAG Agent. Perfect for code exploration

11.8 Low AI signal View on GitHub
11.8
Adjusted Score
11.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
40,785
Stars
TypeScript
Language
376,497
Lines of Code
1332
Files
1943
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 4HIGH 48MEDIUM 1076LOW 815

Pattern Findings

1943 matches across 17 categories. Click a row to expand file-level details.

Decorative Section Separators1065 hits · 3257 pts
SeverityFileLineSnippet
MEDIUMgitnexus-shared/src/index.ts31// ─── Scope-based resolution — RFC #909 (Ring 1 #910) ────────────────────────
MEDIUMgitnexus-shared/src/index.ts31// ─── Scope-based resolution — RFC #909 (Ring 1 #910) ────────────────────────
MEDIUMgitnexus-shared/src/integrations/circuit-breaker.ts250// ─── Per-process registry ────────────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/resolve-type-ref.ts45// ─── Public contracts ───────────────────────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/resolve-type-ref.ts58// ─── Strict policy constants ────────────────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/resolve-type-ref.ts98// ─── Main entry point ──────────────────────────────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/module-scope-index.ts58// ─── Internal ───────────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts28// ─── §2.1 Type aliases ──────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts45// ─── Range + Capture (parser-agnostic) ──────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts78// ─── Hook input/output types (RFC §5.2) ─────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts277// ─── §2.4 ImportEdge ────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts312// ─── §2.3 BindingRef ────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts329// ─── §2.5 TypeRef ───────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts357// ─── §2.2 Scope ─────────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts387// ─── §2.6 Resolution + ResolutionEvidence ───────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts428// ─── §2.7 Reference + ReferenceIndex ────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/types.ts456// ─── §4.1 LookupParams ──────────────────────────────────────────────────────
MEDIUM…s-shared/src/scope-resolution/method-dispatch-index.ts33// ─── Public contracts ───────────────────────────────────────────────────────
MEDIUM…s-shared/src/scope-resolution/method-dispatch-index.ts112// ─── Builder ────────────────────────────────────────────────────────────────
MEDIUM…s-shared/src/scope-resolution/method-dispatch-index.ts164// ─── Internal ───────────────────────────────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts19 // ─── Where-found signals (visibility) ─────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts31 // ─── Scope-chain deduction (per-hop) ──────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts35 // ─── Receiver-type-binding signal (decays by MRO depth) ───────────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts44 // ─── Corroborating signals ────────────────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts51 // ─── Arity compatibility (from `provider.arityCompatibility`) ─────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts60 // ─── Global fallback (only when nothing lexically visible) ────────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts66 // ─── Degraded signals ─────────────────────────────────────────────────────
MEDIUM…tnexus-shared/src/scope-resolution/evidence-weights.ts70 // ─── Unresolved-import cap (multiplicative, applied per-signal) ───────────
MEDIUMgitnexus-shared/src/scope-resolution/position-index.ts87// ─── Internals ──────────────────────────────────────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts37// ─── Public contracts ───────────────────────────────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts168// ─── Entry point ───────────────────────────────────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts314// ─── Internal: edge drafting (phase 0) ──────────────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts430// ─── Internal: per-edge finalization (phase 3) ─────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts511// ─── Internal: re-export closure (phase 2.5) ───────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts821// ─── Internal: wildcard expansion (phase 4) ────────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts863// ─── Internal: bindings materialization (phase 5) ───────────────────────────
MEDIUM…exus-shared/src/scope-resolution/finalize-algorithm.ts929// ─── Internal: Tarjan SCC ──────────────────────────────────────────────────
MEDIUM…us-shared/src/scope-resolution/qualified-name-index.ts75// ─── Internal ───────────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/def-index.ts47// ─── Internal ───────────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/scope-tree.ts31// ─── Public contract ────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/scope-tree.ts50// ─── Build errors ───────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/scope-tree.ts73// ─── Builder ───────────────────────────────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/scope-tree.ts86 // ── Pass 1: collect by id + duplicate check ───────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/scope-tree.ts97 // ── Pass 2: validate parent pointers + build children buckets ─────────
MEDIUMgitnexus-shared/src/scope-resolution/scope-tree.ts137 // ── Pass 3: sibling-overlap check ─────────────────────────────────────
MEDIUMgitnexus-shared/src/scope-resolution/scope-tree.ts165// ─── Internals ──────────────────────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts29 // ── Where-found ────────────────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts37 // ── Type-binding path ──────────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts41 // ── Corroborators ──────────────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts47 // ── Arity ──────────────────────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts50 // ── Dynamic-unresolved passthrough ─────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts66 // ── Where-found visibility ─────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts93 // ── Type-binding / MRO path ────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts102 // ── Owner match (explanatory for debug) ────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts116 // ── Arity ──────────────────────────────────────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts131 // ── Dynamic-unresolved (degraded signal) ───────────────────────────────
MEDIUM…xus-shared/src/scope-resolution/registries/evidence.ts154// ─── Internal ───────────────────────────────────────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/registries/context.ts24// ─── Provider hooks consumed by the registries ─────────────────────────────
MEDIUM…exus-shared/src/scope-resolution/registries/context.ts116// ─── Top-level context threaded through every lookup ───────────────────────
MEDIUM…exus-shared/src/scope-resolution/registries/context.ts132// ─── Per-kind default `acceptedKinds` sets ─────────────────────────────────
1005 more matches not shown…
Hyper-Verbose Identifiers398 hits · 398 pts
SeverityFileLineSnippet
LOW…s-shared/src/scope-resolution/registries/tie-breaks.ts46export function compareByConfidenceWithTiebreaks(
LOW…-shared/src/scope-resolution/registries/lookup-core.ts377function seedFromOwnerScopedContributor(
LOWgitnexus/test/unit/skip-git-cli.test.ts196 function expectCoolioRegistryEntry() {
LOWgitnexus/test/unit/registry-primary-flag.test.ts23function clearAllRegistryPrimaryVars(): void {
LOWgitnexus/test/unit/eval-server-bind-restriction.test.ts11function isEvalServerBindRestriction(stderr: string): boolean {
LOWgitnexus/test/unit/receiver-extraction.test.ts52function extractExpressRouteReceivers(parser: Parser, code: string) {
LOWgitnexus/test/unit/cli-index-help.test.ts75function extractRegisteredHelpDescriptions(): string[] {
LOWgitnexus/test/unit/group/http-route-extractor.test.ts1397def unrelated_scope_collision():
LOWgitnexus/test/unit/group/http-route-extractor.test.ts1401def module_scope_shadow_collision():
LOWgitnexus/test/unit/call-routing/ruby.test.ts54function makeRequireCallNodeNoContent(): MockNode {
LOWgitnexus/test/integration/cli-e2e.test.ts178function isEvalServerBindRestriction(stderr: string): boolean {
LOWgitnexus/test/integration/cli-e2e.test.ts202function runEvalServerHostFlagTest(
LOWgitnexus/test/integration/resolvers/helpers.ts402export function isLegacyResolverParityRun(
LOWgitnexus/test/integration/resolvers/helpers.ts410export function isLegacyResolverParityExpectedFailure(
LOWgitnexus/src/core/ingestion/call-processor.ts236export function buildImportedRawReturnTypes(
LOWgitnexus/src/core/ingestion/call-processor.ts299export function buildExportedTypeMapFromGraph(
LOWgitnexus/src/core/ingestion/call-processor.ts336export function seedCrossFileReceiverTypes(
LOWgitnexus/src/core/ingestion/call-processor.ts732function findInterfaceDispatchTargets(
LOWgitnexus/src/core/ingestion/import-target-adapter.ts68export function buildImportTargetWorkspace(
LOWgitnexus/src/core/ingestion/import-target-adapter.ts92export function resolveImportTargetAcrossLanguages(
LOWgitnexus/src/core/ingestion/import-processor.ts72export function buildImportResolutionContext(allPaths: string[]): ImportResolutionContext {
LOWgitnexus/src/core/ingestion/csharp-namespace-gate.ts67export function csharpSuffixFallbackAllowed(
LOWgitnexus/src/core/ingestion/csharp-namespace-gate.ts96export function importAlignsWithDeclaredNamespaces(
LOWgitnexus/src/core/ingestion/language-config.ts208function getCsharpStructureScannerFactory(): Promise<() => CsharpStructureLineScanner> {
LOWgitnexus/src/core/ingestion/language-config.ts405async function collectDeclaredNamespaces(
LOWgitnexus/src/core/ingestion/heritage-processor.ts402export async function extractExtractedHeritageFromFiles(
LOWgitnexus/src/core/ingestion/parsing-processor.ts333function seqFindEnclosingOwnerNode(
LOWgitnexus/src/core/ingestion/mro-processor.ts409function emitMethodImplementsEdges(
LOWgitnexus/src/core/ingestion/scope-extractor.ts544function buildDefFromDeclarationMatch(
LOWgitnexus/src/core/ingestion/scope-extractor.ts622function parseJsonParameterTypeClassesCapture(
LOWgitnexus/src/core/ingestion/scope-extractor.ts668function parseJsonStringArrayCapture(
LOWgitnexus/src/core/ingestion/vue-sfc-extractor.ts128export function extractTemplateComponents(vueContent: string): string[] {
LOWgitnexus/src/core/ingestion/type-extractors/swift.ts44function swiftNavigationSuffixName(node: SyntaxNode | null): string | undefined {
LOWgitnexus/src/core/ingestion/type-extractors/swift.ts478function extractSwiftElementTypeFromTypeNode(typeNode: SyntaxNode): string | undefined {
LOWgitnexus/src/core/ingestion/type-extractors/shared.ts163export function resolveIterableElementType(
LOWgitnexus/src/core/ingestion/type-extractors/shared.ts603export function extractElementTypeFromString(
LOWgitnexus/src/core/ingestion/type-extractors/dart.ts284function extractDartElementTypeFromTypeNode(typeNode: SyntaxNode): string | undefined {
LOW…s/src/core/ingestion/class-extractors/configs/c-cpp.ts10function shouldSkipCppTemplateDuplicateCapture(
LOW…s/src/core/ingestion/class-extractors/configs/c-cpp.ts26function extractCppTemplateArgumentsWithFallback(
LOW…us/src/core/ingestion/call-extractors/configs/c-cpp.ts18function extractCppOperatorCallSite(callNode: SyntaxNode) {
LOW…us/src/core/ingestion/call-extractors/configs/c-cpp.ts50function isPrimitiveOnlyBinaryOperatorCall(callNode: SyntaxNode): boolean {
LOW…us/src/core/ingestion/call-extractors/configs/c-cpp.ts61function inferCppOperatorOperandType(node: SyntaxNode): string {
LOW…us/src/core/ingestion/call-extractors/configs/c-cpp.ts102function lookupCppFunctionParameterType(scope: SyntaxNode, varName: string): string {
LOW…us/src/core/ingestion/call-extractors/configs/c-cpp.ts132function findFirstDescendantOfType(node: SyntaxNode, type: string): SyntaxNode | null {
LOW…us/src/core/ingestion/call-extractors/configs/c-cpp.ts141function extractDeclaratorLeafName(node: SyntaxNode): string {
LOW…exus/src/core/ingestion/route-extractors/middleware.ts90export function extractNextjsMiddlewareConfig(content: string): NextjsMiddlewareConfig | undefined {
LOW…exus/src/core/ingestion/route-extractors/middleware.ts184export function compiledMatcherMatchesRoute(cm: CompiledMatcher, routeURL: string): boolean {
LOW…exus/src/core/ingestion/route-extractors/middleware.ts195export function middlewareMatcherMatchesRoute(matcher: string, routeURL: string): boolean {
LOW…/ingestion/route-extractors/fastapi-router-bindings.ts173export function extractFastAPIRouterBindings(
LOWgitnexus/src/core/ingestion/utils/ruby-self-call.ts76export function maybeRewriteRubyBareCallToSelf(
LOWgitnexus/src/core/ingestion/utils/ast-helpers.ts175export function findAncestorBeforeBoundary(
LOWgitnexus/src/core/ingestion/import-resolvers/rust.ts12export function resolveRustImportInternal(
LOWgitnexus/src/core/ingestion/import-resolvers/python.ts25export function resolvePythonImportInternal(
LOWgitnexus/src/core/ingestion/import-resolvers/csharp.ts21export function resolveCSharpImportInternal(
LOWgitnexus/src/core/ingestion/import-resolvers/csharp.ts109export function resolveCSharpNamespaceDir(
LOWgitnexus/src/core/ingestion/import-resolvers/ruby.ts17export function resolveRubyImportInternal(
LOW…us/src/core/ingestion/method-extractors/configs/jvm.ts19function extractReturnTypeFromField(node: SyntaxNode): string | undefined {
LOW…src/core/ingestion/method-extractors/configs/csharp.ts49function extractParametersFromList(paramList: SyntaxNode): ParameterInfo[] {
LOWgitnexus/src/core/ingestion/languages/c-cpp.ts493function extractCppTemplateConstraintsForProvider(definitionNode: SyntaxNode): unknown {
LOWgitnexus/src/core/ingestion/languages/php.ts152function extractPhpPropertyDescription(propName: string, propDeclNode: SyntaxNode): string | null {
338 more matches not shown…
Over-Commented Block278 hits · 266 pts
SeverityFileLineSnippet
LOWgitnexus-shared/src/integrations/resilient-fetch.ts181 const random = opts.retry?.random ?? Math.random;
LOW…exus-shared/src/scope-resolution/finalize-algorithm.ts761 // The single-def case is unchanged: when only one def has the name,
LOWdeploy/kubernetes/cluster-image-policy.yaml1# Sigstore policy-controller ClusterImagePolicy for GitNexus container images.
LOWdeploy/kubernetes/cluster-image-policy.yaml21# kubectl label namespace <your-ns> policy.sigstore.dev/include=true
LOWdeploy/kubernetes/cluster-image-policy.yaml41 # cover every `gitnexus:<tag>`, `gitnexus@sha256:...`, `gitnexus-web:<tag>`,
LOWdeploy/kubernetes/cluster-image-policy.yaml61 url: https://fulcio.sigstore.dev
LOWgitnexus/test/unit/ignore-service.test.ts241// A `!__tests__/` line in `.gitnexusignore` must re-enable indexing of
LOWgitnexus/test/unit/ignore-service.test.ts341 expect(filter.childrenIgnored(mkPath('my-dir'))).toBe(true);
LOWgitnexus/test/unit/call-attribution-issue-1166.test.ts541 // Array#some / Array#every — where `x` is a *value* (the result of the
LOWgitnexus/test/unit/call-attribution-issue-1166.test.ts561 expect(findCall(sites, 'predicate')?.attributedTo).toBe('found');
LOWgitnexus/test/unit/ai-context.test.ts621 expect(result).toContain('Custom CRLF');
LOWgitnexus/test/unit/symbol-table.test.ts3161 // R7 — Swift extension dedup `filePath.length` heuristic guard:
LOWgitnexus/test/unit/symbol-table.test.ts3201
LOWgitnexus/test/unit/binding-accumulator.test.ts201 });
LOWgitnexus/test/unit/rate-limit.test.ts201// Production-wiring assertions — proves each of the 4 protected routes in
LOWgitnexus/test/unit/incremental-orchestration.test.ts161 await repo.cleanup();
LOWgitnexus/test/unit/incremental-subgraph-extract.test.ts101 // from D. File A is unchanged byte-wise but its CALLS to foo() now
LOWgitnexus/test/unit/calltool-dispatch.test.ts461 // In production, `WHERE n.filePath CONTAINS $filePath` would pre-filter
LOWgitnexus/test/unit/repo-manager.test.ts141 });
LOWgitnexus/test/unit/repo-manager.test.ts761// ─── canonicalizePath (#1003 review — @evander-wang / @magyargergo) ──
LOWgitnexus/test/unit/repo-manager.test.ts1021
LOWgitnexus/test/unit/repo-manager.test.ts1041
LOWgitnexus/test/unit/cobol-preprocessor.test.ts1import { describe, it, expect } from 'vitest';
LOWgitnexus/test/unit/worker-pool-resilience.test.ts61 workerInstances.push(this);
LOWgitnexus/test/unit/call-processor.test.ts2401 //
LOWgitnexus/test/unit/call-processor.test.ts2681 // Module alias narrows to auth_mod.py. Without it the dispatcher would
LOWgitnexus/test/unit/type-env.test.ts5801 });
LOWgitnexus/test/unit/embedding-pipeline.test.ts161// ────────────────────────────────────────────────────────────────────────────
LOWgitnexus/test/unit/mro-processor.test.ts1761 expect(edge.sourceId).toBe(alphaProcess);
LOWgitnexus/test/unit/mro-processor.test.ts1781 it('class methods win regardless of the order EXTENDS/IMPLEMENTS edges were added', () => {
LOWgitnexus/test/unit/logger.test.ts241 // The contract: shutdown handlers can call this unconditionally before
LOWgitnexus/test/unit/group/http-route-extractor.test.ts221
LOWgitnexus/test/unit/group/http-route-extractor.test.ts521 // (fwcd/tree-sitter-kotlin) produces a different AST shape than
LOWgitnexus/test/unit/group/http-route-extractor.test.ts2221 async () => {
LOWgitnexus/test/unit/group/http-route-extractor.test.ts2341
LOWgitnexus/test/unit/group/grpc-extractor.test.ts381
LOWgitnexus/test/unit/group/grpc-extractor.test.ts741 });
LOWgitnexus/test/unit/group/grpc-extractor.test.ts761 // proto package);
LOWgitnexus/test/unit/group/grpc-extractor.test.ts841 });
LOW…exus/test/unit/import-resolution/preprocessing.test.ts161// test/integration/resolvers/rust.test.ts covers:
LOW…/test/unit/scope-resolution/finalize-algorithm.test.ts341 });
LOW…st/unit/scope-resolution/method-dispatch-index.test.ts141 // should not re-invoke `computeMro` for existing MRO, and should not
LOW…solution/typescript/typescript-captures-anchor.test.ts61 const dyn = matches.filter(
LOW…test/unit/scope-resolution/csharp/csharp-hooks.test.ts221 // C# namespace-siblings hook (per ScopeResolver I8 + the
LOWgitnexus/test/integration/cli-e2e.test.ts21const testDir = path.dirname(fileURLToPath(import.meta.url));
LOWgitnexus/test/integration/cli-e2e.test.ts441 expect(`${second.stdout}${second.stderr}`).toMatch(/Analysis did not finalize/i);
LOWgitnexus/test/integration/cli-e2e.test.ts461 // silently triggered by unrelated pipeline signals
LOWgitnexus/test/integration/cli-e2e.test.ts601
LOWgitnexus/test/integration/cli-e2e.test.ts641 const afterIndex = JSON.parse(fs.readFileSync(registryPath, 'utf-8'));
LOWgitnexus/test/integration/cli-e2e.test.ts761 expect(after).toHaveLength(2);
LOWgitnexus/test/integration/cli-e2e.test.ts901 //
LOWgitnexus/test/integration/worker-pool.test.ts421 // replacement worker, Node's `online` event fires BEFORE the
LOWgitnexus/test/integration/worker-pool.test.ts961 //
LOWgitnexus/test/integration/cross-file-binding.test.ts81// Regression guard for SCC-ordered propagation (PR #1050) — without
LOWgitnexus/test/integration/cross-file-binding.test.ts281});
LOWgitnexus/test/integration/cross-file-binding.test.ts621 });
LOW…t/integration/resolvers/typescript-jsx-as-call.test.ts61 // post-conditions verify the interception:
LOW…t/integration/resolvers/typescript-jsx-as-call.test.ts101 // producing a redundant ACCESSES edge alongside the CALLS edge.
LOWgitnexus/test/integration/resolvers/helpers.ts41 'resolves Module1App.run calls to module1 UserService, not module2',
LOWgitnexus/test/integration/resolvers/helpers.ts61 // routes through the scope-resolver's bindingAugmentations channel
218 more matches not shown…
Cross-Language Confusion (JS/TS)27 hits · 142 pts
SeverityFileLineSnippet
HIGHgitnexus/test/unit/method-extraction.test.ts1461 print(format: string): void;
HIGHgitnexus/test/unit/method-extraction.test.ts3495 print(msg);
HIGHgitnexus/test/unit/method-extraction.test.ts3564 print(msg);
HIGHgitnexus/test/unit/method-extraction.test.ts3591 print(this);
HIGHgitnexus/test/unit/ingestion-utils.test.ts653 const code = `def process_data(items: list[int]) -> bool:\n return True`;
HIGHgitnexus/test/unit/call-processor.test.ts2600 content: 'class User:\n def save(self):\n return True\n',
HIGHgitnexus/test/unit/call-processor.test.ts2604 content: 'class User:\n def save(self):\n return True\n',
HIGHgitnexus/test/unit/type-env.test.ts960 return True
HIGHgitnexus/test/unit/type-env.test.ts965 return True
HIGH…xus/test/unit/scope-resolution/workspace-index.test.ts96 return True
HIGH…xus/test/unit/scope-resolution/workspace-index.test.ts138 return True
HIGH…xus/test/unit/scope-resolution/workspace-index.test.ts158 return True
HIGH…xus/test/unit/scope-resolution/workspace-index.test.ts184 return True
HIGH…xus/test/unit/scope-resolution/workspace-index.test.ts208 return True
HIGH…nit/scope-resolution/python/cached-tree-parity.test.ts32 print(item.upper())
HIGHgitnexus/test/integration/skills-e2e.test.ts515 return True
HIGHgitnexus/test/integration/skills-e2e.test.ts579 print(f"[INFO] {msg}")
HIGHgitnexus/test/integration/skills-e2e.test.ts582 print(f"[ERROR] {msg}")
HIGHgitnexus/test/integration/skills-e2e.test.ts591 return True
HIGHgitnexus/test/integration/skills-e2e.test.ts2247 return True
HIGHgitnexus/test/integration/has-method.test.ts623 print(format: string): void;
HIGHgitnexus/test/integration/resolvers/python.test.ts655 'app/services/marker.py': `def _marker(): return True
HIGHgitnexus/test/integration/resolvers/python.test.ts716 'app/services/marker.py': `def _marker(): return True
HIGHgitnexus/test/integration/resolvers/python.test.ts790 'app/services/marker.py': `def _marker(): return True
HIGHgitnexus/test/integration/resolvers/python.test.ts810 'app/services/marker.py': `def _marker(): return True
HIGHgitnexus/test/integration/resolvers/python.test.ts2946 return True
HIGHgitnexus/scripts/bench-scope-resolution.ts30 lines.push(` return True`);
Cross-Language Confusion20 hits · 125 pts
SeverityFileLineSnippet
HIGHeval/run_eval.py179 patch_output = env.execute({"command": "cd /testbed && git diff"})
HIGHeval/tool_registry.py30 fallback='cd /testbed && npx gitnexus query "$query" 2>&1',
HIGHeval/tool_registry.py41 fallback='cd /testbed && npx gitnexus context "$name" 2>&1',
HIGHeval/tool_registry.py50 fallback='cd /testbed && npx gitnexus impact "$target" --direction "$direction" 2>&1',
HIGHeval/tool_registry.py59 fallback='cd /testbed && npx gitnexus cypher "$query" 2>&1',
HIGHeval/tool_registry.py67 fallback='cd /testbed && npx gitnexus list 2>&1',
HIGHeval/tool_registry.py74 fallback='cd /testbed && npx gitnexus augment "$1" 2>&1 || true',
HIGHeval/tool_registry.py74 fallback='cd /testbed && npx gitnexus augment "$1" 2>&1 || true',
HIGHeval/environments/gitnexus_docker.py114 check = self.execute({"command": "node --version 2>/dev/null || echo 'NOT_FOUND'"})
HIGHeval/environments/gitnexus_docker.py134 check = self.execute({"command": "npx gitnexus --version 2>/dev/null || echo 'NOT_FOUND'"})
HIGHeval/environments/gitnexus_docker.py158 "command": f"cd /testbed && npx gitnexus analyze . {skip_flag} 2>&1",
HIGHeval/environments/gitnexus_docker.py193 "command": f"curl -sf http://{health_host}:{self.eval_server_port}/health 2>/dev/null || echo 'NOT_READY
HIGHeval/environments/gitnexus_docker.py236 '-H "Content-Type: application/json" -d "$payload" 2>/dev/null)'
HIGHeval/environments/gitnexus_docker.py278 "command": "cd /testbed && basename $(git remote get-url origin 2>/dev/null || basename $(pwd)) .git"
HIGHeval/environments/gitnexus_docker.py278 "command": "cd /testbed && basename $(git remote get-url origin 2>/dev/null || basename $(pwd)) .git"
HIGHeval/environments/gitnexus_docker.py280 commit_result = self.execute({"command": "cd /testbed && git rev-parse HEAD 2>/dev/null || echo unknown"})
HIGHeval/environments/gitnexus_docker.py280 commit_result = self.execute({"command": "cd /testbed && git rev-parse HEAD 2>/dev/null || echo unknown"})
HIGHeval/environments/gitnexus_docker.py348 "command": "npx gitnexus list 2>/dev/null | grep -o '/root/.gitnexus/[^ ]*' | head -1 || echo '/root
HIGHeval/environments/gitnexus_docker.py378 "command": f"curl -sf -X POST http://127.0.0.1:{self.eval_server_port}/shutdown 2>/dev/null || true"
HIGHeval/agents/gitnexus_agent.py113 "command": f'gitnexus-augment "{pattern}" 2>&1 || true',
Verbosity Indicators62 hits · 103 pts
SeverityFileLineSnippet
LOWgitnexus/test/unit/incremental-orchestration.test.ts183 // Step 1: initial index.
LOWgitnexus/test/unit/incremental-orchestration.test.ts186 // Step 2: comment-only edit, same as the test above.
LOWgitnexus/test/unit/incremental-orchestration.test.ts191 // Step 3: incremental writeback for the edited file.
LOWgitnexus/test/unit/incremental-orchestration.test.ts202 // Step 4: force a full rebuild from the SAME on-disk file state.
LOWgitnexus/test/unit/incremental-orchestration.test.ts212 // Step 5: exact-equality across every stat. `toEqual` would also
LOWgitnexus/test/integration/cli-e2e.test.ts492 // Step 1: analyze repoA with --name shared → registry entry created.
LOWgitnexus/test/integration/cli-e2e.test.ts514 // Step 2: analyze repoB with the SAME --name → collision error.
LOWgitnexus/test/integration/cli-e2e.test.ts534 // Step 3: REGRESSION GUARD for the missing collision-bypass wire
LOWgitnexus/test/integration/cli-e2e.test.ts566 // Step 4: REGRESSION GUARD for the design decision in review
LOWgitnexus/src/core/augmentation/engine.ts109 // Step 1: BM25 search (fast, no embeddings)
LOWgitnexus/src/core/augmentation/engine.ts112 // Step 2: Map BM25 file results to symbols
LOWgitnexus/src/core/augmentation/engine.ts172 // Step 3: Batch-fetch callers/callees/processes/cohesion for top matches
LOWgitnexus/src/core/augmentation/engine.ts298 // Step 4: Rank by cohesion (internal signal) and format
LOWgitnexus/src/core/ingestion/call-processor.ts2987 // Step 1: resolve receiver type from constructor bindings
LOWgitnexus/src/core/ingestion/community-processor.ts194 // Step 3: Create community nodes with heuristic labels
LOWgitnexus/src/core/ingestion/community-processor.ts204 // Step 4: Create membership mappings
LOWgitnexus/src/core/ingestion/process-processor.ts100 // Step 1: Find entry points (functions that call others but have few callers)
LOWgitnexus/src/core/ingestion/process-processor.ts107 // Step 2: Trace processes from each entry point
LOWgitnexus/src/core/ingestion/process-processor.ts127 // Step 3: Deduplicate similar traces (subset removal)
LOWgitnexus/src/core/ingestion/process-processor.ts138 // Step 4: Limit to max processes (prioritize longer traces)
LOWgitnexus/src/core/ingestion/process-processor.ts145 // Step 5: Create process nodes
LOW…xus/src/core/ingestion/languages/php/scope-resolver.ts134 // Step 1: run generic MRO (Class-only, EXTENDS-only).
LOW…xus/src/core/ingestion/languages/php/scope-resolver.ts137 // Step 2: build a graphId → defId map for ALL class-like defs including Traits.
LOW…xus/src/core/ingestion/languages/php/scope-resolver.ts156 // Step 3: collect direct trait-use edges (IMPLEMENTS where target is a Trait).
LOW…xus/src/core/ingestion/languages/php/scope-resolver.ts174 // Step 4: augment every class's MRO by prepending the traits used by
LOW…xus/src/core/ingestion/languages/php/scope-resolver.ts203 // Step 5: also insert Trait-only entries for classes that use traits
LOW…src/core/ingestion/languages/php/namespace-siblings.ts212 // Step 1: extract namespace structure for each file. Also seed the
LOW…src/core/ingestion/languages/php/namespace-siblings.ts225 // Step 2: group class-like defs and module scopes by namespace.
LOW…src/core/ingestion/languages/php/namespace-siblings.ts280 // Step 3: For each namespace bucket, inject sibling class bindings
LOW…src/core/ingestion/languages/php/namespace-siblings.ts339 // Step 4: Mirror return-type bindings from same-namespace sibling files.
LOW…nexus/src/core/ingestion/languages/cpp/simple-hooks.ts63 // The orchestrator provides the function scope; we need to check if
LOW…us/src/core/ingestion/languages/ruby/scope-resolver.ts111 // Step 1: EXTENDS chain via the generic MRO builder (direct class inheritance).
LOW…us/src/core/ingestion/languages/ruby/scope-resolver.ts114 // Step 2: Build defId ↔ graphId bridge for class-like defs.
LOW…us/src/core/ingestion/languages/ruby/scope-resolver.ts124 // Step 3: Collect IMPLEMENTS edges, partitioned by reason.
LOW…us/src/core/ingestion/languages/ruby/scope-resolver.ts151 // Step 4: Reorder MRO per Ruby semantics.
LOW…exus/src/core/ingestion/scope-resolution/passes/mro.ts45 // Step 1: parentsByGraphId — typed iterator skips the per-edge type
LOW…exus/src/core/ingestion/scope-resolution/passes/mro.ts58 // Step 2: defIdByGraphId — translate graph ids to scope-resolution DefIds.
LOW…exus/src/core/ingestion/scope-resolution/passes/mro.ts82 // Step 3: linearize per class.
LOW…ngestion/scope-resolution/passes/overload-narrowing.ts264 // Step 1: compute per-slot ranks and exclude non-viable candidates.
LOW…ngestion/scope-resolution/passes/overload-narrowing.ts298 // Step 2: pairwise dominance — remove candidates dominated by any other.
LOWgitnexus/src/core/ingestion/model/resolve.ts363 // Step 1: Walk prepend parents in REVERSE declaration order (last-prepended wins).
LOWgitnexus/src/core/ingestion/model/resolve.ts369 // Step 2: Direct owner lookup (the class's own method).
LOWgitnexus/src/core/ingestion/model/resolve.ts374 // Step 3: Walk extends + include parents in REVERSE declaration order.
LOWgitnexus/src/core/ingestion/model/resolve.ts381 // Step 4: Transitive ancestors (a mixin that itself mixes in another module).
LOWgitnexus/src/core/group/extractors/grpc-extractor.ts559 // Step 1: java_package translation. The import-derived package
LOWgitnexus/src/core/group/extractors/grpc-extractor.ts580 // Step 2: proto map cross-check. When this repo also carries a
LOWgitnexus/src/core/group/extractors/grpc-extractor.ts631 // Step 3: import-derived fallback. No `.proto` in this repo
LOWgitnexus/src/mcp/local/local-backend.ts948 // Step 1: Run hybrid search to get matching symbols. BM25 and vector
LOWgitnexus/src/mcp/local/local-backend.ts997 // Step 2: For each match with a nodeId, trace to process(es)
LOWgitnexus/src/mcp/local/local-backend.ts1133 // Step 3: Rank processes by aggregate score + internal cohesion boost
LOWgitnexus/src/mcp/local/local-backend.ts1144 // Step 4: Build response
LOWgitnexus/src/mcp/local/local-backend.ts1974 // Step 3: Build full context
LOWgitnexus/src/mcp/local/local-backend.ts2576 // Step 1: Find the target symbol (reuse context's lookup)
LOWgitnexus/src/mcp/local/local-backend.ts2597 // Step 2: Collect edits from graph (high confidence)
LOWgitnexus/src/mcp/local/local-backend.ts2675 // Step 3: Text search for refs the graph might have missed
LOWgitnexus/src/mcp/local/local-backend.ts2736 // Step 4: Apply or preview
LOWgitnexus/src/cli/skill-gen.ts80 // Step 1: Build communities from memberships (not the filtered communities array).
LOWgitnexus/src/cli/skill-gen.ts91 // Step 2: Filter to significant communities
LOWgitnexus/src/cli/skill-gen.ts103 // Step 3: Build lookup maps
LOWgitnexus/src/cli/skill-gen.ts110 // Step 4: Clear and recreate output directory
2 more matches not shown…
Hallucination Indicators4 hits · 50 pts
SeverityFileLineSnippet
CRITICALgitnexus/test/unit/group/grpc-extractor.test.ts563 // `com.acme.auth.proto.AuthServiceGrpc.newBlockingStub(...)`,
CRITICALgitnexus/test/unit/group/grpc-extractor.test.ts579 this.stub = com.acme.auth.proto.AuthServiceGrpc.newBlockingStub(ch);
CRITICALgitnexus/test/unit/group/grpc-extractor.test.ts588 // fully-qualified `com.acme.auth.proto.AuthServiceGrpc.newStub(...)`
CRITICALgitnexus/test/unit/group/grpc-extractor.test.ts655 this.stub = com.acme.auth.proto.AuthServiceGrpc.newBlockingStub(ch);
AI Slop Vocabulary10 hits · 30 pts
SeverityFileLineSnippet
MEDIUM…exus-shared/src/scope-resolution/module-scope-index.ts11 * Consumed by: #915 (SCC finalize link pass), #923 (shadow harness when
MEDIUMgitnexus/test/unit/git-utils.test.ts249 // the test is robust to platform path-format quirks (Windows 8.3 short
MEDIUMgitnexus/test/unit/group/grpc-extractor.test.ts631 // is robust against client-jar consumers and same-short-name
MEDIUMgitnexus/src/core/ingestion/shadow-harness.ts27 * `registry-primary-flag.ts` (#924); the harness records the
MEDIUMgitnexus/src/core/group/bridge-db.ts302 // meta.json, and we don't want meta write to be less robust than the
MEDIUMgitnexus/src/core/lbug/lbug-config.ts303// Matching is case-insensitive to remain robust across wrappers/platforms.
MEDIUM.github/workflows/docker.yml245 # Use `while read` instead of `for $TAGS` to be robust against tags that
MEDIUM.github/scripts/triage/test_embedding_utils.py196 # 500 samples, 10 dims — well-conditioned for robust covariance
MEDIUM.github/scripts/triage/sweep.py40# Governs how aggressively the robust covariance downweights extreme points.
MEDIUMgitnexus-web/package-lock.json8053 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
Excessive Try-Catch Wrapping22 hits · 23 pts
SeverityFileLineSnippet
LOW…t/unit/scope-resolution/python/python-fixtures.test.ts172 except Exception:
LOW.github/scripts/check-tree-sitter-upgrade-readiness.py807 except Exception:
LOWeval/run_eval.py181 except Exception as patch_err:
LOWeval/run_eval.py248 except Exception as e:
LOWeval/run_eval.py319 except Exception as e:
LOWeval/analysis/analyze_results.py72 except Exception:
LOWeval/analysis/analyze_results.py197 except Exception as e:
LOWeval/bridge/mcp_bridge.py88 except Exception as e:
LOWeval/bridge/mcp_bridge.py105 except Exception:
LOWeval/bridge/mcp_bridge.py108 except Exception:
LOWeval/bridge/mcp_bridge.py169 except Exception:
LOWeval/bridge/mcp_bridge.py183 except Exception:
LOWeval/bridge/mcp_bridge.py223 except Exception as e:
LOWeval/bridge/mcp_bridge.py244 except Exception as e:
LOWeval/bridge/mcp_bridge.py317 except Exception as e:
LOWeval/environments/gitnexus_docker.py86 except Exception as e:
LOWeval/environments/gitnexus_docker.py321 except Exception as e:
LOWeval/environments/gitnexus_docker.py363 except Exception as e:
LOWeval/environments/gitnexus_docker.py381 except Exception:
LOWeval/tests/test_errors.py12 except Exception as exc: # noqa: BLE001
LOWeval/tests/test_errors.py24 except Exception as exc: # noqa: BLE001
LOWeval/agents/gitnexus_agent.py127 except Exception as e:
Unused Imports29 hits · 23 pts
SeverityFileLineSnippet
LOW.github/scripts/check-tree-sitter-upgrade-readiness.py27
LOW.github/scripts/check-workflow-concurrency.py28
LOW.github/scripts/triage/test_sweep.py2
LOW.github/scripts/triage/test_sweep.py21
LOW.github/scripts/triage/test_sweep.py21
LOW.github/scripts/triage/test_sweep.py458
LOW.github/scripts/triage/test_sweep.py460
LOW.github/scripts/triage/embedding_utils.py6
LOW.github/scripts/triage/test_embedding_utils.py2
LOW.github/scripts/triage/test_embedding_utils.py7
LOW.github/scripts/triage/test_embedding_utils.py13
LOW.github/scripts/triage/test_embedding_utils.py13
LOW.github/scripts/triage/test_embedding_utils.py13
LOW.github/scripts/triage/test_embedding_utils.py13
LOW.github/scripts/triage/test_embedding_utils.py13
LOW.github/scripts/triage/sweep.py7
LOW.github/scripts/triage/sweep.py17
LOW.github/scripts/triage/sweep.py17
LOW.github/scripts/triage/sweep.py17
LOW.github/scripts/triage/sweep.py17
LOW.github/scripts/triage/sweep.py17
LOWeval/run_eval.py30
LOWeval/run_eval.py35
LOWeval/tool_registry.py1
LOWeval/analysis/analyze_results.py20
LOWeval/bridge/mcp_bridge.py17
LOWeval/tests/test_mcp_bridge.py4
LOWeval/tests/test_property_based.py1
LOWeval/utils/errors.py1
Deep Nesting9 hits · 9 pts
SeverityFileLineSnippet
LOW.github/scripts/check-tree-sitter-upgrade-readiness.py338
LOW.github/scripts/check-tree-sitter-upgrade-readiness.py405
LOW.github/scripts/check-workflow-concurrency.py38
LOW.github/scripts/check-workflow-concurrency.py96
LOW.github/scripts/triage/sweep.py255
LOWeval/run_eval.py279
LOWeval/analysis/analyze_results.py37
LOWeval/analysis/analyze_results.py206
LOWeval/analysis/analyze_results.py253
Overly Generic Function Names8 hits · 8 pts
SeverityFileLineSnippet
LOWgitnexus/test/unit/symbol-table.test.ts2960 it('resolves a Python free function (def helper(): ... helper())', () => {
LOWgitnexus/test/unit/ingestion-utils.test.ts653 const code = `def process_data(items: list[int]) -> bool:\n return True`;
LOWgitnexus/test/unit/type-env.test.ts5744 const code = `const dbClient: Database = connectDb();\nfunction handleRequest() {\n const localRequest: Request =
LOW…xus/test/unit/group/python-workspace-extractor.test.ts135 await writeFile('lib/utils/__init__.py', 'def helper(): pass\nclass Config: pass\n');
LOW…xus/test/unit/scope-resolution/workspace-index.test.ts79def helper() -> int:
LOW…xus/test/unit/scope-resolution/workspace-index.test.ts98def helper() -> int:
LOW…xus/test/unit/scope-resolution/workspace-index.test.ts238def helper() -> int:
LOW…s/src/core/ingestion/scope-resolution/scope/walkers.ts486 // on `class U: def save(self): def helper(): ...` — helper.ownerId will
Fake / Example Data6 hits · 5 pts
SeverityFileLineSnippet
LOWgitnexus/test/unit/cursor-hook.test.ts81 spawnSync('git', ['config', 'user.email', 'test@test.com'], { cwd: tmpDir, stdio: 'pipe' });
LOWgitnexus/test/unit/cursor-hook.test.ts88 spawnSync('git', ['config', 'user.email', 'test@test.com'], {
LOWgitnexus/test/unit/hooks.test.ts79 runGit(tmpDir, ['config', 'user.email', 'test@test.com']);
LOWgitnexus/test/unit/hooks.test.ts113 runGit(dir, ['config', 'user.email', 'test@test.com']);
LOWgitnexus/test/integration/antigravity-hook-e2e.test.ts78 spawnSync('git', ['config', 'user.email', 'test@test.com'], { cwd: tmpDir, stdio: 'pipe' });
LOWgitnexus/test/integration/hooks-e2e.test.ts45 spawnSync('git', ['config', 'user.email', 'test@test.com'], { cwd: tmpDir, stdio: 'pipe' });
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGHgitnexus-web/src/lib/mermaid-generator.ts29 rawMermaid?: string; // AI-generated mermaid code (sanitized before rendering)
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippet
MEDIUM.github/scripts/triage/test_embedding_utils.py160 # Create a tight cluster with one obvious outlier
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWgitnexus/hooks/claude/pre-tool-use.sh48# Check if we're in a GitNexus-indexed repo
LOWeval/bridge/mcp_bridge.py157 # Check if npx is available (preferred - uses local install)
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWeval/bridge/gitnexus_tools.sh9# Usage: