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
Function
registerScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:185
↓ 2 callers
Function
removeModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:86
↓ 2 callers
Method
renderBody
( c: ReviewComment, _index: number, _status: CommentStatus, locateNote?: string, )
extensions/vscode/src/extension/providers/CommentProvider.ts:124
↓ 2 callers
Method
renderMessages
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 callers
Function
renderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:1990
↓ 2 callers
Method
repoRootFast
通过 git rev-parse 解析仓库根,避免等待 VS Code Git 扩展初始化。
extensions/vscode/src/extension/services/GitService.ts:172
↓ 2 callers
Function
requireExec
(t *testing.T)
internal/mcp/stdio_test.go:114
↓ 2 callers
Function
requireGitRepo
requireGitRepo validates that the given directory is part of a git repository.
cmd/opencodereview/review_cmd.go:336
↓ 2 callers
Method
resetCustomModelInput
()
cmd/opencodereview/provider_tui.go:2887
↓ 2 callers
Function
resolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:726
↓ 2 callers
Function
resolveConversation
(m manifestConversation)
internal/config/template/template.go:95
↓ 2 callers
Method
resolveDiffSide
( api: any, root: string, relPath: string, ref: string | null, status: FileChange['status'
extensions/vscode/src/extension/services/GitService.ts:333
↓ 2 callers
Function
resolveEnv
resolveEnv reads environment variables to override defaults. Environment takes highest priority.
internal/telemetry/config.go:45
↓ 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:172
↓ 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:85
↓ 2 callers
Function
resolveLang
(lang string)
internal/config/testconnection/testconnection.go:42
↓ 2 callers
Function
resolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:101
↓ 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:1368
↓ 2 callers
Function
resolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:1011
↓ 2 callers
Method
resolveWorkspacePath
(path string)
internal/tool/filereader.go:94
↓ 2 callers
Function
resolve_threshold
(threshold)
examples/gitlab_ci/post_review.py:396
↓ 2 callers
Method
resolver
resolver returns the rules Resolver, asserting DetailResolver if available.
cmd/opencodereview/delegate_cmd.go:162
↓ 2 callers
Function
resultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:7
↓ 2 callers
Function
resumedFromSession
(resume *session.ResumeState)
internal/scan/agent.go:290
↓ 2 callers
Method
reviewMode
reviewMode returns the string mode identifier.
cmd/opencodereview/delegate_cmd.go:150
↓ 2 callers
Function
reviewResultError
(runErr error, manifest *session.RunManifest)
cmd/opencodereview/review_cmd.go:262
↓ 2 callers
Function
ruleGroupsJSON
(groups []delegate.RuleGroup)
cmd/opencodereview/delegate_cmd.go:309
↓ 2 callers
Function
runConfigModel
()
cmd/opencodereview/provider_cmd.go:292
↓ 2 callers
Function
runConfigProvider
()
cmd/opencodereview/provider_cmd.go:17
↓ 2 callers
Function
runLLMProviders
()
cmd/opencodereview/llm_cmd.go:121
↓ 2 callers
Function
runRulesCheck
(filePath string)
cmd/opencodereview/rules_cmd.go:45
↓ 2 callers
Function
runSessionComments
(sessionID string)
cmd/opencodereview/session_cmd.go:172
↓ 2 callers
Function
runeWrapCut
runeWrapCut returns a rune index suitable for breaking the line at ~maxW display width.
cmd/opencodereview/output.go:205
↓ 2 callers
Method
runtimeConfigSHA256
runtimeConfigSHA256 is the deterministic identity of the allowlisted, non-secret runtime settings: protocol, model, sanitized endpoint host, language,
internal/agent/agent.go:885
↓ 2 callers
Function
safeFence
(content)
scripts/github-actions/post-review-comments.js:1625
↓ 2 callers
Function
sameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1037
↓ 2 callers
Function
sanitizeEndpointHost
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 callers
Function
sanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:1362
↓ 2 callers
Function
sanitize_metadata
Strip C0/C1 control characters from a metadata value.
examples/gitlab_ci/post_review.py:137
↓ 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:2371
↓ 2 callers
Function
scanTaskDoneResponse
()
internal/scan/coverage_test.go:838
↓ 2 callers
Method
selectRepo
* 选出与 workspace 匹配的仓库。嵌套仓库场景下 repositories 顺序不稳定, * 不能直接取 [0],否则会漂移到子仓库。
extensions/vscode/src/extension/services/GitService.ts:38
↓ 2 callers
Function
setCustomProviderField
(cfg *Config, name, field, key, value string)
cmd/opencodereview/config_cmd.go:699
↓ 2 callers
Function
setCustomProviderField
(cfg: RawConfig, name: string, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:59
↓ 2 callers
Function
setCustomProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:691
↓ 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:152
↓ 2 callers
Function
shellRCFiles
()
internal/llm/resolver.go:544
↓ 2 callers
Function
shortSessionID
(id string)
cmd/opencodereview/session_cmd.go:397
↓ 2 callers
Function
showToast
(message: string)
pages/src/components/HeroSection.tsx:133
↓ 2 callers
Function
sortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:740
↓ 2 callers
Method
sourceArtifactSHA256
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 callers
Function
splitAndNormalize
(code: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:61
↓ 2 callers
Function
splitList
(raw)
scripts/github-actions/check-translation-sync.js:214
↓ 2 callers
Function
splitToLines
(s string)
cmd/opencodereview/output.go:242
↓ 2 callers
Function
staticFS
()
internal/viewer/server.go:237
↓ 2 callers
Function
statusBadge
(status string)
cmd/opencodereview/output.go:542
↓ 2 callers
Function
stripFrontmatter
(md: string)
pages/src/content/blog/index.ts:52
↓ 2 callers
Function
stripFrontmatter
* Strip YAML frontmatter from markdown content
pages/src/content/docs/index.ts:186
↓ 2 callers
Function
stripMarkdownFences
stripMarkdownFences is the package-private workhorse used by the internal compression code paths.
internal/llmloop/compression.go:166
↓ 2 callers
Function
stripModelSuffix
(model string)
internal/llm/resolver.go:568
↓ 2 callers
Method
submit
(f func() ([]model.LlmComment, error), kwg *sync.WaitGroup)
internal/llmloop/pool.go:89
↓ 2 callers
Function
suggestFlag
(cmd *cobra.Command, unknown string)
cmd/opencodereview/flag_suggest.go:34
↓ 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:113
↓ 2 callers
Function
terminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:168
↓ 2 callers
Function
toHtmlLang
(locale: SupportedLocale)
extensions/vscode/src/shared/i18n.ts:339
↓ 2 callers
Function
truncate_message
(msg)
examples/gerrit_ci/post_review.py:88
↓ 2 callers
Function
tryCCEnv
tryCCEnv reads Claude Code environment variables.
internal/llm/resolver.go:515
↓ 2 callers
Function
tryShellRC
tryShellRC parses ~/.zshrc and ~/.bashrc for ANTHROPIC_* exports.
internal/llm/resolver.go:533
↓ 2 callers
Function
typeName
(v any)
internal/llm/client_test.go:1364
↓ 2 callers
Function
unsetActiveProvider
(configPath string)
cmd/opencodereview/config_cmd.go:183
↓ 2 callers
Function
unsetMaxTokens
(configPath string)
cmd/opencodereview/config_cmd.go:168
↓ 2 callers
Method
updateCustomModelInput
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:734
↓ 2 callers
Method
updateDeleteConfirm
(key string)
cmd/opencodereview/provider_tui.go:1417
↓ 2 callers
Method
update_note
(self, note_id, body)
examples/gitlab_ci/post_review.py:872
↓ 2 callers
Function
useCommandSearch
( runSearch: (query: string, language: string) => SearchResult<S>[], language: string, )
pages/src/hooks/useCommandSearch.ts:13
↓ 2 callers
Function
useCopyToast
(duration = 1200)
pages/src/hooks/useCopyToast.ts:6
↓ 2 callers
Function
useSearchKeyboardNav
( searchResults: readonly SearchResult<S>[], searchSelectedIdx: number, setSearchSelectedIdx: Dispatch<S
pages/src/hooks/useCommandSearch.ts:71
↓ 2 callers
Function
useTransitionedLocation
()
pages/src/hooks/useTransitionedLocation.ts:17
↓ 2 callers
Function
validateAudience
(audience string)
cmd/opencodereview/shared_flags.go:96
↓ 2 callers
Function
validateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:157
↓ 2 callers
Function
validateDiffMode
--- Validation functions ---
cmd/opencodereview/shared_flags.go:76
↓ 2 callers
Function
validateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:105
↓ 2 callers
Function
validateScanOptions
(opts *scanOptions)
cmd/opencodereview/shared_flags.go:135
↓ 2 callers
Function
warningsForOutput
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 callers
Function
withTemporaryDirectory
(callback)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:24
↓ 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:174
↓ 2 callers
Function
wrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:186
↓ 2 callers
Function
wrap_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 callers
Function
writeDelegateJSON
(value any)
cmd/opencodereview/delegate_cmd.go:325
↓ 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:196
↓ 1 callers
Method
BudgetExceeded
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 callers
Method
CanonicalConfig
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 callers
Method
CompletionTokenLimit
CompletionTokenLimit is the scan-template counterpart of Template's method.
internal/config/template/template.go:62
↓ 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:9
↓ 1 callers
Method
Execute
(ctx context.Context, args map[string]any)
internal/mcp/provider.go:26
↓ 1 callers
Method
Execute
(_ context.Context, args map[string]any)
internal/tool/code_comment.go:56
↓ 1 callers
Method
FilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:195
↓ 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:77
↓ 1 callers
Method
IsCommitMode
IsCommitMode returns true when analyzing a single commit.
internal/diff/git.go:160
↓ 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:91
← previous
next →
901–1,000 of 3,737, ranked by callers