Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,128 in github.com/alibaba/open-code-review
⨍
Functions
7,128
◇
Types & classes
771
↓ 2 callers
Function
setCustomProviderField
(cfg: RawConfig, name: string, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:59
↓ 2 callers
Function
setupNonASCIIPathRepo
allow-non-english: fixture exercises non-ASCII paths setupNonASCIIPathRepo commits nonASCIIPath with core.quotepath forced on, so tests do not depend
internal/tool/code_search_test.go:769
↓ 2 callers
Function
setupRecordingTelemetry
setupRecordingTelemetry enables telemetry through the public Init entrypoint, then redirects the global tracer provider to an in-process span recorder
internal/agent/trace_parent_test.go:61
↓ 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:176
↓ 2 callers
Function
severityLabel
(severity string)
acp/internal/adapter/presentation/report.go:135
↓ 2 callers
Function
shellArgument
shellArgument formats an argv element for copying into a POSIX shell. The runner still executes the original argv directly, without a shell.
acp/internal/adapter/presentation/progress_format.go:82
↓ 2 callers
Function
shellRCFiles
()
internal/llm/resolver.go:770
↓ 2 callers
Function
shimGit
shimGit puts a fake `git` at the front of PATH for the duration of the test.
internal/diff/git_error_test.go:159
↓ 2 callers
Function
shortSessionID
(id string)
cmd/opencodereview/session_cmd.go:852
↓ 2 callers
Function
shouldAutoOpen
shouldAutoOpen resolves the open decision against the live environment.
internal/viewer/browser.go:62
↓ 2 callers
Function
shouldAutoOpenEnv
shouldAutoOpenEnv reports whether to open a browser and, when auto mode declines, why. The reason is surfaced on the ready line: a suppressed auto-ope
internal/viewer/browser.go:84
↓ 2 callers
Function
shouldMaskConfigValue
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:135
↓ 2 callers
Function
shouldShowUpdateHint
(hintVersion, installedVersion)
scripts/version.js:33
↓ 2 callers
Method
show
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:139
↓ 2 callers
Function
showToast
(message: string)
pages/src/components/HeroSection.tsx:162
↓ 2 callers
Method
signingKey
(ctx context.Context, kid string)
internal/chatgptauth/jwt.go:49
↓ 2 callers
Function
slotsFromState
(st *State)
acp/internal/intent/parser.go:110
↓ 2 callers
Function
smallSynchronousPipe
Keep the receiver buffer below the test payload so an unread write blocks.
acp/cmd/ocr-acp/stdio_windows_test.go:248
↓ 2 callers
Method
sniffsAsObjC
sniffsAsObjC reports whether path is a ".m" file whose content identifies it as Objective-C. Non-".m" paths never trigger a read.
internal/config/rules/sniffer.go:87
↓ 2 callers
Function
sortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:1033
↓ 2 callers
Function
spawnChild
(inherit bool, delay time.Duration, stdout, stderr string)
acp/testdata/ocr-stub/main.go:246
↓ 2 callers
Function
splitAndNormalize
Split into lines and apply [normalizeLine]. Discard blank lines so changes in blank lines between revisions do not prevent a match. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:57
↓ 2 callers
Function
splitAndNormalize
(code: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:61
↓ 2 callers
Function
splitFlag
splitFlag separates an inline --flag=value form. Non-flags return the token itself as name so callers can report it as a stray argument.
acp/internal/intent/slash.go:151
↓ 2 callers
Function
splitList
(raw)
scripts/github-actions/check-translation-sync.js:216
↓ 2 callers
Function
splitToLines
(s string)
cmd/opencodereview/output.go:272
↓ 2 callers
Function
ssoLoginProfileArg
(profile string)
internal/llm/client.go:1357
↓ 2 callers
Function
startGrace
startGrace returns a stop func. Once ctx is done it waits cancelGracePeriod and then calls closeReads, which unblocks any copy still waiting on a pipe
internal/gitcmd/runner.go:118
↓ 2 callers
Function
startInterruptChild
startInterruptChild re-executes this test binary as a subprocess running TestInterruptChildHarness in the given mode, so the real forceExit hook (os.E
cmd/opencodereview/interrupt_test.go:124
↓ 2 callers
Function
staticFS
()
internal/viewer/server.go:499
↓ 2 callers
Function
sticky
()
scripts/github-actions/post-review-comments.test.js:5416
↓ 2 callers
Method
storePending
(st *State, s *pendingSlots, missing []string)
acp/internal/intent/parser.go:129
↓ 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:257
↓ 2 callers
Function
stripMarkdownFences
stripMarkdownFences is the package-private workhorse used by the internal compression code paths.
internal/llmloop/compression.go:171
↓ 2 callers
Function
stripModelSuffix
(model string)
internal/llm/resolver.go:794
↓ 2 callers
Function
stripTrailingPunctuation
(s)
scripts/github-actions/check-plugin-contract.js:266
↓ 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:129
↓ 2 callers
Function
tailForComment
(text, limit = MAX_COMMENT_STDERR_CHARS)
scripts/github-actions/post-review-comments.js:2537
↓ 2 callers
Function
terminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:218
↓ 2 callers
Function
testToolDefs
testToolDefs offers the configured self-test tool, or none when the task defines no tool.
cmd/opencodereview/llm_cmd.go:184
↓ 2 callers
Function
toHtmlLang
(locale: SupportedLocale)
extensions/frontend/src/shared/i18n.ts:843
↓ 2 callers
Function
toLlmComments
toLlmComments adapts the viewer's parsed findings to the model type session.Compare consumes. Path, Category and ExistingCode are load-bearing: they a
internal/viewer/handler.go:120
↓ 2 callers
Function
toRepoPath
(rawPath)
scripts/github-actions/check-plugin-contract.js:272
↓ 2 callers
Function
toolCallResponse
(name, args string)
internal/reviewtask/tool_availability_test.go:36
↓ 2 callers
Function
toolCallsForJSON
toolCallsForJSON projects tool calls for persistence.
internal/session/history.go:456
↓ 2 callers
Function
truncateText
(n int, s string)
internal/viewer/server.go:478
↓ 2 callers
Function
truncate_message
(msg)
examples/gerrit_ci/post_review.py:92
↓ 2 callers
Function
tryCCEnv
tryCCEnv reads Claude Code environment variables.
internal/llm/resolver.go:735
↓ 2 callers
Function
tryShellRC
tryShellRC parses ~/.zshrc and ~/.bashrc for ANTHROPIC_* exports.
internal/llm/resolver.go:759
↓ 2 callers
Function
typeName
(v any)
internal/llm/client_test.go:2059
↓ 2 callers
Function
unmarshalAnthropicBody
(t *testing.T, body string)
internal/llm/native_turn_test.go:31
↓ 2 callers
Function
unquoteScalar
(value)
scripts/github-actions/check-plugin-contract.js:419
↓ 2 callers
Function
unreadableLocalFile
(t *testing.T)
acp/internal/adapter/locations_test.go:30
↓ 2 callers
Function
unsafeSegment
unsafeSegment rejects a URL-supplied name that must stay a single directory or file name once it reaches filepath.Join. ServeMux unescapes each path s
internal/viewer/server.go:176
↓ 2 callers
Function
unsetActiveProvider
(configPath string)
cmd/opencodereview/config_cmd.go:201
↓ 2 callers
Function
unsetMaxTokens
(configPath string)
cmd/opencodereview/config_cmd.go:171
↓ 2 callers
Method
update
(ctx context.Context, id acp.SessionId, msg string)
acp/internal/adapter/agent.go:59
↓ 2 callers
Method
updateCustomModelInput
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:766
↓ 2 callers
Method
updateDeleteConfirm
(key string)
cmd/opencodereview/provider_tui.go:1557
↓ 2 callers
Method
update_note
(self, note_id, body)
examples/gitlab_ci/post_review.py:962
↓ 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
usesAmbientAuth
(preset: OcrProviderPreset, protocolOverride?: string)
extensions/frontend/src/shared/providers.ts:30
↓ 2 callers
Function
validArgNames
validArgNames strips the "name\tdescription" form Cobra allows in ValidArgs, keeping only the value the user is expected to type. The split matches th
cmd/opencodereview/arg_errors.go:110
↓ 2 callers
Function
validateAudience
(audience string)
cmd/opencodereview/shared_flags.go:103
↓ 2 callers
Function
validateChatGPTBody
(body map[string]any)
internal/llm/chatgpt.go:77
↓ 2 callers
Function
validateColorMode
validateColorMode rejects unknown --color values instead of silently treating them as auto, so a typo like --color=yes is reported rather than ignored
cmd/opencodereview/color.go:44
↓ 2 callers
Function
validateCommandFrontmatter
(file, content)
scripts/github-actions/check-plugin-contract.js:466
↓ 2 callers
Function
validateDiffMode
--- Validation functions ---
cmd/opencodereview/shared_flags.go:83
↓ 2 callers
Function
validateEndpointURL
validateEndpointURL reports URL parse failures before the SDK can turn them into request errors that no longer identify the configuration variable.
internal/llm/resolver.go:261
↓ 2 callers
Function
validateExtra
validateExtra rejects any element of extra that is not a whitelisted flag, is a whitelisted flag missing its value, or carries a value outside the fla
acp/internal/contract/intent.go:184
↓ 2 callers
Function
validateKeyCmd
validateKeyCmd returns an error when cmd contains patterns that are almost certainly not part of a legitimate credential-helper invocation. It is call
internal/llm/keycmd.go:50
↓ 2 callers
Function
validateModelLists
(providers []llm.Provider)
internal/llm/gen/main.go:130
↓ 2 callers
Function
validateOutputFormat
(format string)
cmd/opencodereview/shared_flags.go:112
↓ 2 callers
Function
validateReport
validateReport enforces the report invariants. A violation returns an error and suppresses the report rather than publishing self-contradictory number
internal/llm/retry_report.go:574
↓ 2 callers
Function
validateRequest
(binary string, request Request)
acp/internal/orchestrator/runner.go:178
↓ 2 callers
Function
validateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:129
↓ 2 callers
Function
validateScanOptions
(opts *scanOptions)
cmd/opencodereview/shared_flags.go:170
↓ 2 callers
Function
validateToolBindings
(conversations map[string]*LlmConversation, referenceTask string)
internal/config/template/template.go:362
↓ 2 callers
Method
verifyAt
(ctx context.Context, token, clientID, nonce string, receivedAt time.Time)
internal/chatgptauth/jwt.go:101
↓ 2 callers
Function
waitForWarning
waitForWarning polls until a warning shows up, so the test neither sleeps a fixed amount nor hangs forever if the watcher goroutine never fires.
internal/viewer/browser_exec_test.go:119
↓ 2 callers
Function
walkTextFiles
(repoRoot, rel = "", seen = new Set())
scripts/github-actions/check-plugin-contract.js:779
↓ 2 callers
Function
warn
(msg)
scripts/github-actions/post-review-comments.js:1794
↓ 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:51
↓ 2 callers
Function
withCodeAccessSides
(definitions []llm.ToolDef, workspace bool)
internal/config/toolsconfig/comparison.go:23
↓ 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:204
↓ 2 callers
Function
wrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:216
↓ 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:80
↓ 2 callers
Function
writeAppConfigMaxTokens
(t *testing.T, home string, maxTokens int)
cmd/opencodereview/review_helpers_test.go:239
↓ 2 callers
Function
writeDelegateJSON
(value any)
cmd/opencodereview/delegate_cmd.go:326
↓ 2 callers
Function
writeFencedBlock
(b *strings.Builder, language, text string)
acp/internal/adapter/presentation/markdown.go:26
↓ 2 callers
Function
writeFinding
(b *strings.Builder, number int, c contract.Comment, location *workspace.Location)
acp/internal/adapter/presentation/report.go:183
↓ 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:300
↓ 1 callers
Method
Authenticate
(context.Context, acp.AuthenticateRequest)
acp/internal/adapter/agent.go:51
↓ 1 callers
Method
Bytes
()
internal/gitcmd/runner.go:187
← previous
next →
1,801–1,900 of 7,128, ranked by callers