35 matches across 1 files for error lang:Go path:processor/history_coupling.go lang:Go path:processor/history_coupling.go
snippet_mode: grep · sorted by relevance
processor/history_coupling.go GO 35 matches · showing 5 view file →
5import (
6 "encoding/csv"
7 "errors"
8 "fmt"
9 "os"
· · ·
409//
410// target accepts the same forms as --coupling-for and is validated against HEAD
411// before the walk, so a caller passing a bad path gets an immediate error rather
412// than paying for a full traversal first.
413func CouplingForJSONReport(repoPath, target string, limit int) (string, error) {
· · ·
413func CouplingForJSONReport(repoPath, target string, limit int) (string, error) {
414 resolved, err := resolveCouplingTarget(repoPath, target)
415 if err != nil {
· · ·
427// which needs the rendered data rather than stdout side effects. A limit > 0
428// caps the pair list (strongest first); limit <= 0 returns every pair.
429func CouplingJSONReport(repoPath string, limit int) (string, error) {
430 observer := newCouplingObserver()
431 if _, err := runHistory(repoPath, observer); err != nil {
· · ·
442// object.Tree.Files().ForEach surfaces whatever the callback returns, so it is
443// compared back at the call site and discarded.
444var errStopTreeWalk = errors.New("stop tree walk")
445
446// couplingTargetCandidates returns the repo-relative forms to try for a
+ 30 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.