MCPcopy Create free account

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

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

↓ 2 callersMethodreviewMode
reviewMode returns the string mode identifier.
cmd/opencodereview/delegate_cmd.go:154
↓ 2 callersFunctionreviewResultError
(runErr error, manifest *session.RunManifest)
cmd/opencodereview/review_cmd.go:389
↓ 2 callersFunctionreviewRulesListedPatterns
(body string)
internal/config/rules/rule_docs_table_test.go:38
↓ 2 callersFunctionreviewStatus
reviewStatus uses the manifest's terminal state when the CLI provides one.
acp/internal/adapter/presentation/report.go:59
↓ 2 callersFunctionrootComment
(thread)
scripts/github-actions/post-review-comments.js:1572
↓ 2 callersFunctionruleGroupsJSON
(groups []delegate.RuleGroup)
cmd/opencodereview/delegate_cmd.go:313
↓ 2 callersFunctionrun
(stdout: string, exitCode = 1)
extensions/vscode/src/extension/services/__tests__/CliService.test.ts:122
↓ 2 callersMethodrun
(t *testing.T, args ...string)
internal/delegate/instructions_test.go:40
↓ 2 callersMethodrun
(ctx context.Context)
cmd/opencodereview/analysis.go:165
↓ 2 callersMethodrun
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ReviewSession.kt:48
↓ 2 callersFunctionrunBlock
(step)
scripts/github-actions/release-contract.test.js:35
↓ 2 callersFunctionrunConfigModel
()
cmd/opencodereview/provider_cmd.go:336
↓ 2 callersFunctionrunConfigProvider
()
cmd/opencodereview/provider_cmd.go:19
↓ 2 callersMethodrunGraceRound
(ctx context.Context, messages []llm.Message, taskKey string, sessionID string, started bool, stop MainLoopSto
internal/llmloop/loop.go:495
↓ 2 callersFunctionrunLLMProviders
()
cmd/opencodereview/llm_cmd.go:258
↓ 2 callersFunctionrunManifestsCheck
({ repoRoot = process.cwd() } = {})
scripts/github-actions/check-plugin-contract.js:949
↓ 2 callersFunctionrunPreview
(backgroundFile?: string)
plugins/open-code-review/opencode/open-code-review.ts:620
↓ 2 callersFunctionrunPreviewContext
(ctx context.Context, cc *commonContext, opts reviewOptions, out io.Writer)
cmd/opencodereview/review_cmd.go:598
↓ 2 callersFunctionrunSessionComments
(sessionID string)
cmd/opencodereview/session_cmd.go:373
↓ 2 callersFunctionrunWithTeardown
(fixture, body, remove = removeWithRetries)
bin/ocr.test.js:276
↓ 2 callersFunctionruneWrapCut
runeWrapCut returns a rune index suitable for breaking the line at ~maxW display width.
cmd/opencodereview/output.go:249
↓ 2 callersMethodruntimeConfigSHA256
runtimeConfigSHA256 is the deterministic identity of the allowlisted, non-secret runtime settings: protocol, model, sanitized endpoint host, language,
internal/agent/agent.go:1114
↓ 2 callersFunctionsafeFence
(content)
scripts/github-actions/post-review-comments.js:2675
↓ 2 callersFunctionsafeSegment
safeSegment validates that s is safe to use as a single path component and returns it unchanged. Every caller must join the returned value, not its ow
internal/viewer/store.go:465
↓ 2 callersFunctionsampleComment
sampleComment carries every field that drives a colored render path: the file header, a severity badge, and a suggestion diff.
cmd/opencodereview/output_color_test.go:17
↓ 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:400
↓ 2 callersFunctionsanitize_metadata
Strip C0/C1 control characters from a metadata value.
examples/gitlab_ci/post_review.py:221
↓ 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 callersFunctionsave
(manifest, summary)
plugins/open-code-review/skills/open-code-review/scripts/review_pr.py:172
↓ 2 callersFunctionsave
(manifest, summary)
skills/open-code-review/scripts/review_pr.py:172
↓ 2 callersFunctionsaveStoredMarks
(marks)
internal/viewer/static/session.js:253
↓ 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:2571
↓ 2 callersFunctionscrolls
()
internal/viewer/static/a11y.js:17
↓ 2 callersMethodsearchPaths
(ctx context.Context, args map[string]any, side string)
internal/behaviortask/search.go:52
↓ 2 callersFunctionselectBackground
selectBackground returns the effective background. --background and --background-file are two entry points for the same capability, so only one takes
cmd/opencodereview/background_file.go:35
↓ 2 callersMethodselectRepo
* Choose the repository matching the workspace. Nested repository ordering is unstable, * so taking [0] directly may select a child repository.
extensions/vscode/src/extension/services/GitService.ts:38
↓ 2 callersFunctionselectionReasons
selectionReasons indexes a selection pass by path so the tests can assert on the decision the run and `--preview` now share.
internal/agent/agent_test.go:604
↓ 2 callersMethodsendRejection
Application-level rejections are completed guidance, not model refusals. Clients such as Zed discard the turn's messages on the refusal stop reason.
acp/internal/adapter/prompt.go:109
↓ 2 callersMethodsendTerminal
(ctx context.Context, id acp.SessionId, text string, reason acp.StopReason)
acp/internal/adapter/prompt.go:117
↓ 2 callersFunctionsessionEndRecord
(t *testing.T, repoDir, sessionID string)
internal/session/final_retry_report_test.go:61
↓ 2 callersFunctionsessionLockHeld
(jsonlPath string)
internal/session/liveness.go:24
↓ 2 callersFunctionsessionPath
sessionPath resolves a validated session id to its file inside the sessions directory.
internal/session/delete.go:71
↓ 2 callersFunctionsessionsRoot
sessionsRoot returns the directory that holds every repository's sessions.
internal/session/delete.go:223
↓ 2 callersFunctionsetCustomProviderField
(cfg *Config, name, field, key, value string)
cmd/opencodereview/config_cmd.go:1070
↓ 2 callersFunctionsetCustomProviderField
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:118
↓ 2 callersFunctionsetCustomProviderField
(cfg: RawConfig, name: string, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:59
↓ 2 callersFunctionsetupNonASCIIPathRepo
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:831
↓ 2 callersFunctionsetupRecordingTelemetry
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 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:190
↓ 2 callersFunctionseverityLabel
(severity string)
acp/internal/adapter/presentation/report.go:135
↓ 2 callersFunctionshellArgument
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 callersFunctionshellRCFiles
()
internal/llm/resolver.go:769
↓ 2 callersFunctionshimGit
shimGit puts a fake `git` at the front of PATH for the duration of the test.
internal/diff/git_error_test.go:159
↓ 2 callersFunctionshortAnalysisRevision
(revision string)
cmd/opencodereview/analysis_output.go:82
↓ 2 callersFunctionshortSessionID
(id string)
cmd/opencodereview/session_cmd.go:867
↓ 2 callersFunctionshouldAutoOpen
shouldAutoOpen resolves the open decision against the live environment.
internal/viewer/browser.go:62
↓ 2 callersFunctionshouldAutoOpenEnv
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 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:144
↓ 2 callersFunctionshouldShowUpdateHint
(hintVersion, installedVersion)
scripts/version.js:33
↓ 2 callersMethodshow
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:139
↓ 2 callersFunctionshowToast
(message: string)
pages/src/components/HeroSection.tsx:162
↓ 2 callersMethodsigningKey
(ctx context.Context, kid string)
internal/chatgptauth/jwt.go:49
↓ 2 callersFunctionslotsFromState
(st *State)
acp/internal/intent/parser.go:110
↓ 2 callersFunctionsmallSynchronousPipe
Keep the receiver buffer below the test payload so an unread write blocks.
acp/cmd/ocr-acp/stdio_windows_test.go:248
↓ 2 callersMethodsniffsAsObjC
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 callersFunctionsortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:1056
↓ 2 callersFunctionspawnChild
(inherit bool, delay time.Duration, stdout, stderr string)
acp/testdata/ocr-stub/main.go:246
↓ 2 callersFunctionsplitAndNormalize
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 callersFunctionsplitAndNormalize
(code: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:61
↓ 2 callersFunctionsplitFlag
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 callersFunctionsplitList
(raw)
scripts/github-actions/check-translation-sync.js:219
↓ 2 callersFunctionsplitToLines
(s string)
cmd/opencodereview/output.go:286
↓ 2 callersFunctionssoLoginProfileArg
(profile string)
internal/llm/client.go:1383
↓ 2 callersFunctionstartGrace
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:233
↓ 2 callersFunctionstartInterruptChild
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 callersFunctionstaticFS
()
internal/viewer/server.go:499
↓ 2 callersFunctionsticky
()
scripts/github-actions/post-review-comments.test.js:5580
↓ 2 callersMethodstorePending
(st *State, s *pendingSlots, missing []string)
acp/internal/intent/parser.go:129
↓ 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:113
↓ 2 callersFunctionstripModelSuffix
(model string)
internal/llm/resolver.go:793
↓ 2 callersFunctionstripSide
(content string)
internal/behaviortask/code.go:258
↓ 2 callersFunctionstripTrailingPunctuation
(s)
scripts/github-actions/check-plugin-contract.js:266
↓ 2 callersFunctionsuggestFlag
(cmd *cobra.Command, unknown string)
cmd/opencodereview/flag_suggest.go:33
↓ 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:129
↓ 2 callersFunctionsummaryPages
(header, sections, suffixLength, runTag)
scripts/github-actions/post-review-comments.js:2474
↓ 2 callersFunctiontailForComment
(text, limit = MAX_COMMENT_STDERR_CHARS)
scripts/github-actions/post-review-comments.js:2669
↓ 2 callersFunctionterminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:305
↓ 2 callersFunctiontestToolDefs
testToolDefs offers the configured self-test tool, or none when the task defines no tool.
cmd/opencodereview/llm_cmd.go:181
↓ 2 callersFunctiontoLlmComments
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:127
↓ 2 callersFunctiontoRepoPath
(rawPath)
scripts/github-actions/check-plugin-contract.js:272
↓ 2 callersFunctiontoolCallResponse
(name, args string)
internal/reviewtask/tool_availability_test.go:36
↓ 2 callersFunctiontoolCallsForJSON
toolCallsForJSON projects tool calls for persistence.
internal/session/history.go:488
↓ 2 callersFunctiontruncateText
(n int, s string)
internal/viewer/server.go:478
↓ 2 callersFunctiontruncate_message
(msg)
examples/gerrit_ci/post_review.py:92
↓ 2 callersFunctiontryCCEnv
tryCCEnv reads Claude Code environment variables.
internal/llm/resolver.go:734
↓ 2 callersFunctiontryLock
tryLock is a shared, nonblocking liveness probe. It reports whether this process acquired that shared lock. An exclusive lock on another open-file des
internal/session/lock_unix.go:23
↓ 2 callersFunctiontryShellRC
tryShellRC parses ~/.zshrc and ~/.bashrc for ANTHROPIC_* exports.
internal/llm/resolver.go:758
↓ 2 callersFunctiontypeName
(v any)
internal/llm/client_test.go:2059
← previousnext →1,901–2,000 of 7,599, ranked by callers