36 matches across 1 files for error lang:Go lang:Go lang:Go lang:Go path:processor/history_coupling.go lang:Go lang:Go lang:Go
snippet_mode: auto · sorted by relevance
processor/history_coupling.go GO 36 matches · showing 5 view file →
5import (
6 "encoding/csv"
7 "errors"
8 "fmt"
9 "os"
· · ·
408//
409// target accepts the same forms as --coupling-for and is validated against HEAD
410// before the walk, so a caller passing a bad path gets an immediate error rather
411// than paying for a full traversal first.
412func CouplingForJSONReport(repoPath, target string, limit int) (string, error) {
· · ·
412func CouplingForJSONReport(repoPath, target string, limit int) (string, error) {
413 resolved, err := resolveCouplingTarget(repoPath, target)
414 if err != nil {
· · ·
426// which needs the rendered data rather than stdout side effects. A limit > 0
427// caps the pair list (strongest first); limit <= 0 returns every pair.
428func CouplingJSONReport(repoPath string, limit int) (string, error) {
429 observer := newCouplingObserver()
430 if _, err := runHistory(repoPath, observer); err != nil {
· · ·
441// object.Tree.Files().ForEach surfaces whatever the callback returns, so it is
442// compared back at the call site and discarded.
443var errStopTreeWalk = errors.New("stop tree walk")
444
445// couplingTargetCandidates returns the repo-relative forms to try for a
+ 31 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.