Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,599 in github.com/alibaba/open-code-review
⨍
Functions
7,599
◇
Types & classes
815
↓ 3 callers
Function
formatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:2371
↓ 3 callers
Function
formatDelegateResult
(result: RunResult)
plugins/open-code-review/opencode/open-code-review.ts:414
↓ 3 callers
Function
formatLocateNote
Prepend a relocation note to the comment body to indicate that its line number was inferred. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:125
↓ 3 callers
Function
formatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:2612
↓ 3 callers
Function
generate
(output, kotlinOutput string)
internal/llm/gen/main.go:57
↓ 3 callers
Function
getAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:98
↓ 3 callers
Function
getBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:94
↓ 3 callers
Method
getCommitFiles
List files changed in a single commit relative to its parent.
extensions/vscode/src/extension/services/GitService.ts:240
↓ 3 callers
Function
getPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:2109
↓ 3 callers
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1167
↓ 3 callers
Function
hasReviewLimitWarning
hasReviewLimitWarning reports whether a declared review limit — the tool-request round budget or the aggregate token budget — was reached. llmloop rec
cmd/opencodereview/output.go:91
↓ 3 callers
Function
hasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:51
↓ 3 callers
Function
hasTranslation
(slug: DocSlug, language: Language)
pages/src/content/docs/index.ts:60
↓ 3 callers
Function
helperArgv
helperArgv is the argv that re-execs this test binary as the helper.
internal/viewer/browser_exec_test.go:46
↓ 3 callers
Function
helperCmdStderr
helperCmdStderr is helperCmd with the child also writing msg to stderr.
internal/viewer/browser_exec_test.go:57
↓ 3 callers
Function
hostGuard
hostGuard returns a middleware that rejects requests whose Host header is not on the allowlist. This blocks DNS-rebinding attacks against the local vi
internal/viewer/hostguard.go:88
↓ 3 callers
Function
inheritedPipe
inheritedPipe registers a nonblocking duplicate with Go's poller. Closing an inherited blocking os.Stdout cannot reliably interrupt a system write.
acp/cmd/ocr-acp/stdio_unix.go:18
↓ 3 callers
Function
initMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:624
↓ 3 callers
Function
initOTLPHTTPProviders
initOTLPHTTPProviders sets up OTLP HTTP exporters for traces and metrics. Unlike the gRPC path this uses WithEndpointURL rather than WithEndpoint, so
internal/telemetry/exporter.go:153
↓ 3 callers
Function
initOTLPProviders
initOTLPProviders dispatches to the gRPC or HTTP exporter based on cfg.OTLPProtocol.
internal/telemetry/exporter.go:86
↓ 3 callers
Function
isChunkLoadError
(error: Error)
pages/src/components/ErrorBoundary.tsx:21
↓ 3 callers
Method
isCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2912
↓ 3 callers
Method
isCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:622
↓ 3 callers
Function
isErrorStatus
isErrorStatus reports whether an observed HTTP status proves the attempt failed on its own. Status 0 means no response was received, so it proves noth
internal/llm/retry_report.go:172
↓ 3 callers
Function
isPartialLocale
(language: Language)
pages/src/content/docs/index.ts:64
↓ 3 callers
Function
isUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:441
↓ 3 callers
Method
itemCount
()
cmd/opencodereview/provider_tui.go:2916
↓ 3 callers
Function
itemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:138
↓ 3 callers
Function
killUnixProcessGroup
(pid int, kill func(int, syscall.Signal) error)
acp/internal/orchestrator/process/process_unix.go:45
↓ 3 callers
Function
listBotReviewThreads
({ github, owner, repo, prNumber, log, warn })
scripts/github-actions/post-review-comments.js:1523
↓ 3 callers
Function
listCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2129
↓ 3 callers
Function
listCustomProviderNames
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:172
↓ 3 callers
Method
list_notes
(self)
examples/gitlab_ci/post_review_test.py:170
↓ 3 callers
Method
list_notes
Return all MR notes, or None when the read failed.
examples/gitlab_ci/post_review.py:1121
↓ 3 callers
Function
loadObjCRule
loadObjCRule reads the embedded Objective-C rule doc used by the ".m" content sniff.
internal/config/rules/system_rules.go:120
↓ 3 callers
Function
loadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:260
↓ 3 callers
Function
loadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:187
↓ 3 callers
Function
lookupPreset
(name: string)
extensions/frontend/src/shared/providers.ts:22
↓ 3 callers
Function
main
()
scripts/github-actions/action-contract.test.js:2162
↓ 3 callers
Function
makeScanItems
(n int)
internal/scan/budget_test.go:63
↓ 3 callers
Method
manifestMode
manifestMode maps the review to the manifest input mode. It derives purely from From/To/Commit so the value is always one of the three valid input mod
internal/agent/agent.go:991
↓ 3 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:1145
↓ 3 callers
Method
mapAnthropicResponse
mapAnthropicResponse converts the SDK response into ChatResponse.
internal/llm/client.go:1742
↓ 3 callers
Function
mapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 3 callers
Method
mergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:145
↓ 3 callers
Function
messageTokens
messageTokens counts visible text plus the Native replay payload and tool calls that ExtractText() does not see.
internal/llmloop/compression.go:64
↓ 3 callers
Function
metaFactory
metaFactory builds the same closure internal/agent injects, so these tests exercise the review wiring rather than a test-only shape.
internal/llmloop/retry_identity_test.go:67
↓ 3 callers
Function
modelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1127
↓ 3 callers
Function
msg
(role, content string)
internal/reviewtask/runtime_test.go:22
↓ 3 callers
Method
must
(t *testing.T, args ...string)
internal/delegate/instructions_test.go:54
↓ 3 callers
Function
mutateObj
Read-modify-write of a nested object field: a missing object is treated as empty, and the whole object is written back after the change. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:60
↓ 3 callers
Function
newDelegateRepo
(t *testing.T)
internal/delegate/instructions_test.go:63
↓ 3 callers
Method
newRequestMeta
newRequestMeta builds the retry-report identity for one logical LLM request. It is the single place provider and model are read for that purpose — th
internal/agent/agent.go:274
↓ 3 callers
Function
newThinkingTestRunner
newThinkingTestRunner builds a Runner wired for a full RunMainTask pass: a scripted LLM client, the code_comment tool, and a comment collector.
internal/reviewtask/loop_execute_more_test.go:40
↓ 3 callers
Function
normalizeComparePath
(p)
scripts/github-actions/post-review-comments.js:1725
↓ 3 callers
Function
normalizeLine
Remove leading diff markers (`+`/`-`) and surrounding whitespace for lenient comparison of existingCode with file content. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:51
↓ 3 callers
Function
normalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:55
↓ 3 callers
Function
normalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:982
↓ 3 callers
Function
officialAPIKeyRequiredError
officialAPIKeyRequiredError mirrors the wording applyOfficialProviderConfig uses for the same failure, so the interactive and non-interactive paths na
cmd/opencodereview/provider_tui.go:944
↓ 3 callers
Function
outcomeLabel
(kind orchestrator.OutcomeKind)
acp/internal/adapter/presentation/progress_format.go:123
↓ 3 callers
Function
outputPreview
outputPreview renders a preview in the requested output format. sarif is rejected with an error because a preview contains file/rule metadata, not rev
cmd/opencodereview/output.go:772
↓ 3 callers
Function
overlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:1393
↓ 3 callers
Function
parseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 3 callers
Function
parseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:10
↓ 3 callers
Function
parseGitignorePatterns
(data []byte)
internal/diff/gitignore_match.go:11
↓ 3 callers
Function
parseLogLine
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:189
↓ 3 callers
Function
parseRecordTime
(s string)
internal/session/list.go:357
↓ 3 callers
Function
parseScalar
(raw)
scripts/github-actions/action-contract.test.js:30
↓ 3 callers
Function
parseToolArgs
parseToolArgs unmarshals a tool call's raw JSON arguments, always returning a non-nil map on success: some OpenAI-compatible gateways send "arguments"
internal/reviewtask/tools.go:238
↓ 3 callers
Method
passThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1485
↓ 3 callers
Function
pathBatches
(groups [][]string, pathspec func(string) string)
internal/behaviortask/search.go:24
↓ 3 callers
Function
persistedRetryReport
(t *testing.T, repoDir, sessionID string)
internal/agent/retry_report_freeze_test.go:162
↓ 3 callers
Method
planEnabled
planEnabled / dedupEnabled / summaryEnabled report whether each optional phase will actually run: template must define it AND the corresponding --no-*
internal/scan/agent.go:87
↓ 3 callers
Method
planEnabledFor
(it model.ScanItem)
internal/scan/agent.go:91
↓ 3 callers
Function
positionalSignature
positionalSignature extracts the positional-argument part of cmd.Use, e.g. "<key> <value>" from "set <key> <value>" and "<path...>" from "rule [flags]
cmd/opencodereview/arg_errors.go:92
↓ 3 callers
Function
post
(review_input)
examples/gerrit_ci/post_review.py:229
↓ 3 callers
Method
postMessage
(msg: unknown)
extensions/frontend/src/webview/bridge.vsc.ts:7
↓ 3 callers
Method
post_note
(self, body)
examples/gitlab_ci/post_review.py:1101
↓ 3 callers
Method
prepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:545
↓ 3 callers
Method
preview
preview is read-only with respect to the Agent: it does not mutate a.items. (Earlier versions did, which made a subsequent Run on the same Agent silen
internal/scan/preview.go:28
↓ 3 callers
Function
previewFixture
()
cmd/opencodereview/output_color_test.go:106
↓ 3 callers
Function
previewMaxTokens
previewMaxTokens resolves the per-file prompt ceiling the way a real run resolves it, but without building an LLM runtime: resolveMaxTokens needs only
cmd/opencodereview/shared.go:86
↓ 3 callers
Function
printDiffLine
printDiffLine renders a single diff line with colored prefix and background on content. With color disabled it emits "<prefix> <content>", which keeps
cmd/opencodereview/output.go:208
↓ 3 callers
Function
printWizardCancelled
printWizardCancelled prints the standard Esc-cancel message for config wizards. changesDescription is a short noun phrase, e.g. "Configuration changes
cmd/opencodereview/provider_cmd.go:61
↓ 3 callers
Function
pushValue
(args: string[], flag: string, value: string | number | undefined)
plugins/open-code-review/opencode/open-code-review.ts:95
↓ 3 callers
Function
rawFor
(slug: DocSlug, loaded: LoadedDocContent)
pages/src/content/docs/index.ts:106
↓ 3 callers
Function
readFileOrNull
(abs, { maxBytes = MAX_SCAN_BYTES } = {})
scripts/github-actions/check-plugin-contract.js:749
↓ 3 callers
Function
readPage
(content string, cursor, maxBytes int)
internal/behaviortask/observation.go:178
↓ 3 callers
Function
readSessionRecords
(source io.Reader, path string, apply func(summaryRecord))
internal/session/list.go:227
↓ 3 callers
Function
readWorkspaceFileForDiffWithLimit
(repoDir, relPath string, maxSize int64)
internal/diff/workspace_file.go:23
↓ 3 callers
Method
recordWarning
(warningType, file, message string)
internal/scan/agent.go:250
↓ 3 callers
Function
recordedRepoDir
recordedRepoDir returns the working directory a session recorded, and whether it had one.
internal/session/delete.go:125
↓ 3 callers
Function
registryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:455
↓ 3 callers
Function
reloadAfterChunkError
()
pages/src/components/ErrorBoundary.tsx:34
↓ 3 callers
Method
render
()
pages/src/components/ErrorBoundary.tsx:69
↓ 3 callers
Function
renderKotlin
(providers []llm.Provider)
internal/llm/gen/kotlin.go:36
↓ 3 callers
Function
renderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2146
↓ 3 callers
Function
repairSerializedComments
repairSerializedComments escapes what makes a model-serialized `comments` string invalid JSON — prose quotes, bare control characters, illegal backsla
internal/tool/comment_args_repair.go:98
↓ 3 callers
Function
repairedCommentsAcceptable
repairedCommentsAcceptable reports whether a repaired batch still carries every comment the original text described. Parsing again is not enough on it
internal/tool/comment_args_repair.go:188
↓ 3 callers
Function
replayStreamedToolCall
replayStreamedToolCall runs one streamed completion against a fixture server and returns the assistant history message rebuilt for the next request.
internal/llm/tool_call_extra_content_test.go:65
← previous
next →
1,201–1,300 of 7,599, ranked by callers