MCPcopy Create free account

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

Functions7,390 in github.com/alibaba/open-code-review

↓ 4 callersFunctioncaptureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1421
↓ 4 callersFunctioncheckKotlinNames
(data []byte, providers []llm.Provider)
internal/llm/gen/kotlin.go:67
↓ 4 callersFunctionclassifyStreamError
classifyStreamError classifies a failure that surfaced while consuming an already-established SSE stream. Unlike classifyBoundaryError it always retur
internal/llm/retry_boundary.go:80
↓ 4 callersMethodclear
()
internal/chatgptauth/store.go:53
↓ 4 callersMethodclearPending
(st *State)
acp/internal/intent/parser.go:145
↓ 4 callersMethodcloned
cloned returns a copy of the manifest whose coverage slices are owned copies, so every Finalize caller gets an independent, non-aliased snapshot. The
internal/session/manifest.go:941
↓ 4 callersFunctioncmt
cmt builds a finding compactly: path, start line, category, snippet, content.
internal/session/compare_test.go:15
↓ 4 callersFunctioncmt
(path, content string)
internal/scan/dedup_test.go:13
↓ 4 callersFunctioncodeCommentResponse
(reasoning, content string)
internal/reviewtask/loop_execute_more_test.go:61
↓ 4 callersFunctioncolorOn
colorOn reports whether ANSI color should be emitted.
cmd/opencodereview/color.go:79
↓ 4 callersFunctioncolorize
colorize wraps s in seq and a reset, or returns s untouched when color is off. Every escape sequence in the text output path is gated through here or
cmd/opencodereview/color.go:84
↓ 4 callersFunctioncommandChatGPTAccount
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:22
↓ 4 callersFunctioncommandNeedsGit
(cmd *cobra.Command)
cmd/opencodereview/root.go:69
↓ 4 callersFunctioncommitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 4 callersFunctioncomparisonArgs
(name string)
internal/tool/code_access_test.go:59
↓ 4 callersFunctioncomparisonProviders
(current *FileReader, access *CodeAccess)
internal/tool/code_access_test.go:49
↓ 4 callersFunctioncomparisonReaders
(test *testing.T)
internal/tool/code_access_test.go:28
↓ 4 callersFunctioncompleteSessionIDs
(cmd *cobra.Command, args []string, toComplete string)
cmd/opencodereview/session_cmd.go:177
↓ 4 callersFunctioncomputeRetryDelayMs
(error, attempt)
scripts/github-actions/post-review-comments.js:1929
↓ 4 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:814
↓ 4 callersMethodconfirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:3019
↓ 4 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:3057
↓ 4 callersFunctioncontentHash
(content string)
internal/behaviortask/observation.go:74
↓ 4 callersMethodcss
Converts to a CSS color; translucent colors are emitted as rgba(). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/IdeaTheme.kt:134
↓ 4 callersMethodcustomProviderActiveModel
(cp customProviderListItem)
cmd/opencodereview/provider_tui.go:234
↓ 4 callersMethoddedupEnabled
()
internal/scan/agent.go:99
↓ 4 callersFunctiondefaultAuthHeader
(protocol string)
internal/llm/resolver.go:844
↓ 4 callersFunctiondescribeTimeout
(ctx context.Context, err error)
internal/llm/request_timeout.go:14
↓ 4 callersFunctiondiffsFixture
()
internal/diff/relocate_across_files_test.go:36
↓ 4 callersFunctionenforceGroupTokenBudget
enforceGroupTokenBudget splits groups whose combined diffs exceed the token limit.
internal/agent/grouping.go:345
↓ 4 callersFunctionenforceMaxFilesPerGroup
enforceMaxFilesPerGroup splits groups that exceed maxFilesPerGroup into smaller chunks.
internal/agent/grouping.go:323
↓ 4 callersFunctionensureMessagesSuffix
ensureMessagesSuffix appends /v1/messages to base URLs that lack a versioned path.
internal/llm/resolver.go:958
↓ 4 callersFunctionestimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled reports whether PLAN_TASK runs for each
internal/scan/estimate.go:44
↓ 4 callersFunctionexecute
(step, overrides = {})
scripts/github-actions/release-contract.test.js:50
↓ 4 callersFunctionexecuteReview
(opts reviewOptions)
cmd/opencodereview/compat_test.go:12
↓ 4 callersFunctionexecuteReviewContext
(ctx context.Context, opts reviewOptions)
cmd/opencodereview/review_cmd.go:125
↓ 4 callersFunctionexecuteScan
(opts scanOptions)
cmd/opencodereview/scan_cmd.go:110
↓ 4 callersFunctionexpandSessionKeyInBody
expandSessionKeyInBody returns a copy of body with SessionKeyTemplateVar replaced by key in every string value, recursing into nested maps and slices.
internal/llm/sessionkey.go:122
↓ 4 callersFunctionexpandSessionKeyInHeaders
expandSessionKeyInHeaders returns a copy of headers with every occurrence of SessionKeyTemplateVar in the values replaced by key. The input map is nev
internal/llm/sessionkey.go:108
↓ 4 callersMethodexplainError
explainError translates a Bedrock rejection into the action that fixes it. Two of these are actively misleading as the service words them: the API-key
internal/llm/client.go:1408
↓ 4 callersFunctionextractCliError
Extracts the most useful error text from the CLI's stderr: prefer the last `error:` line, otherwise the last non-empty line. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:180
↓ 4 callersFunctionextractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:7
↓ 4 callersMethodfailAll
failAll makes every file in the fixture fail permanently. Tests that mean "the whole review failed" use this rather than naming files, so they keep me
cmd/opencodereview/retry_fake_llm_test.go:74
↓ 4 callersFunctionfencedBlock
(content, language = "")
scripts/github-actions/post-review-comments.js:2530
↓ 4 callersFunctionfingerprintDigestSource
()
scripts/github-actions/post-review-comments.test.js:5647
↓ 4 callersFunctionfirstLine
firstLine returns the first non-empty trimmed line of git output, so a stray trailing newline or an unexpected second line never pollutes a resolved S
internal/diff/git.go:616
↓ 4 callersFunctionflush
()
examples/gitlab_ci/post_review.py:511
↓ 4 callersFunctionformatPlanGuidance
formatPlanGuidance parses the PLAN_TASK JSON output into a markdown snippet suitable for embedding in MAIN_TASK. On parse failure it returns the raw c
internal/scan/agent.go:1153
↓ 4 callersFunctionformatRelative
* Formats a unix-seconds timestamp as relative time. [nowMillis] is passed in by the caller instead of reading * `System.currentTimeMillis()` interna
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:571
↓ 4 callersFunctionformatToolDefs
formatToolDefs renders tool definitions as human-readable text for embedding in prompts.
internal/agent/agent.go:2100
↓ 4 callersFunctiongetCommitMessage
(repoDir, commit string)
cmd/opencodereview/git.go:27
↓ 4 callersFunctiongetShellEnv
()
extensions/vscode/src/extension/services/shellEnv.ts:29
↓ 4 callersFunctiongit
(args, allowedStatuses = [0])
scripts/github-actions/check-pr-commit-policy.test.js:370
↓ 4 callersFunctiongitFailure
gitFailure builds an error that carries git's own message. Every diff-producing caller used to drop git's output on the floor, so a failure surfaced
internal/diff/git.go:804
↓ 4 callersFunctionhelperCmd
helperCmd builds a helper command with its steering variables set on the Cmd itself, for the tests that hand an *exec.Cmd to runBrowserCmd directly.
internal/viewer/browser_exec_test.go:52
↓ 4 callersFunctionhumanTokens
humanTokens formats a token count as e.g. "1.2M" / "850K" / "420".
internal/scan/estimate.go:113
↓ 4 callersFunctionhumanTokens
humanTokens formats a token count as e.g. "1.2M" / "850K" / "420". Mirrors internal/scan/estimate.go; kept here so agent has no scan import.
internal/agent/estimate.go:101
↓ 4 callersFunctioninitRulesCheckTestRepo
(t *testing.T)
cmd/opencodereview/rules_cmd_test.go:14
↓ 4 callersFunctionisPresetProvider
(name: string)
extensions/frontend/src/shared/providers.ts:26
↓ 4 callersFunctionisSubtaskErrorType
(warningType string)
cmd/opencodereview/output.go:81
↓ 4 callersFunctionisSummaryAuthorOurs
(comment, { appSlug = "", resolveSelfLogin = null } = {})
scripts/github-actions/post-review-comments.js:3185
↓ 4 callersFunctionisUserEditMsg
isUserEditMsg reports whether msg represents user text input (typing or paste).
cmd/opencodereview/provider_tui.go:887
↓ 4 callersFunctionisValidProviderName
(name: string)
extensions/frontend/src/shared/configUtils.ts:21
↓ 4 callersFunctionitemList
(paths ...string)
internal/scan/batch_test.go:13
↓ 4 callersFunctionlistAllTools
listAllTools returns every tool the server publishes. tools/list is a paginated method: a result carries at most one page plus a nextCursor, and a cli
internal/mcp/client.go:143
↓ 4 callersFunctionloadProjectRule
loadProjectRule reads <repoDir>/.opencodereview/rule.json. Since #287 anchored RepoDir at the git top-level, `ocr review` from a monorepo subdirectory
internal/config/rules/system_rules.go:410
↓ 4 callersFunctionmakeErr
(message, status, headers, data)
scripts/github-actions/post-review-comments.test.js:62
↓ 4 callersFunctionmakeTask
()
internal/diff/relocation_test.go:35
↓ 4 callersFunctionmapStatusCode
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:13
↓ 4 callersMethodmaybeRunPlan
maybeRunPlan invokes PLAN_TASK on the file and returns a human-readable guidance string suitable for {{plan_guidance}} substitution. Returns "(no pre-
internal/scan/agent.go:853
↓ 4 callersMethodmodelProviderName
()
cmd/opencodereview/provider_tui.go:429
↓ 4 callersFunctionmustGetResult
mustGetResult extracts the first result from a SARIF document, failing the test if the structure is wrong.
cmd/opencodereview/sarif_test.go:35
↓ 4 callersFunctionnKey
()
cmd/opencodereview/provider_tui_test.go:1146
↓ 4 callersFunctionnewAnalysisExecution
(request analysisRequest)
cmd/opencodereview/analysis.go:80
↓ 4 callersFunctionnewManifestFlowAgentWithClient
(t *testing.T, diffs []model.Diff, resume *session.ResumeState, client llm.LLMClient)
internal/agent/manifest_integration_test.go:74
↓ 4 callersFunctionnewMockResponse
(content string)
internal/diff/relocation_test.go:27
↓ 4 callersFunctionnewRetryObserver
newRetryObserver builds the middleware that feeds collector. It sits inside the SDK retry loop, so it runs once per real HTTP attempt and sees neithe
internal/llm/retry_observer.go:30
↓ 4 callersFunctionnewTestMCPServer
newTestMCPServer returns a working MCP server with a single echo tool.
internal/mcp/stdio_test.go:55
↓ 4 callersFunctionnormalizeLine
normalizeLine removes leading/trailing whitespace and strips any leading '+' or '-' diff marker.
internal/diff/resolver.go:314
↓ 4 callersFunctionobjcRuleText
objcRuleText is the exact text a sniffed .m file must resolve to. Assert on identity rather than on wording: objc.md currently ships as a placeholder
internal/config/rules/sniffer_test.go:61
↓ 4 callersFunctionopenAIClient
The four blind spots share one shape: the observer sees HTTP 200, the failure surfaces afterwards, and nothing downstream would notice the omission —
internal/llm/retry_boundary_test.go:27
↓ 4 callersFunctionpage
(commits, options = {})
scripts/github-actions/check-pr-commit-policy.test.js:38
↓ 4 callersFunctionparseNameStatus
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:161
↓ 4 callersFunctionparseWebviewMessage
* Parses one frontend message and never throws: a parse failure yields [WebviewToHost.Malformed] and * an unrecognised type yields [WebviewToHost.Unk
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/messages/WebviewMessages.kt:137
↓ 4 callersMethodpost
(ctx context.Context, endpoint string, form url.Values, target any)
internal/chatgptauth/oauth.go:117
↓ 4 callersMethodpost
(msg: ConfigPanelHostToWebview)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:61
↓ 4 callersMethodpost
(msg: HostToWebview)
extensions/vscode/src/extension/providers/SidebarProvider.ts:56
↓ 4 callersMethodpost_discussion
(self, discussion, comment_id=None)
examples/gitlab_ci/post_review_test.py:198
↓ 4 callersMethodpreview
(ctx context.Context)
internal/agent/preview.go:55
↓ 4 callersFunctionprintVersion
()
cmd/opencodereview/version.go:28
↓ 4 callersFunctionprocessRunning
(pid int)
acp/internal/orchestrator/process_alive_unix_test.go:15
↓ 4 callersMethodprogressError
(err error)
internal/llmloop/loop.go:84
↓ 4 callersFunctionprogressWriter
(destination io.Writer, enabled bool)
internal/stdout/style.go:37
↓ 4 callersMethodread
Reads the file and converts it to the plugin's internal camelCase config; returns null when the file is missing or invalid. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:35
↓ 4 callersMethodread
(self)
examples/gerrit_ci/post_review_test.py:518
↓ 4 callersFunctionreadFileSync
(file)
scripts/github-actions/post-review-comments.test.js:54
↓ 4 callersFunctionreadJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:201
↓ 4 callersFunctionreadStderr
(r io.Reader, byteLimit, lineLimit int, emit func(Event))
acp/internal/orchestrator/streams.go:79
↓ 4 callersMethodreloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config and refreshes derived provider TUI state so the UI matches persisted data after a failed save. Ret
cmd/opencodereview/provider_tui.go:1726
↓ 4 callersMethodreloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config so in-memory state matches persisted data after a failed save. Returns false when reload could not
cmd/opencodereview/provider_tui.go:2808
← previousnext →901–1,000 of 7,390, ranked by callers