Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,737 in github.com/alibaba/open-code-review
⨍
Functions
3,737
◇
Types & classes
339
↓ 2 callers
Method
getCommitFiles
单次提交:该 commit 相对父提交的改动文件。
extensions/vscode/src/extension/services/GitService.ts:240
↓ 2 callers
Function
getDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:215
↓ 2 callers
Function
getMeter
()
internal/telemetry/metrics.go:28
↓ 2 callers
Function
getRawContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:85
↓ 2 callers
Function
getRawContent
* Get raw content for a slug in the given language, with English fallback.
pages/src/content/docs/index.ts:199
↓ 2 callers
Method
getState
(mode: ReviewMode)
extensions/vscode/src/extension/services/GitService.ts:70
↓ 2 callers
Function
getTracer
()
internal/telemetry/span.go:19
↓ 2 callers
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1051
↓ 2 callers
Method
handleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1599
↓ 2 callers
Method
hasSuggestion
(c: ReviewComment)
extensions/vscode/src/extension/providers/CommentProvider.ts:120
↓ 2 callers
Function
header
(name)
scripts/github-actions/post-review-comments.js:1091
↓ 2 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
↓ 2 callers
Function
hostOnly
hostOnly returns the bare host portion of a Host header value, with any port stripped and surrounding brackets removed from IPv6 literals. Empty or ma
internal/viewer/hostguard.go:20
↓ 2 callers
Function
info
(msg)
scripts/install.js:19
↓ 2 callers
Function
initConsoleProviders
initConsoleProviders sets up stdout exporters for traces and metrics.
internal/telemetry/exporter.go:184
↓ 2 callers
Method
initManifest
initManifest seeds the run manifest with this run's input identity and execution provenance. It is nil-safe (the builder is absent on the delegate pre
internal/agent/agent.go:750
↓ 2 callers
Function
initPreviewRepo
(t *testing.T)
internal/agent/preview_run_test.go:14
↓ 2 callers
Function
initRepoWithNonASCIIChange
initRepoWithNonASCIIChange creates a repository whose changed file path contains both non-ASCII characters and Next.js-style route groups. It forces G
internal/diff/git_test.go:74
↓ 2 callers
Method
initScanFingerprints
(items []model.ScanItem)
internal/scan/agent.go:235
↓ 2 callers
Method
injectDiffMap
injectDiffMap builds a read-only DiffMap from parsed diffs and sets it on the FileReadDiffProvider. Must be called after loadDiffs and before any conc
internal/agent/agent.go:473
↓ 2 callers
Method
injectScanContentMap
injectScanContentMap fills the file_read_diff tool's DiffMap with full file content keyed by path, so if the model calls it the tool returns the whole
internal/scan/agent.go:393
↓ 2 callers
Function
isBinaryFile
isBinaryFile reads up to binarySniffWindow bytes from path and reports whether they contain a NUL byte (git's "binary" heuristic).
internal/scan/provider.go:304
↓ 2 callers
Function
isLineResolutionFailure
(error)
scripts/github-actions/post-review-comments.js:1810
↓ 2 callers
Function
isLoopbackHost
isLoopbackHost reports whether host is a loopback name or IP literal that is always safe to accept regardless of operator configuration.
internal/viewer/hostguard.go:42
↓ 2 callers
Function
isProcessRunning
(pid)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:70
↓ 2 callers
Method
jumpTo
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:201
↓ 2 callers
Function
legacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:199
↓ 2 callers
Function
levenshtein
(a, b string)
cmd/opencodereview/flag_suggest.go:63
↓ 2 callers
Function
lineSpan
(c)
scripts/github-actions/post-review-comments.js:1023
↓ 2 callers
Method
listFiles
listFiles returns all source files under repoDir. In a git repo it uses `git ls-files` for full .gitignore semantics (nested + global excludes + negat
internal/scan/provider.go:154
↓ 2 callers
Method
list_discussions
Return all MR discussions, or None when the read failed.
examples/gitlab_ci/post_review.py:897
↓ 2 callers
Method
list_notes
Return all MR notes, or None when the read failed.
examples/gitlab_ci/post_review.py:882
↓ 2 callers
Method
loadDiffs
loadDiffs populates the diff-related fields.
internal/agent/agent.go:435
↓ 2 callers
Function
loadFile
(t *testing.T, relPath string)
internal/release/asset_naming_test.go:47
↓ 2 callers
Function
loadGlobalRule
()
internal/config/rules/system_rules.go:329
↓ 2 callers
Function
loadPackageJson
()
scripts/install.js:64
↓ 2 callers
Function
loadRuleFile
(path string)
internal/config/rules/system_rules.go:350
↓ 2 callers
Function
loadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:167
↓ 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
Function
makeScanItems
(n int)
internal/scan/budget_test.go:62
↓ 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:780
↓ 2 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:773
↓ 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:916
↓ 2 callers
Method
mapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:574
↓ 2 callers
Function
maskKey
(key string)
cmd/opencodereview/provider_cmd.go:406
↓ 2 callers
Function
matchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:305
↓ 2 callers
Function
matchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:476
↓ 2 callers
Method
mergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:395
↓ 2 callers
Method
mergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:430
↓ 2 callers
Function
mergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:57
↓ 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
newMockResponse
(content string)
internal/diff/relocation_test.go:25
↓ 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
normalizeScanPaths
(paths []string)
internal/session/resume.go:232
↓ 2 callers
Function
officialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2395
↓ 2 callers
Function
officialAPIKeyRequiredError
(p llm.Provider)
cmd/opencodereview/provider_tui.go:910
↓ 2 callers
Function
officialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:906
↓ 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:296
↓ 2 callers
Function
outputJSONNoFiles
(traceID string, llmIdentity *jsonLLMIdentity)
cmd/opencodereview/output.go:405
↓ 2 callers
Function
outputPreview
outputPreview renders a preview in the requested output format. Any format other than "json" falls back to the human view, matching how the rest of th
cmd/opencodereview/output.go:483
↓ 2 callers
Function
outputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:20
↓ 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
parseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:30
↓ 2 callers
Function
parseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:1859
↓ 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:1318
↓ 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:607
↓ 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
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:156
↓ 2 callers
Function
parseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:52
↓ 2 callers
Method
passThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1671
↓ 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:2639
↓ 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:783
↓ 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:352
↓ 2 callers
Function
printDiffLine
printDiffLine renders a single diff line with colored prefix and background on content.
cmd/opencodereview/output.go:168
↓ 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
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:269
↓ 2 callers
Method
recordToolCall
(name string)
internal/llmloop/loop.go:113
↓ 2 callers
Method
refreshModelSelectionAfterAdd
(name string)
cmd/opencodereview/provider_tui.go:2622
↓ 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:168
← previous
next →
801–900 of 3,737, ranked by callers