MCPcopy Create free account

hub / github.com/alibaba/open-code-review / functions

Functions2,775 in github.com/alibaba/open-code-review

↓ 6 callersMethodassert_line
(self, c, want_line)
examples/gerrit_ci/post_review_test.py:56
↓ 6 callersFunctioncompareReadmeStructures
(files)
scripts/github-actions/check-translation-sync.js:124
↓ 6 callersFunctiondefaultConfigPath
Default config file location: ~/.opencodereview/config.json
cmd/opencodereview/config_cmd.go:15
↓ 6 callersFunctionencodeRepoPath
(p string)
internal/session/persist.go:71
↓ 6 callersFunctionensureMetrics
()
internal/telemetry/metrics.go:29
↓ 6 callersMethodenterEditCustomProvider
()
cmd/opencodereview/provider_tui.go:1017
↓ 6 callersMethodexecuteReviewFilter
executeReviewFilter runs the REVIEW_FILTER_TASK to remove comments that are provably incorrect based solely on the diff. Errors are logged and silentl
internal/agent/agent.go:641
↓ 6 callersFunctionextractHeadings
(markdown)
scripts/github-actions/check-translation-sync.js:56
↓ 6 callersFunctionextractSideLines
extractSideLines extracts one side of the diff from a hunk. When newSide is true, returns context+added lines with new-file line numbers. When newSide
internal/diff/resolver.go:117
↓ 6 callersFunctiongitCommit
(t *testing.T, repo, msg string)
internal/scan/provider_test.go:113
↓ 6 callersFunctiongroupBatches
groupBatches partitions items according to strategy, then slices each natural group into BatchSize-sized chunks (when size > 0). Within a batch the in
internal/scan/batch.go:42
↓ 6 callersFunctionhandleRepos
(w http.ResponseWriter, r *http.Request, root string)
internal/viewer/handler.go:9
↓ 6 callersFunctionlistCursorPrefix
(isCursor bool)
cmd/opencodereview/provider_tui.go:1929
↓ 6 callersFunctionloadPackageJSON
(t *testing.T)
internal/release/asset_naming_test.go:31
↓ 6 callersFunctionlooksLikeFilePath
looksLikeFilePath returns true when s is likely a file path (not inline content). Heuristic: multi-line text is always inline; single-line text withou
internal/config/rules/system_rules.go:457
↓ 6 callersFunctionmaskedSecretPlaceholder
()
cmd/opencodereview/provider_tui.go:847
↓ 6 callersFunctionparseBpeData
parseBpeData parses the base64-encoded BPE data format. Each line: <base64-token> <rank>
internal/llm/embedded_loader.go:53
↓ 6 callersFunctionparseTemplate
(name string)
internal/viewer/server.go:78
↓ 6 callersMethodread
()
extensions/vscode/src/extension/services/ConfigService.ts:17
↓ 6 callersFunctionreadme
(headings)
scripts/github-actions/check-translation-sync.test.js:28
↓ 6 callersFunctionrenderComment
(comment model.LlmComment)
cmd/opencodereview/output.go:55
↓ 6 callersFunctionrunGitCmd
(repoDir string, args ...string)
cmd/opencodereview/git.go:9
↓ 6 callersFunctionsanitizeMarkdown
(s string)
cmd/opencodereview/background_file.go:96
↓ 6 callersMethodtrace
(msg: string)
extensions/vscode/src/extension/services/GitService.ts:17
↓ 6 callersMethodtryApplyPendingCompression
tryApplyPendingCompression checks whether a background compression has completed and swaps the rebuilt messages into place. Returns true if applied.
internal/llmloop/compression.go:318
↓ 6 callersFunctionunmarshalResponsesBody
--- helpers ---
internal/llm/responses_client_test.go:666
↓ 6 callersFunctionupKey
()
cmd/opencodereview/provider_tui_funcs_test.go:270
↓ 5 callersMethodAsDiff
AsDiff returns a Diff suitable for handing to code that expects the diff-based shape (line-number resolver, file_read_diff tool). The Diff field stays
internal/model/scan.go:19
↓ 5 callersFunctionCollectToolDefs
CollectToolDefs gathers tool definitions from MCP clients, filtering out tools that conflict with built-in tools or were not successfully registered.
internal/mcp/provider.go:96
↓ 5 callersMethodCompletionsWithCtx
CompletionsWithCtx sends a chat completion request with context support.
internal/llm/client.go:622
↓ 5 callersFunctionContextWithTraceParentFromEnv
ContextWithTraceParentFromEnv extracts W3C traceparent from the TRACEPARENT environment variable and returns a context carrying the upstream span cont
internal/telemetry/span.go:32
↓ 5 callersFunctionCountMessagesTokens
CountMessagesTokens returns the rough token count of msgs by summing the per-message text token count. Exported because both review and scan top layer
internal/llmloop/compression.go:66
↓ 5 callersFunctionInit
Init initializes global TracerProvider and MeterProvider based on environment variables and optional config file. Returns true when enabled. Safe to c
internal/telemetry/provider.go:29
↓ 5 callersFunctionLoad
Load parses the tools config file. When path is empty, falls back to the embedded default tools configuration.
internal/config/toolsconfig/toolsconfig.go:24
↓ 5 callersFunctionLoadDetail
LoadDetail returns the summary plus per-file item records for one session.
internal/session/list.go:132
↓ 5 callersFunctionLoadScanDefault
LoadScanDefault parses the embedded scan_template.json.
internal/config/template/template.go:134
↓ 5 callersFunctionNewCommitProvider
NewCommitProvider creates a Provider for commit mode: show changes introduced by a single commit.
internal/diff/git.go:72
↓ 5 callersFunctionNewProvider
NewProvider creates a Provider for range mode: from..to (via merge-base).
internal/diff/git.go:61
↓ 5 callersMethodPreview
Preview enumerates files and applies the standard reviewability filter without dispatching any LLM calls. Returns a *model.Preview ready for cmd/openc
internal/scan/preview.go:18
↓ 5 callersFunctionReLocateComment
ReLocateComment calls the LLM to regenerate a precise existing_code snippet when text-based matching fails, then retries ResolveComment with the new s
internal/diff/relocation.go:20
↓ 5 callersFunctionRecordCommentsGenerated
(ctx context.Context, n int64)
internal/telemetry/metrics.go:94
↓ 5 callersFunctionRecordReviewDuration
(ctx context.Context, dur time.Duration)
internal/telemetry/metrics.go:74
↓ 5 callersMethodRecordReviewItemFailed
RecordReviewItemFailed persists an incomplete file-level checkpoint.
internal/session/history.go:187
↓ 5 callersMethodReplaceSince
ReplaceSince replaces comments[start:] with the given replacements. Useful for batch-level dedup: take a Snapshot, run a batch, dedup the new comments
internal/tool/comment_collector.go:79
↓ 5 callersFunctionResolveComment
ResolveComment attempts to resolve StartLine/EndLine for a single comment by matching ExistingCode against the diff. Returns true on success.
internal/diff/resolver.go:59
↓ 5 callersMethodRun
Run executes a git command and returns the combined stdout+stderr output.
internal/gitcmd/runner.go:44
↓ 5 callersFunctionStartLLMSpan
StartLLMSpan creates a span for an LLM request with standard attributes.
internal/telemetry/span.go:106
↓ 5 callersMethodTools
()
internal/mcp/client.go:64
↓ 5 callersMethodapiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:914
↓ 5 callersFunctionapplyDedupGroups
applyDedupGroups parses the DEDUP_TASK output and returns the deduped comment slice. Returns (nil, false) when the response is malformed OR when the g
internal/scan/agent.go:782
↓ 5 callersMethodapplyEditCustomProviderSave
()
cmd/opencodereview/provider_tui.go:1219
↓ 5 callersFunctionapplyManualConfig
(configPath string, cfg *Config, result providerTUIResult)
cmd/opencodereview/provider_cmd.go:98
↓ 5 callersFunctionassertContains
(t *testing.T, args []string, val string)
internal/tool/code_search_test.go:288
↓ 5 callersFunctionassertNotContains
(t *testing.T, args []string, val string)
internal/tool/code_search_test.go:295
↓ 5 callersMethodassert_unresolved
(self, severity, want)
examples/gerrit_ci/post_review_test.py:89
↓ 5 callersMethodbuildAnthropicParams
buildAnthropicParams converts the shared ChatRequest into Anthropic SDK parameters.
internal/llm/client.go:647
↓ 5 callersMethodcancelPendingCompression
cancelPendingCompression aborts the conversation's in-flight background compression, if any.
internal/llmloop/compression.go:353
↓ 5 callersFunctioncharKey
(c rune)
cmd/opencodereview/provider_tui_test.go:39
↓ 5 callersFunctioncommentKey
(rc)
scripts/github-actions/post-review-comments.test.js:60
↓ 5 callersFunctioncontentToText
(contents []mcp.Content)
internal/mcp/client.go:89
↓ 5 callersMethodcustomListCount
()
cmd/opencodereview/provider_tui.go:596
↓ 5 callersFunctioneffectivePath
(d model.Diff)
internal/agent/preview.go:101
↓ 5 callersMethodensureApi
()
extensions/vscode/src/extension/services/GitService.ts:21
↓ 5 callersFunctionensureModelInList
ensureModelInList appends model to the end when missing; never reorders existing entries.
cmd/opencodereview/config_cmd.go:507
↓ 5 callersMethodexecuteSubtask
executeSubtask performs the Plan Phase + Main Loop for a single file.
internal/agent/agent.go:522
↓ 5 callersFunctionextractFilenameFromURL
extractFilenameFromURL returns the filename part (last path segment) of a URL pattern.
internal/release/asset_naming_test.go:54
↓ 5 callersFunctionfindMissingTranslations
(changedFiles)
scripts/github-actions/check-translation-sync.js:180
↓ 5 callersFunctiongetChangedFiles
(env, exec = execFileSync)
scripts/github-actions/check-translation-sync.js:221
↓ 5 callersFunctiongetCommitMessage
(repoDir, commit string)
cmd/opencodereview/git.go:24
↓ 5 callersFunctioninitRepo
(t *testing.T)
internal/gitcmd/runner_test.go:14
↓ 5 callersFunctioninitRepoWithChange
initRepoWithChange creates a real git repository with one committed file and an uncommitted working-tree modification, returning the repo dir. There i
internal/diff/git_test.go:45
↓ 5 callersFunctionisConfigReady
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:78
↓ 5 callersMethodisUserAddedModel
(name string)
cmd/opencodereview/provider_tui.go:2553
↓ 5 callersFunctionmergeBackground
mergeBackground combines the inline --background value (or an auto-populated commit message) with the content read from --background-file, separated b
cmd/opencodereview/background_file.go:34
↓ 5 callersMethodmodelCount
()
cmd/opencodereview/provider_tui.go:592
↓ 5 callersMethodofficialProviderActiveModel
(p llm.Provider)
cmd/opencodereview/provider_tui.go:207
↓ 5 callersFunctionoutputPreviewText
(p *agent.DiffPreview)
cmd/opencodereview/output.go:335
↓ 5 callersFunctionparseShellRC
(path, modelOverride string)
internal/llm/resolver.go:513
↓ 5 callersMethodplanEnabled
planEnabled / dedupEnabled / summaryEnabled report whether each optional phase will actually run: template must define it AND the corresponding --no-*
internal/scan/agent.go:75
↓ 5 callersMethodpost_seq
Drive post() over a sequence of per-call fake_urlopen outcomes. Each outcome is either the raw response body (bytes, returned) or an
examples/gerrit_ci/post_review_test.py:561
↓ 5 callersMethodread
(self)
examples/gerrit_ci/post_review_test.py:514
↓ 5 callersFunctionreadRuleFileSafe
readRuleFileSafe reads and validates a rule file. It enforces extension whitelist (.md / .txt / .markdown), a 512 KB size cap, and resolves symlinks b
internal/config/rules/system_rules.go:533
↓ 5 callersFunctionreviewItemFingerprint
(mode string, d model.Diff)
internal/agent/agent.go:509
↓ 5 callersMethodrunRaw
运行任意参数,流式回调日志,结束返回 stdout 全文。退出码非 0 时 reject,并带上 CLI 报错文本。
extensions/vscode/src/extension/services/CliService.ts:104
↓ 5 callersFunctionrunRules
(args []string)
cmd/opencodereview/rules_cmd.go:10
↓ 5 callersFunctionsanitizeTerminal
(s string)
cmd/opencodereview/output.go:197
↓ 5 callersFunctionsplitPaths
(raw string)
cmd/opencodereview/scan_cmd.go:98
↓ 4 callersMethodAwaitKey
AwaitKey blocks until every unit submitted under key so far has completed. It never touches the pool-wide WaitGroup, so it is safe to call while other
internal/llmloop/pool.go:139
↓ 4 callersMethodBoolVar
(p *bool, name string, value bool, usage string)
cmd/opencodereview/flags.go:49
↓ 4 callersMethodCompletedCount
CompletedCount returns the number of reusable file-level checkpoints.
internal/session/resume.go:153
↓ 4 callersFunctionDefaultConfig
DefaultConfig returns a disabled default configuration.
internal/telemetry/config.go:29
↓ 4 callersMethodDiffs
()
cmd/opencodereview/shared.go:241
↓ 4 callersMethodFilesReviewed
()
cmd/opencodereview/shared.go:242
↓ 4 callersMethodHasInclude
HasInclude reports whether any include patterns are configured.
internal/config/rules/system_rules.go:201
↓ 4 callersMethodIntVar
(p *int, name string, value int, usage string)
cmd/opencodereview/flags.go:53
↓ 4 callersFunctionIsPathExcluded
IsPathExcluded returns true when relPath matches any of the supplied gitignore-style patterns or any default excluded directory prefix (see ExcludedDi
internal/diff/gitignore.go:22
↓ 4 callersFunctionIsReserved
IsReserved reports whether name matches any built-in tool name (including Unknown).
internal/tool/definitions.go:38
↓ 4 callersMethodItem
Item returns a copy of the checkpoint for fingerprint.
internal/session/resume.go:161
↓ 4 callersFunctionLoadAppConfig
LoadAppConfig loads config from path. Returns nil, nil if file does not exist.
cmd/opencodereview/config_cmd.go:259
↓ 4 callersFunctionLoadGitignorePatterns
LoadGitignorePatterns reads and parses .gitignore patterns from the given repository root. Returns nil if the file is missing or unreadable.
internal/diff/gitignore.go:14
← previousnext →201–300 of 2,775, ranked by callers