Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,128 in github.com/alibaba/open-code-review
⨍
Functions
7,128
◇
Types & classes
771
↓ 3 callers
Function
emitError
(file, message, line)
scripts/github-actions/check-plugin-contract.js:741
↓ 3 callers
Function
emptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:19
↓ 3 callers
Function
envFunc
(values map[string]string)
acp/internal/intent/llm/resolve_test.go:11
↓ 3 callers
Function
executeDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:235
↓ 3 callers
Function
extractHeadingInfo
(markdown: string)
pages/src/utils/headingId.ts:80
↓ 3 callers
Method
failAll
failAll makes every file in the fixture fail permanently. Tests that mean "the whole review failed" use this rather than naming files, so they keep me
cmd/opencodereview/retry_fake_llm_test.go:72
↓ 3 callers
Function
fakeProbe
(map)
scripts/github-actions/check-plugin-contract.test.js:193
↓ 3 callers
Function
findLinesByExistingCode
Find [existingCode] in file content with a sliding window; return 1-based line numbers, or null when no match exists. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:69
↓ 3 callers
Function
findTestToolCall
findTestToolCall returns the model's call to the self-test tool, ignoring any other tool it asked for. An empty name belongs to a task that offers no
cmd/opencodereview/llm_cmd.go:201
↓ 3 callers
Function
finish
()
scripts/github-actions/action-contract.test.js:75
↓ 3 callers
Method
focusCPStep
()
cmd/opencodereview/provider_tui.go:1461
↓ 3 callers
Method
forShell
* Adds a shell prefix for a command (Windows: cmd.exe /c). Only for fixed-argument commands (--version and * the like); commands that carry user
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:98
↓ 3 callers
Function
formatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:2390
↓ 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
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:2128
↓ 3 callers
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1153
↓ 3 callers
Method
handleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1739
↓ 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:77
↓ 3 callers
Function
hasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:37
↓ 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:586
↓ 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
Method
isCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2898
↓ 3 callers
Method
isCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:623
↓ 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
Method
isPathExcluded
isPathExcluded returns true when the given relative file path should be skipped based on hardcoded dir rules or .gitignore patterns. Patterns are res
internal/diff/git.go:302
↓ 3 callers
Function
isUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:442
↓ 3 callers
Method
itemCount
()
cmd/opencodereview/provider_tui.go:2902
↓ 3 callers
Function
itemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:137
↓ 3 callers
Function
killUnixProcessGroup
(pid int, kill func(int, syscall.Signal) error)
acp/internal/orchestrator/process/process_unix.go:45
↓ 3 callers
Function
listAllTools
listAllTools returns every tool the server publishes. tools/list is a paginated method: a result carries at most one page plus a nextCursor, and a cli
internal/mcp/client.go:143
↓ 3 callers
Function
listBotReviewThreads
({ github, owner, repo, prNumber, log, warn })
scripts/github-actions/post-review-comments.js:1542
↓ 3 callers
Function
listCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2114
↓ 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
loadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:277
↓ 3 callers
Function
loadObjCRule
loadObjCRule reads the embedded Objective-C rule doc used by the ".m" content sniff.
internal/config/rules/system_rules.go:119
↓ 3 callers
Function
loadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:262
↓ 3 callers
Function
loadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:188
↓ 3 callers
Function
lookupPreset
(name: string)
extensions/frontend/src/shared/providers.ts:22
↓ 3 callers
Function
main
()
scripts/github-actions/action-contract.test.js:2143
↓ 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:977
↓ 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:1131
↓ 3 callers
Method
mapAnthropicResponse
mapAnthropicResponse converts the SDK response into ChatResponse.
internal/llm/client.go:1716
↓ 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:142
↓ 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
Function
newMux
newMux builds the viewer's routing table against a sessions root. The viewer is read-only: the document routes are registered with GET-only patterns (
internal/viewer/server.go:113
↓ 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:267
↓ 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:1744
↓ 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:964
↓ 3 callers
Method
notify
(ctx context.Context, id acp.SessionId, update acp.SessionUpdate)
acp/internal/adapter/agent.go:63
↓ 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:945
↓ 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:740
↓ 3 callers
Function
overlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:1412
↓ 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
parseLogLine
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:189
↓ 3 callers
Function
parseRecordTime
(s string)
internal/session/list.go:341
↓ 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:1475
↓ 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
prepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:546
↓ 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:85
↓ 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:194
↓ 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
readFileOrNull
(abs, { maxBytes = MAX_SCAN_BYTES } = {})
scripts/github-actions/check-plugin-contract.js:749
↓ 3 callers
Function
readJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:222
↓ 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:97
↓ 3 callers
Function
registryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:456
↓ 3 callers
Method
render
()
pages/src/components/ErrorBoundary.tsx:59
↓ 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:2131
← previous
next →
1,101–1,200 of 7,128, ranked by callers