Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
4,381 in github.com/alibaba/open-code-review
⨍
Functions
4,381
◇
Types & classes
411
↓ 2 callers
Function
loadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:178
↓ 2 callers
Function
log
(msg)
examples/gerrit_ci/post_review.py:57
↓ 2 callers
Function
log
(msg)
examples/gitflic_ci/post_review.py:43
↓ 2 callers
Function
logRateLimitQuota
(response, tag, log)
scripts/github-actions/post-review-comments.js:1148
↓ 2 callers
Function
lookupPreset
(name: string)
extensions/vscode/src/shared/providers.ts:145
↓ 2 callers
Method
manifestInput
manifestInput builds the frozen input identity per the input-mode field matrix: range carries both requested refs, commit carries only the requested h
internal/agent/agent.go:948
↓ 2 callers
Function
manifestPaths
manifestPaths returns the old/new paths for identity derivation with the "/dev/null" sentinel (added/deleted files) collapsed to empty, so it never po
internal/agent/agent.go:1084
↓ 2 callers
Method
manualAuthTokenCmd
manualAuthTokenCmd returns the configured llm.auth_token_cmd, which the resolver runs when llm.auth_token is empty. Trimmed for the same reason as api
cmd/opencodereview/provider_tui.go:1136
↓ 2 callers
Method
mapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:688
↓ 2 callers
Function
maskKey
(key string)
cmd/opencodereview/provider_cmd.go:437
↓ 2 callers
Function
matchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:311
↓ 2 callers
Function
matchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:478
↓ 2 callers
Method
mergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:402
↓ 2 callers
Method
mergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:432
↓ 2 callers
Function
mergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:57
↓ 2 callers
Function
minimumArgs
minimumArgs behaves like cobra.MinimumNArgs(n) but reports too few arguments with the command's own usage information.
cmd/opencodereview/arg_errors.go:34
↓ 2 callers
Function
newBlockingCompressionClient
(c *llm.RetryCollector)
internal/llmloop/retry_background_test.go:31
↓ 2 callers
Function
newCommentId
(runTag)
scripts/github-actions/post-review-comments.js:1338
↓ 2 callers
Function
newJSONLWriter
newJSONLWriter creates and opens a new JSONL writer for the given session.
internal/session/persist.go:44
↓ 2 callers
Function
newKeyCmd
newKeyCmd builds the OS-specific shell invocation (sh -c on Unix) that runs a credential command under ctx, so its timeout and cancellation are honore
internal/llm/keycmd_unix.go:32
↓ 2 callers
Function
newResponsesSessionTestServer
newResponsesSessionTestServer returns an httptest server that captures each request's headers and JSON body and responds with a minimal completed resp
internal/llm/responses_client_test.go:721
↓ 2 callers
Function
newStdoutMetricExporter
newStdoutMetricExporter creates a console metric exporter with pretty-print output.
internal/telemetry/exporter.go:30
↓ 2 callers
Function
newStdoutTraceExporter
newStdoutTraceExporter creates a console trace exporter with pretty-print output.
internal/telemetry/exporter.go:25
↓ 2 callers
Function
newThinkingTestRunner
newThinkingTestRunner builds a Runner wired for a full RunPerFile pass: a scripted LLM client, the code_comment tool, and a comment collector.
internal/llmloop/loop_execute_more_test.go:36
↓ 2 callers
Function
nonNegativeMillis
nonNegativeMillis converts d to milliseconds, flooring at zero. Timestamps taken from time.Now carry a monotonic reading, so a real attempt can never
internal/llm/retry_report.go:362
↓ 2 callers
Function
normalizeScanPaths
(paths []string)
internal/session/resume.go:311
↓ 2 callers
Function
normalizedCommentCategory
(category string)
internal/viewer/server.go:121
↓ 2 callers
Function
officialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2547
↓ 2 callers
Function
officialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:937
↓ 2 callers
Method
only
(t *testing.T)
internal/agent/retry_identity_test.go:42
↓ 2 callers
Function
otlpSignalURL
otlpSignalURL builds the URL for one signal from the configured endpoint. OTEL_EXPORTER_OTLP_ENDPOINT is defined by the OpenTelemetry specification a
internal/telemetry/exporter.go:69
↓ 2 callers
Function
outputJSON
(comments []model.LlmComment)
cmd/opencodereview/output.go:310
↓ 2 callers
Function
outputJSONNoFiles
(traceID string, llmIdentity *jsonLLMIdentity, out io.Writer)
cmd/opencodereview/output.go:608
↓ 2 callers
Function
outputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:23
↓ 2 callers
Function
overlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:992
↓ 2 callers
Function
parseBatchStrategy
parseBatchStrategy normalizes a user-supplied strategy string. Unknown or empty values fall back to BatchNone (safe v1 behavior).
internal/scan/batch.go:28
↓ 2 callers
Function
parseCliResult
(stdout: string)
extensions/vscode/src/extension/services/cliParse.ts:39
↓ 2 callers
Function
parseCommentsInner
(args map[string]any, defaultPath string)
internal/tool/code_comment.go:85
↓ 2 callers
Function
parseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:30
↓ 2 callers
Function
parseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:1926
↓ 2 callers
Function
parseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 2 callers
Function
parseFilterResponse
parseFilterResponse extracts comment indices from the LLM filter response. Returns a set of 0-based indices. Invalid IDs or out-of-range indices are i
internal/agent/agent.go:1924
↓ 2 callers
Function
parseFilterToolCalls
parseFilterToolCalls extracts comment indices from the filter tool call response. Returns nil if no matching tool call is found, allowing fallback to
internal/agent/agent.go:1892
↓ 2 callers
Function
parseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:68
↓ 2 callers
Function
parseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:724
↓ 2 callers
Function
parseOTLPEndpoint
parseOTLPEndpoint strips a http:// or https:// scheme from the endpoint and reports whether the connection should be plaintext (insecure). Scheme matc
internal/telemetry/exporter.go:41
↓ 2 callers
Function
parseRetryAfterMS
parseRetryAfterMS reports the server's retry hint in milliseconds, mirroring the SDKs' parseRetryAfterHeader: Retry-After-Ms wins over Retry-After, ea
internal/llm/retry_observer.go:109
↓ 2 callers
Function
parseRetryDirective
parseRetryDirective reads x-should-retry, the header both SDKs consult ahead of the status code (and without excluding 2xx). Only the two values they
internal/llm/retry_observer.go:85
↓ 2 callers
Function
parseTimeoutEnv
parseTimeoutEnv reads and validates the OCR_LLM_TIMEOUT environment variable. Returns the parsed duration and true if set, or 0 and false if unset/emp
internal/llm/resolver.go:203
↓ 2 callers
Function
parseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:52
↓ 2 callers
Function
parseVersionOutput
(output)
scripts/version.js:9
↓ 2 callers
Method
passThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1786
↓ 2 callers
Method
persistAddedModelName
persistAddedModelName appends a model to the provider's Models list in config and saves to disk. It does not change the active model.
cmd/opencodereview/provider_tui.go:2813
↓ 2 callers
Method
persistCustomModelName
persistCustomModelName appends a single model name to the active provider's Models list (official or custom) and saves the config. It does not change
cmd/opencodereview/provider_tui.go:814
↓ 2 callers
Function
pickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:90
↓ 2 callers
Method
post
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:527
↓ 2 callers
Method
post_note
(self, body)
examples/gitlab_ci/post_review.py:862
↓ 2 callers
Method
presentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:359
↓ 2 callers
Function
printSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:270
↓ 2 callers
Method
probeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:36
↓ 2 callers
Function
probePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:125
↓ 2 callers
Function
projectRoot
(t *testing.T)
internal/release/asset_naming_test.go:25
↓ 2 callers
Function
protocolIndexIn
(list []string, protocol string)
cmd/opencodereview/provider_tui.go:215
↓ 2 callers
Method
readRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:30
↓ 2 callers
Function
readWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:1212
↓ 2 callers
Method
record
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:7
↓ 2 callers
Function
recordToItem
(rec summaryRecord)
internal/session/list.go:296
↓ 2 callers
Method
recordToolCall
(name string)
internal/llmloop/loop.go:175
↓ 2 callers
Method
refreshModelSelectionAfterAdd
(name string)
cmd/opencodereview/provider_tui.go:2796
↓ 2 callers
Method
refreshWorkspaceFiles
工作区模式仅刷新变更文件,不等待 VS Code Git 扩展,也不拉分支/提交历史。
extensions/vscode/src/extension/services/GitService.ts:146
↓ 2 callers
Function
registerReviewFlags
registerReviewFlags registers all review command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:202
↓ 2 callers
Function
registerScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:223
↓ 2 callers
Function
removeModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:88
↓ 2 callers
Method
renderBody
( c: ReviewComment, _index: number, _status: CommentStatus, locateNote?: string, )
extensions/vscode/src/extension/providers/CommentProvider.ts:124
↓ 2 callers
Method
renderMessages
renderMessages substitutes placeholders in the scan template's MainTask for a single scan item. planGuidance is the output of maybeRunPlan and gets su
internal/scan/agent.go:1157
↓ 2 callers
Function
renderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:2124
↓ 2 callers
Method
repoRootFast
通过 git rev-parse 解析仓库根,避免等待 VS Code Git 扩展初始化。
extensions/vscode/src/extension/services/GitService.ts:172
↓ 2 callers
Function
requireExec
(t *testing.T)
internal/mcp/stdio_test.go:114
↓ 2 callers
Function
requireGitRepo
requireGitRepo validates that the given directory is part of a git repository.
cmd/opencodereview/review_cmd.go:446
↓ 2 callers
Method
resetCustomModelInput
()
cmd/opencodereview/provider_tui.go:3061
↓ 2 callers
Function
resolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:726
↓ 2 callers
Function
resolveColor
resolveColor decides whether ANSI sequences may be written to stdout. Precedence, highest first: 1. --color=never → off 2. --color=always
cmd/opencodereview/color.go:59
↓ 2 callers
Function
resolveConversation
(m manifestConversation)
internal/config/template/template.go:128
↓ 2 callers
Method
resolveDiffSide
( api: any, root: string, relPath: string, ref: string | null, status: FileChange['status'
extensions/vscode/src/extension/services/GitService.ts:340
↓ 2 callers
Function
resolveEnv
resolveEnv reads environment variables to override defaults. Environment takes highest priority.
internal/telemetry/config.go:45
↓ 2 callers
Function
resolveFromFileContent
resolveFromFileContent scans the new file content line-by-line for consecutive matches of the normalized existing_code.
internal/diff/resolver.go:238
↓ 2 callers
Function
resolveFromHunk
resolveFromHunk tries to find startLine/endLine by matching ExistingCode against hunk lines. It tries the new-side first (context + added lines → new-
internal/diff/resolver.go:151
↓ 2 callers
Method
resolveGroupSystemRule
resolveGroupSystemRule merges the rules for every file in a group. Files that resolve to identical rule text share one block. When the group spans mo
internal/agent/agent.go:1628
↓ 2 callers
Function
resolveLang
(lang string)
internal/config/testconnection/testconnection.go:42
↓ 2 callers
Function
resolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:101
↓ 2 callers
Function
resolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:1011
↓ 2 callers
Method
resolveWorkspacePath
(path string)
internal/tool/filereader.go:94
↓ 2 callers
Function
resolve_threshold
(threshold)
examples/gitlab_ci/post_review.py:396
↓ 2 callers
Method
resolver
resolver returns the rules Resolver, asserting DetailResolver if available.
cmd/opencodereview/delegate_cmd.go:151
↓ 2 callers
Function
responseRequestID
responseRequestID reads the provider's request identifier. Anthropic sends request-id and OpenAI sends x-request-id; the observer is shared by all thr
internal/llm/retry_observer.go:74
↓ 2 callers
Function
resultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:7
↓ 2 callers
Function
resumedFromSession
(resume *session.ResumeState)
internal/scan/agent.go:293
↓ 2 callers
Function
retryOutcomeInfo
(o llm.Outcome)
cmd/opencodereview/output.go:418
↓ 2 callers
Method
reviewMode
reviewMode returns the string mode identifier.
cmd/opencodereview/delegate_cmd.go:139
↓ 2 callers
Function
reviewResultError
(runErr error, manifest *session.RunManifest)
cmd/opencodereview/review_cmd.go:310
← previous
next →
1,001–1,100 of 4,381, ranked by callers