MCPcopy Create free account

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

Functions3,737 in github.com/alibaba/open-code-review

↓ 2 callersFunctionregisterScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:185
↓ 2 callersFunctionremoveModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:86
↓ 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:1057
↓ 2 callersFunctionrenderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:1990
↓ 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:336
↓ 2 callersMethodresetCustomModelInput
()
cmd/opencodereview/provider_tui.go:2887
↓ 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:172
↓ 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:85
↓ 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:1368
↓ 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 callersFunctionresultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:7
↓ 2 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/scan/agent.go:290
↓ 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:262
↓ 2 callersFunctionruleGroupsJSON
(groups []delegate.RuleGroup)
cmd/opencodereview/delegate_cmd.go:309
↓ 2 callersFunctionrunConfigModel
()
cmd/opencodereview/provider_cmd.go:292
↓ 2 callersFunctionrunConfigProvider
()
cmd/opencodereview/provider_cmd.go:17
↓ 2 callersFunctionrunLLMProviders
()
cmd/opencodereview/llm_cmd.go:121
↓ 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:205
↓ 2 callersMethodruntimeConfigSHA256
runtimeConfigSHA256 is the deterministic identity of the allowlisted, non-secret runtime settings: protocol, model, sanitized endpoint host, language,
internal/agent/agent.go:885
↓ 2 callersFunctionsafeFence
(content)
scripts/github-actions/post-review-comments.js:1625
↓ 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:224
↓ 2 callersFunctionsanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:1362
↓ 2 callersFunctionsanitize_metadata
Strip C0/C1 control characters from a metadata value.
examples/gitlab_ci/post_review.py:137
↓ 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:2371
↓ 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:699
↓ 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:691
↓ 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:152
↓ 2 callersFunctionshellRCFiles
()
internal/llm/resolver.go:544
↓ 2 callersFunctionshortSessionID
(id string)
cmd/opencodereview/session_cmd.go:397
↓ 2 callersFunctionshowToast
(message: string)
pages/src/components/HeroSection.tsx:133
↓ 2 callersFunctionsortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:740
↓ 2 callersMethodsourceArtifactSHA256
sourceArtifactSHA256 is the deterministic content identity of this run's selected input: for every non-deleted diff (the same set registerCoverage sea
internal/agent/agent.go:827
↓ 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:242
↓ 2 callersFunctionstaticFS
()
internal/viewer/server.go:237
↓ 2 callersFunctionstatusBadge
(status string)
cmd/opencodereview/output.go:542
↓ 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:186
↓ 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:568
↓ 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:113
↓ 2 callersFunctionterminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:168
↓ 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:515
↓ 2 callersFunctiontryShellRC
tryShellRC parses ~/.zshrc and ~/.bashrc for ANTHROPIC_* exports.
internal/llm/resolver.go:533
↓ 2 callersFunctiontypeName
(v any)
internal/llm/client_test.go:1364
↓ 2 callersFunctionunsetActiveProvider
(configPath string)
cmd/opencodereview/config_cmd.go:183
↓ 2 callersFunctionunsetMaxTokens
(configPath string)
cmd/opencodereview/config_cmd.go:168
↓ 2 callersMethodupdateCustomModelInput
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:734
↓ 2 callersMethodupdateDeleteConfirm
(key string)
cmd/opencodereview/provider_tui.go:1417
↓ 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
↓ 2 callersFunctionvalidateAudience
(audience string)
cmd/opencodereview/shared_flags.go:96
↓ 2 callersFunctionvalidateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:157
↓ 2 callersFunctionvalidateDiffMode
--- Validation functions ---
cmd/opencodereview/shared_flags.go:76
↓ 2 callersFunctionvalidateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:105
↓ 2 callersFunctionvalidateScanOptions
(opts *scanOptions)
cmd/opencodereview/shared_flags.go:135
↓ 2 callersFunctionwarningsForOutput
warningsForOutput removes coverage-level subtask diagnostics once a manifest is present. Their classification and safe summary already live in the fro
cmd/opencodereview/output.go:44
↓ 2 callersFunctionwithTemporaryDirectory
(callback)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:24
↓ 2 callersFunctionwrapByRunes
wrapByRunes splits text into lines that fit within maxWidth **rune** columns. Respects existing newlines and wraps at word boundaries.
cmd/opencodereview/output.go:174
↓ 2 callersFunctionwrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:186
↓ 2 callersFunctionwrap_summary_body
Prefix the summary body with both the cross-run marker and the per-run tag. Sticky mode finds the note by SUMMARY_MARKER (cross-run reuse); non-s
examples/gitlab_ci/post_review.py:75
↓ 2 callersFunctionwriteDelegateJSON
(value any)
cmd/opencodereview/delegate_cmd.go:325
↓ 1 callersMethodApplyLanguage
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:196
↓ 1 callersMethodBudgetExceeded
BudgetExceeded always returns false for scan. Scan self-limits via its own token budget gate and MaxToolRequestTimes; the typed budget_exceeded status
internal/scan/agent.go:229
↓ 1 callersMethodCanonicalConfig
CanonicalConfig returns a deterministic, order-stable field list describing this rule set's effective rule-text configuration, for hashing into the ru
internal/config/rules/system_rules.go:148
↓ 1 callersMethodCompletionTokenLimit
CompletionTokenLimit is the scan-template counterpart of Template's method.
internal/config/template/template.go:62
↓ 1 callersFunctionExcludedDirs
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:9
↓ 1 callersMethodExecute
(ctx context.Context, args map[string]any)
internal/mcp/provider.go:26
↓ 1 callersMethodExecute
(_ context.Context, args map[string]any)
internal/tool/code_comment.go:56
↓ 1 callersMethodFilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:195
↓ 1 callersFunctionIsAllowedExt
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:77
↓ 1 callersMethodIsCommitMode
IsCommitMode returns true when analyzing a single commit.
internal/diff/git.go:160
↓ 1 callersFunctionIsExcludedPath
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:91
← previousnext →901–1,000 of 3,737, ranked by callers