Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
2,775 in github.com/alibaba/open-code-review
⨍
Functions
2,775
◇
Types & classes
260
↓ 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:169
↓ 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:82
↓ 2 callers
Function
resolveLang
(lang string)
internal/config/testconnection/testconnection.go:39
↓ 2 callers
Function
resolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:98
↓ 2 callers
Method
resolveSystemRule
resolveSystemRule returns the rule text for a given file path, matching against PathRuleMap glob patterns, falling back to DefaultRule.
internal/agent/agent.go:778
↓ 2 callers
Function
resolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:680
↓ 2 callers
Function
resolveWorkingDirForSession
resolveWorkingDirForSession accepts an explicit --repo flag value and falls back to the current working directory. Unlike resolveRepoDir it does not r
cmd/opencodereview/session_cmd.go:123
↓ 2 callers
Method
resolveWorkspacePath
(path string)
internal/tool/filereader.go:91
↓ 2 callers
Function
resultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:4
↓ 2 callers
Method
reviewMode
()
internal/agent/agent.go:502
↓ 2 callers
Function
reviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:183
↓ 2 callers
Method
rollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:451
↓ 2 callers
Method
run
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:21
↓ 2 callers
Function
runLLMProviders
()
cmd/opencodereview/llm_cmd.go:99
↓ 2 callers
Function
runSession
(args []string)
cmd/opencodereview/session_cmd.go:15
↓ 2 callers
Function
runViewer
(args []string)
cmd/opencodereview/viewer_cmd.go:28
↓ 2 callers
Function
runeWrapCut
runeWrapCut returns a rune index suitable for breaking the line at ~maxW display width.
cmd/opencodereview/output.go:171
↓ 2 callers
Function
safeFence
(content)
scripts/github-actions/post-review-comments.js:1153
↓ 2 callers
Function
sameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:706
↓ 2 callers
Function
savedSecretFingerprint
savedSecretFingerprint returns a short fingerprint for display, e.g. "sk-a1b2...wxyz" (first 6 + "..." + last 4). Returns "" when the trimmed secret i
cmd/opencodereview/provider_tui.go:2361
↓ 2 callers
Method
selectRepo
* 选出与 workspace 匹配的仓库。嵌套仓库场景下 repositories 顺序不稳定, * 不能直接取 [0],否则会漂移到子仓库。
extensions/vscode/src/extension/services/GitService.ts:35
↓ 2 callers
Function
setCustomProviderField
(cfg *Config, name, field, key, value string)
cmd/opencodereview/config_cmd.go:546
↓ 2 callers
Function
setCustomProviderField
(cfg: RawConfig, name: string, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:56
↓ 2 callers
Function
severityColor
severityColor maps a finding severity to an ANSI color used for its badge. Unknown or empty severities fall back to dim.
cmd/opencodereview/output.go:118
↓ 2 callers
Function
showToast
(message: string)
pages/src/components/HeroSection.tsx:127
↓ 2 callers
Function
splitAndNormalize
(code: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:58
↓ 2 callers
Function
splitList
(raw)
scripts/github-actions/check-translation-sync.js:211
↓ 2 callers
Function
splitToLines
(s string)
cmd/opencodereview/output.go:208
↓ 2 callers
Function
staticFS
()
internal/viewer/server.go:161
↓ 2 callers
Function
statusBadge
(status string)
cmd/opencodereview/output.go:380
↓ 2 callers
Function
stripFrontmatter
(md: string)
pages/src/content/blog/index.ts:42
↓ 2 callers
Function
stripFrontmatter
* Strip YAML frontmatter from markdown content
pages/src/content/docs/index.ts:141
↓ 2 callers
Function
stripMarkdownFences
stripMarkdownFences is the package-private workhorse used by the internal compression code paths.
internal/llmloop/compression.go:163
↓ 2 callers
Function
stripModelSuffix
(model string)
internal/llm/resolver.go:509
↓ 2 callers
Method
submit
(f func() ([]model.LlmComment, error), kwg *sync.WaitGroup)
internal/llmloop/pool.go:87
↓ 2 callers
Function
summarizeArgs
summarizeArgs extracts a concise key=value summary from tool arguments for console display. It picks the most human-readable fields depending on the a
internal/telemetry/events.go:110
↓ 2 callers
Function
terminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:149
↓ 2 callers
Function
toHtmlLang
(locale: SupportedLocale)
extensions/vscode/src/shared/i18n.ts:336
↓ 2 callers
Function
truncate
(s string, n int)
cmd/opencodereview/session_cmd.go:253
↓ 2 callers
Function
truncate_message
(msg)
examples/gerrit_ci/post_review.py:88
↓ 2 callers
Function
typeName
(v any)
internal/llm/client_test.go:1158
↓ 2 callers
Function
walkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:177
↓ 2 callers
Function
withTemporaryDirectory
(callback)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:21
↓ 2 callers
Function
wrapByRunes
wrapByRunes splits text into lines that fit within maxWidth **rune** columns. Respects existing newlines and wraps at word boundaries.
cmd/opencodereview/output.go:140
↓ 2 callers
Function
wrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:152
↓ 1 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of the scan template (MAIN_TASK, PLAN_TASK if set, DEDUP_TASK if set, and MEM
internal/config/template/template.go:173
↓ 1 callers
Method
CollectPendingComments
CollectPendingComments awaits any async comment-processing workers and returns the aggregated comments from the collector. Safe to call once per sessi
internal/llmloop/loop.go:136
↓ 1 callers
Method
DurationVar
(p *time.Duration, name string, value time.Duration, usage string)
cmd/opencodereview/flags.go:57
↓ 1 callers
Function
ExcludedDirs
ExcludedDirs is the list of directory prefixes that scanners and diff providers should always skip. Exposed so internal/scan and other consumers can r
internal/diff/gitignore.go:6
↓ 1 callers
Method
Execute
(ctx context.Context, args map[string]any)
internal/mcp/provider.go:23
↓ 1 callers
Method
Execute
(_ context.Context, args map[string]any)
internal/tool/code_comment.go:53
↓ 1 callers
Method
FilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:166
↓ 1 callers
Function
IsAllowedExt
IsAllowedExt returns true when the given file extension is in the supported types list. The check is case-insensitive.
internal/config/allowlist/allowed_ext.go:74
↓ 1 callers
Method
IsCommitMode
IsCommitMode returns true when analyzing a single commit.
internal/diff/git.go:96
↓ 1 callers
Function
IsExcludedPath
IsExcludedPath returns true when the given file path matches any default exclude pattern. Patterns support ** (recursive directory matching), * (singl
internal/config/allowlist/allowed_ext.go:88
↓ 1 callers
Method
IsRangeMode
IsRangeMode returns true when comparing two refs.
internal/diff/git.go:91
↓ 1 callers
Function
LoadSummary
LoadSummary loads a single session's Summary. Errors when the session file is missing or unreadable.
internal/session/list.go:123
↓ 1 callers
Function
MatchGitignorePattern
MatchGitignorePattern reports whether relPath matches a single gitignore-style pattern, using the simplified semantics that diff.Provider already impl
internal/diff/gitignore.go:31
↓ 1 callers
Function
NewBuiltin
(t Tool, fn func(ctx context.Context, args map[string]any) (string, error))
internal/tool/stub.go:25
↓ 1 callers
Function
OpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:272
↓ 1 callers
Method
PrintDefaults
()
cmd/opencodereview/flags.go:61
↓ 1 callers
Method
Session
Session returns the session history associated with this Agent.
internal/scan/agent.go:155
↓ 1 callers
Method
Session
Session returns the session history associated with this Agent.
internal/agent/agent.go:239
↓ 1 callers
Method
SessionID
SessionID returns the current scan's session id, or "" when no session has been created.
internal/scan/agent.go:158
↓ 1 callers
Function
SessionsDir
SessionsDir returns the on-disk directory that holds JSONL session files for a given repository. It does not create the directory.
internal/session/list.go:79
↓ 1 callers
Function
StartServer
(addr string)
internal/viewer/server.go:17
↓ 1 callers
Method
Tool
()
internal/mcp/provider.go:19
↓ 1 callers
Method
Tool
()
internal/tool/code_comment.go:51
↓ 1 callers
Method
ToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:100
↓ 1 callers
Method
TotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:69
↓ 1 callers
Method
TotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:72
↓ 1 callers
Method
TotalTokensUsed
TotalTokensUsed returns input + output.
internal/llmloop/loop.go:75
↓ 1 callers
Method
Validate
Validate checks that a ScanTemplate has the minimum fields populated.
internal/config/template/template.go:202
↓ 1 callers
Method
Warnings
Warnings returns the warnings recorded by the LLM runner.
internal/scan/agent.go:189
↓ 1 callers
Method
Warnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:80
↓ 1 callers
Method
WriteLLMError
WriteLLMError writes an llm_error entry recording a failed LLM request.
internal/session/persist.go:268
↓ 1 callers
Method
WriteLLMRequest
WriteLLMRequest writes a request entry with the resolved messages.
internal/session/persist.go:216
↓ 1 callers
Method
WriteLLMResponse
WriteLLMResponse writes a response entry with model, content, tool calls, usage.
internal/session/persist.go:238
↓ 1 callers
Method
WriteReviewItemDone
WriteReviewItemDone writes a file-level resume checkpoint for a completed diff.
internal/session/persist.go:167
↓ 1 callers
Method
WriteReviewItemFailed
WriteReviewItemFailed writes a file-level checkpoint for a failed diff.
internal/session/persist.go:177
↓ 1 callers
Method
WriteReviewItemReused
WriteReviewItemReused writes a checkpoint reused from a previous session.
internal/session/persist.go:172
↓ 1 callers
Method
WriteSessionEnd
WriteSessionEnd writes the final session_end summary record and closes the file.
internal/session/persist.go:316
↓ 1 callers
Method
WriteToolCall
WriteToolCall writes a tool call result entry.
internal/session/persist.go:291
↓ 1 callers
Function
_git
(repo, *args)
examples/gitflic_ci/post_review.py:377
↓ 1 callers
Function
_old_line_in_hunk
Walk a hunk's lines tracking both counters until reaching new_line.
examples/gitflic_ci/post_review.py:192
↓ 1 callers
Function
acquireLock
()
scripts/update.js:30
↓ 1 callers
Function
add
(c)
scripts/github-actions/post-review-comments.test.js:210
↓ 1 callers
Function
appendChunk
( chunks: Uint8Array[], currentBytes: number, chunk: Uint8Array, maxBytes: number, )
plugins/open-code-review/opencode/open-code-review.ts:99
↓ 1 callers
Method
applyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1119
↓ 1 callers
Method
applyResumeLine
(line []byte)
internal/session/resume.go:105
↓ 1 callers
Function
batchKeyFunc
batchKeyFunc returns the grouping key extractor for a strategy.
internal/scan/batch.go:82
↓ 1 callers
Function
batchPostedComments
()
scripts/github-actions/post-review-comments.test.js:108
↓ 1 callers
Method
bindConfigPanel
(open: (focus?: ConfigPanelFocus) => void)
extensions/vscode/src/extension/providers/SidebarProvider.ts:28
↓ 1 callers
Method
buildAnchorDeps
(root: string, ctx: ReviewContext)
extensions/vscode/src/extension/providers/CommentProvider.ts:97
↓ 1 callers
Method
buildCommentDiffUris
构造评论挂载用的 diff 两侧 URI 与挂载 ref。
extensions/vscode/src/extension/services/GitService.ts:437
↓ 1 callers
Function
buildCreateEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:449
↓ 1 callers
Function
buildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:110
↓ 1 callers
Function
buildCustomUpdateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:136
↓ 1 callers
Function
buildEditEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:459
↓ 1 callers
Function
buildFileFilter
buildFileFilter picks the highest-priority layer that has any include/exclude configured. Priority order: custom (--rule) > project > global.
internal/config/rules/system_rules.go:293
← previous
next →
701–800 of 2,775, ranked by callers