MCPcopy Create free account

hub / github.com/alibaba/open-code-review / functions

Functions4,171 in github.com/alibaba/open-code-review

↓ 2 callersMethodpost
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:527
↓ 2 callersMethodpost_note
(self, body)
examples/gitlab_ci/post_review.py:862
↓ 2 callersMethodpresentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:352
↓ 2 callersFunctionprintDiffLine
printDiffLine renders a single diff line with colored prefix and background on content.
cmd/opencodereview/output.go:170
↓ 2 callersFunctionprintSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:270
↓ 2 callersMethodprobeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:36
↓ 2 callersFunctionprobePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:125
↓ 2 callersFunctionprojectRoot
(t *testing.T)
internal/release/asset_naming_test.go:25
↓ 2 callersMethodreadRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:30
↓ 2 callersFunctionreadWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:1212
↓ 2 callersMethodrecord
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:7
↓ 2 callersFunctionrecordToItem
(rec summaryRecord)
internal/session/list.go:296
↓ 2 callersMethodrecordToolCall
(name string)
internal/llmloop/loop.go:175
↓ 2 callersMethodrefreshModelSelectionAfterAdd
(name string)
cmd/opencodereview/provider_tui.go:2717
↓ 2 callersMethodrefreshWorkspaceFiles
工作区模式仅刷新变更文件,不等待 VS Code Git 扩展,也不拉分支/提交历史。
extensions/vscode/src/extension/services/GitService.ts:146
↓ 2 callersFunctionregisterReviewFlags
registerReviewFlags registers all review command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:168
↓ 2 callersFunctionregisterScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:186
↓ 2 callersFunctionremoveModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:88
↓ 2 callersMethodrenderBody
( c: ReviewComment, _index: number, _status: CommentStatus, locateNote?: string, )
extensions/vscode/src/extension/providers/CommentProvider.ts:124
↓ 2 callersMethodrenderMessages
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:1076
↓ 2 callersFunctionrenderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:2052
↓ 2 callersMethodrepoRootFast
通过 git rev-parse 解析仓库根,避免等待 VS Code Git 扩展初始化。
extensions/vscode/src/extension/services/GitService.ts:172
↓ 2 callersFunctionrequireExec
(t *testing.T)
internal/mcp/stdio_test.go:114
↓ 2 callersFunctionrequireGitRepo
requireGitRepo validates that the given directory is part of a git repository.
cmd/opencodereview/review_cmd.go:443
↓ 2 callersMethodresetCustomModelInput
()
cmd/opencodereview/provider_tui.go:2982
↓ 2 callersFunctionresolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:726
↓ 2 callersFunctionresolveConversation
(m manifestConversation)
internal/config/template/template.go:95
↓ 2 callersMethodresolveDiffSide
( api: any, root: string, relPath: string, ref: string | null, status: FileChange['status'
extensions/vscode/src/extension/services/GitService.ts:333
↓ 2 callersFunctionresolveEnv
resolveEnv reads environment variables to override defaults. Environment takes highest priority.
internal/telemetry/config.go:45
↓ 2 callersFunctionresolveFromFileContent
resolveFromFileContent scans the new file content line-by-line for consecutive matches of the normalized existing_code.
internal/diff/resolver.go:238
↓ 2 callersFunctionresolveFromHunk
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 callersFunctionresolveLang
(lang string)
internal/config/testconnection/testconnection.go:42
↓ 2 callersFunctionresolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:101
↓ 2 callersMethodresolveSystemRule
resolveSystemRule returns the rule text for a given file path, matching against PathRuleMap glob patterns, falling back to DefaultRule.
internal/agent/agent.go:1591
↓ 2 callersFunctionresolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:1011
↓ 2 callersMethodresolveWorkspacePath
(path string)
internal/tool/filereader.go:94
↓ 2 callersFunctionresolve_threshold
(threshold)
examples/gitlab_ci/post_review.py:396
↓ 2 callersMethodresolver
resolver returns the rules Resolver, asserting DetailResolver if available.
cmd/opencodereview/delegate_cmd.go:162
↓ 2 callersFunctionresponseRequestID
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 callersFunctionresultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:7
↓ 2 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/scan/agent.go:293
↓ 2 callersMethodreviewMode
reviewMode returns the string mode identifier.
cmd/opencodereview/delegate_cmd.go:150
↓ 2 callersFunctionreviewResultError
(runErr error, manifest *session.RunManifest)
cmd/opencodereview/review_cmd.go:307
↓ 2 callersFunctionruleGroupsJSON
(groups []delegate.RuleGroup)
cmd/opencodereview/delegate_cmd.go:309
↓ 2 callersFunctionrunConfigModel
()
cmd/opencodereview/provider_cmd.go:301
↓ 2 callersFunctionrunConfigProvider
()
cmd/opencodereview/provider_cmd.go:19
↓ 2 callersFunctionrunLLMProviders
()
cmd/opencodereview/llm_cmd.go:123
↓ 2 callersFunctionrunPreviewContext
(ctx context.Context, cc *commonContext, opts reviewOptions)
cmd/opencodereview/review_cmd.go:484
↓ 2 callersFunctionrunReview
runReview provides test compatibility for the pre-cobra runReview(args) entry point: parse flags, then execute the review.
cmd/opencodereview/compat_test.go:36
↓ 2 callersFunctionrunRulesCheck
(filePath string)
cmd/opencodereview/rules_cmd.go:45
↓ 2 callersFunctionrunSessionComments
(sessionID string)
cmd/opencodereview/session_cmd.go:172
↓ 2 callersFunctionruneWrapCut
runeWrapCut returns a rune index suitable for breaking the line at ~maxW display width.
cmd/opencodereview/output.go:207
↓ 2 callersMethodruntimeConfigSHA256
runtimeConfigSHA256 is the deterministic identity of the allowlisted, non-secret runtime settings: protocol, model, sanitized endpoint host, language,
internal/agent/agent.go:999
↓ 2 callersFunctionsafeFence
(content)
scripts/github-actions/post-review-comments.js:1692
↓ 2 callersFunctionsameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1037
↓ 2 callersFunctionsanitizeEndpointHost
sanitizeEndpointHost extracts the credential-free host[:port] from a full LLM endpoint URL, dropping scheme, any embedded userinfo, path, query and fr
cmd/opencodereview/shared.go:241
↓ 2 callersFunctionsanitize_metadata
Strip C0/C1 control characters from a metadata value.
examples/gitlab_ci/post_review.py:137
↓ 2 callersFunctionsarifRules
sarifRules returns the 8 built-in category rule definitions. Every result's ruleId must resolve to one of these rules.
cmd/opencodereview/sarif.go:155
↓ 2 callersFunctionsarifSeverityLevel
sarifSeverityLevel maps an OCR severity string to a SARIF result level. critical/high → error, medium → warning, low → note. Empty/unknown falls back
cmd/opencodereview/sarif.go:174
↓ 2 callersFunctionsavedSecretFingerprint
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:2444
↓ 2 callersFunctionscanTaskDoneResponse
()
internal/scan/coverage_test.go:838
↓ 2 callersMethodselectRepo
* 选出与 workspace 匹配的仓库。嵌套仓库场景下 repositories 顺序不稳定, * 不能直接取 [0],否则会漂移到子仓库。
extensions/vscode/src/extension/services/GitService.ts:38
↓ 2 callersFunctionsetCustomProviderField
(cfg *Config, name, field, key, value string)
cmd/opencodereview/config_cmd.go:720
↓ 2 callersFunctionsetCustomProviderField
(cfg: RawConfig, name: string, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:59
↓ 2 callersFunctionsetCustomProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:712
↓ 2 callersFunctionsetShellRCHome
setShellRCHome points os.UserHomeDir at dir. shellRCFiles resolves the home dir through os.UserHomeDir, which reads USERPROFILE on Windows and never f
internal/llm/resolver_shellrc_test.go:16
↓ 2 callersFunctionseverityColor
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:154
↓ 2 callersFunctionshellRCFiles
()
internal/llm/resolver.go:656
↓ 2 callersFunctionshortSessionID
(id string)
cmd/opencodereview/session_cmd.go:419
↓ 2 callersFunctionshouldMaskConfigValue
shouldMaskConfigValue reports whether the echoed value of a config key holds a secret and must be masked. Matching on the normalized suffix covers bot
cmd/opencodereview/config_cmd.go:143
↓ 2 callersFunctionshouldShowUpdateHint
(hintVersion, installedVersion)
scripts/version.js:33
↓ 2 callersFunctionshowToast
(message: string)
pages/src/components/HeroSection.tsx:164
↓ 2 callersFunctionsortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:740
↓ 2 callersFunctionsplitAndNormalize
(code: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:61
↓ 2 callersFunctionsplitList
(raw)
scripts/github-actions/check-translation-sync.js:214
↓ 2 callersFunctionsplitToLines
(s string)
cmd/opencodereview/output.go:244
↓ 2 callersFunctionstaticFS
()
internal/viewer/server.go:312
↓ 2 callersFunctionstatusBadge
(status string)
cmd/opencodereview/output.go:624
↓ 2 callersFunctionstripFrontmatter
(md: string)
pages/src/content/blog/index.ts:52
↓ 2 callersFunctionstripFrontmatter
* Strip YAML frontmatter from markdown content
pages/src/content/docs/index.ts:188
↓ 2 callersFunctionstripMarkdownFences
stripMarkdownFences is the package-private workhorse used by the internal compression code paths.
internal/llmloop/compression.go:166
↓ 2 callersFunctionstripModelSuffix
(model string)
internal/llm/resolver.go:680
↓ 2 callersMethodsubmit
(f func() ([]model.LlmComment, error), kwg *sync.WaitGroup)
internal/llmloop/pool.go:89
↓ 2 callersFunctionsuggestFlag
(cmd *cobra.Command, unknown string)
cmd/opencodereview/flag_suggest.go:34
↓ 2 callersFunctionsummarizeArgs
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:130
↓ 2 callersFunctionterminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:169
↓ 2 callersFunctiontoHtmlLang
(locale: SupportedLocale)
extensions/vscode/src/shared/i18n.ts:339
↓ 2 callersFunctiontruncate_message
(msg)
examples/gerrit_ci/post_review.py:88
↓ 2 callersFunctiontryCCEnv
tryCCEnv reads Claude Code environment variables.
internal/llm/resolver.go:627
↓ 2 callersFunctiontryShellRC
tryShellRC parses ~/.zshrc and ~/.bashrc for ANTHROPIC_* exports.
internal/llm/resolver.go:645
↓ 2 callersFunctiontypeName
(v any)
internal/llm/client_test.go:1739
↓ 2 callersFunctionunsetActiveProvider
(configPath string)
cmd/opencodereview/config_cmd.go:191
↓ 2 callersFunctionunsetMaxTokens
(configPath string)
cmd/opencodereview/config_cmd.go:176
↓ 2 callersMethodupdateCustomModelInput
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:734
↓ 2 callersMethodupdateDeleteConfirm
(key string)
cmd/opencodereview/provider_tui.go:1474
↓ 2 callersMethodupdate_note
(self, note_id, body)
examples/gitlab_ci/post_review.py:872
↓ 2 callersFunctionuseCommandSearch
( runSearch: (query: string, language: string) => SearchResult<S>[], language: string, )
pages/src/hooks/useCommandSearch.ts:13
↓ 2 callersFunctionuseCopyToast
(duration = 1200)
pages/src/hooks/useCopyToast.ts:6
↓ 2 callersFunctionuseSearchKeyboardNav
( searchResults: readonly SearchResult<S>[], searchSelectedIdx: number, setSearchSelectedIdx: Dispatch<S
pages/src/hooks/useCommandSearch.ts:71
↓ 2 callersFunctionuseTransitionedLocation
()
pages/src/hooks/useTransitionedLocation.ts:17
← previousnext →1,001–1,100 of 4,171, ranked by callers