Repository Analysis

QwenLM/qwen-code

An open-source AI agent that lives in your terminal.

3.1 Likely human-written View on GitHub
3.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
2026-05-30
Last Push
24,767
Stars
TypeScript
Language
977,594
Lines of Code
2892
Files
1964
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 17MEDIUM 473LOW 1473

Pattern Findings

1964 matches across 17 categories. Click a row to expand file-level details.

Decorative Section Separators440 hits · 1342 pts
SeverityFileLineSnippet
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts27// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts29// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts173// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts175// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts200// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts202// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts222 // ── Factory ──────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts278 // ── Lifecycle ────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts366 // ── Input ────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts403 // ── Wait ─────────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts475 // ── Capture ──────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts627 // ── Output access ────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts683 // ── Cleanup ──────────────────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts705 // ── Internal: flush PTY → xterm.js ──────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts739 // ── Internal: resolve xterm.js path ─────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts753 // ── Internal: build HTML ────────────────
MEDIUMintegration-tests/terminal-capture/terminal-capture.ts862 // ── Internal: utils ─────────────────────
MEDIUMintegration-tests/terminal-capture/scenario-runner.ts17// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/scenario-runner.ts19// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/scenario-runner.ts89// ─────────────────────────────────────────────
MEDIUMintegration-tests/terminal-capture/scenario-runner.ts91// ─────────────────────────────────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md90 // ── 现有字段(保持不变) ──────────────────────────────────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md102 // ── Phase 1 新增:来源与执行类型 ──────────────────────────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md129 // ── Phase 1 新增:模式能力 ──────────────────────────────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md137 // ── Phase 1 新增:可见性 ──────────────────────────────────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md151 // ── Phase 3 预留:体验元数据(Phase 1 仅定义,不使用)──────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md398 // ── 现有方法(保持不变)────────────────────────────────────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md403 // ── Phase 1 新增方法 ──────────────────────────────────────────────────
MEDIUMdocs/design/slash-command/phase1-technical-design.md538// ─────────────────────────────────────────
MEDIUMscripts/test-rewind-e2e.sh2# =============================================================================
MEDIUMscripts/test-rewind-e2e.sh20# =============================================================================
MEDIUMscripts/test-rewind-e2e.sh40# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh42# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh249# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh251# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh268# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh270# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh313# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh315# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh360# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh362# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh386# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh388# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh416# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh418# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh455# ---------------------------------------------------------------------------
MEDIUMscripts/test-rewind-e2e.sh457# ---------------------------------------------------------------------------
MEDIUMpackages/core/src/tools/exit-worktree.test.ts153 // ── execute() integration: real git repo, real worktree ──────
MEDIUMpackages/core/src/tools/toAutoClassifierInput.test.ts30// EditTool ────────────────────────────────────────────────────────────────
MEDIUMpackages/core/src/tools/toAutoClassifierInput.test.ts78// WriteFileTool ──────────────────────────────────────────────────────────
MEDIUMpackages/core/src/tools/toAutoClassifierInput.test.ts111// ShellTool ──────────────────────────────────────────────────────────────
MEDIUMpackages/core/src/tools/toAutoClassifierInput.test.ts142// WebFetchTool ────────────────────────────────────────────────────────────
MEDIUMpackages/core/src/tools/toAutoClassifierInput.test.ts158// SkillTool ──────────────────────────────────────────────────────────────
MEDIUMpackages/core/src/tools/toAutoClassifierInput.test.ts173// AgentTool ──────────────────────────────────────────────────────────────
MEDIUMpackages/core/src/tools/agent/agent.ts1249 // ── Isolation state hoisted to the outermost scope ────────────
MEDIUMpackages/core/src/tools/agent/agent.ts1477 // ── Optional worktree isolation (Phase 1: provision) ──────────
MEDIUMpackages/core/src/tools/agent/agent.ts1645 // ── Optional worktree isolation (Phase 2: rebind cwd) ─────────
MEDIUMpackages/core/src/tools/agent/agent.ts1728 // ── Background (async) execution path ──────────────────────
MEDIUMpackages/core/src/tools/agent/agent.ts2197 // ── Foreground (synchronous) execution path ────────────────
MEDIUMpackages/core/src/core/coreToolScheduler.ts725// ─── Tool Concurrency Helpers ────────────────────────────────
380 more matches not shown…
Hyper-Verbose Identifiers758 hits · 784 pts
SeverityFileLineSnippet
LOWintegration-tests/test-helper.ts27export function createToolCallErrorMessage(
LOWintegration-tests/terminal-bench/qwen_code.py58 def _install_agent_script_path(self) -> os.PathLike:
LOW…-tests/terminal-capture/subagent-flicker-regression.ts304function buildSubagentSingleToolCall(packageJsonPath: string, index: number) {
LOW…concurrent-runner/export-html-from-chatrecord-jsonl.js377function injectDataIntoHtmlTemplate(template, data) {
LOW…concurrent-runner/export-html-from-chatrecord-jsonl.js488function computeStartTimeFromRecords(records) {
LOW…concurrent-runner/export-html-from-chatrecord-jsonl.js500function extractToolNameFromRecord(record) {
LOW…concurrent-runner/export-html-from-chatrecord-jsonl.js642function transformPartsToToolCallContent(parts) {
LOW…concurrent-runner/export-html-from-chatrecord-jsonl.js706function convertChatRecordsToSessionData(records) {
LOW…concurrent-runner/export-html-from-chatrecord-jsonl.js774 function addOrMergeToolCallMessage(toolCallMessage) {
LOW…concurrent-runner/export-html-from-chatrecord-jsonl.js913function buildSessionDataFromExportJsonl(objects) {
LOWintegration-tests/sdk-typescript/system-control.test.ts32function createStreamingInputWithControlPoint(
LOW…ration-tests/sdk-typescript/permission-control.test.ts45function createStreamingInputWithControlPoint(
LOWintegration-tests/sdk-typescript/test-helper.ts720export function createControlledStreamingInput(
LOWintegration-tests/sdk-typescript/test-helper.ts836export function assertSuccessfulCompletion(messages: SDKMessage[]): void {
LOWintegration-tests/sdk-typescript/test-helper.ts975export function createToolCallErrorMessage(
LOWdocs/design/custom-api-key-auth-wizard-prd.md541function generateCustomApiKeyEnvKey(protocol: string, baseUrl: string): string {
LOWdocs/design/telemetry-resource-attributes-design.md218function parseOtelResourceAttributes(
LOWdocs/design/slash-command/phase1-technical-design.md336export function getEffectiveSupportedModes(cmd: SlashCommand): ExecutionMode[] {
LOWdocs/design/slash-command/phase1-technical-design.md448function filterCommandsForNonInteractive(
LOWdocs/design/slash-command/phase3-technical-design.md117export function getCommandSubcommandNames(cmd: SlashCommand): string[];
LOWscripts/verify-installation-release.js44function standaloneArchiveNamesFromReleaseTargets(releaseTargets) {
LOWscripts/verify-installation-release.js168function assertExpectedChecksumEntries(checksums) {
LOWscripts/verify-installation-release.js185function assertExpectedArchiveFiles(dir) {
LOWscripts/verify-installation-release.js203async function assertRemoteAssetChecksums(
LOWscripts/check-i18n.ts67export function shouldWriteUnusedKeysJson(): boolean {
LOWscripts/check-i18n.ts157export function findForbiddenZhTwPatterns(
LOWscripts/check-i18n.ts330function saveKeysOnlyInLocalesToJson(
LOWscripts/generate-settings-schema.ts48function convertItemDefinitionToJsonSchema(
LOWscripts/generate-settings-schema.ts98function convertSettingToJsonSchema(
LOWscripts/get-release-version.js56function detectRollbackAndGetBaseline(npmDistTag) {
LOWscripts/get-release-version.js165function getAndVerifyTags(npmDistTag, _gitTagPattern) {
LOWscripts/get-release-version.js189function getLatestStableReleaseTag() {
LOWscripts/build-hosted-installation-assets.js203async function buildHostedInstallationAssets(outDir, options = {}) {
LOWscripts/build-hosted-installation-assets.js230function assertNoUnexpectedHostedFiles(outDir) {
LOWscripts/build-hosted-installation-assets.js241function copyHostedInstallationAsset(source, destination, asset) {
LOWscripts/build-hosted-installation-assets.js286function assertHostedInstallerSource(source, output) {
LOWscripts/build-hosted-installation-assets.js326async function assertHostedInstallationAssetChecksums(outDir) {
LOWscripts/tests/install-script.test.js3346function createBadWindowsNodeArchive(tmpDir) {
LOWscripts/tests/install-script.test.js3356function createFakeWindowsNodeArchive(tmpDir) {
LOWscripts/tests/install-script.test.js3366function createFakeWindowsStandaloneArchive(tmpDir) {
LOWscripts/tests/install-script.test.js3389function createFakeWindowsStandaloneInstall(installRoot) {
LOWscripts/tests/install-script.test.js3413function createFakeWindowsNpmTools(fakeBin) {
LOWscripts/tests/install-script.test.js3436function createFakeWindowsCurlCommand(fakeBin) {
LOWscripts/tests/install-script.test.js3722function runWindowsPowerShellScript(scriptPath, args = [], env = {}) {
LOWscripts/tests/install-script.test.js3782function createSymlinkStandaloneArchive(tmpDir) {
LOWscripts/tests/install-script.test.js3812function createTraversalStandaloneArchive(tmpDir) {
LOWscripts/tests/install-script.test.js3853function writeStandaloneReleaseAssets(outDir, archiveNames) {
LOWscripts/tests/install-script.test.js3861function writeStandaloneReleaseChecksums(outDir, archiveNames) {
LOWscripts/tests/install-script.test.js3872function placeholderChecksumContent(archiveNames) {
LOWscripts/lib/release-helpers.js57export function isExpectedMissingGitHubRelease(error) {
LOWpackages/acp-bridge/src/status.ts392export function createIdleWorkspaceMemoryStatus(
LOWpackages/acp-bridge/src/status.ts406export function createIdleWorkspaceAgentsStatus(
LOWpackages/acp-bridge/src/status.ts416export function createIdleWorkspaceMcpStatus(
LOWpackages/acp-bridge/src/status.ts438export function createIdleWorkspaceSkillsStatus(
LOWpackages/acp-bridge/src/status.ts449export function createIdleWorkspaceProvidersStatus(
LOWpackages/acp-bridge/src/status.ts585export function createIdleAcpPreflightCells(): ServePreflightCell[] {
LOWpackages/acp-bridge/src/status.ts633export function mapDomainErrorToErrorKind(
LOWpackages/sdk-python/tests/unit/test_validation.py13def test_rejects_resume_with_continue_session() -> None:
LOWpackages/sdk-python/tests/unit/test_validation.py23def test_rejects_session_id_with_resume() -> None:
LOWpackages/sdk-python/tests/unit/test_validation.py33def test_rejects_invalid_session_id() -> None:
698 more matches not shown…
Over-Commented Block544 hits · 501 pts
SeverityFileLineSnippet
LOWesbuild.config.js121 global: 'globalThis',
LOWdocs-site/next-env.d.ts1/// <reference types="next" />
LOWintegration-tests/cli/qwen-serve-routes.test.ts261 // retry the model switch against (via POST /session/:id/model).
LOWintegration-tests/cli/qwen-serve-baseline.test.ts461 if (daemon) await daemon.dispose();
LOWintegration-tests/cli/qwen-serve-baseline.test.ts481 // the SAME servers — its accounting is NOT what the
LOWdocs/users/qwen-serve.md381
LOWdocs/developers/examples/daemon-client-quickstart.md41// (b) omit `workspaceCwd` entirely — the SDK then sends no `cwd`
LOWscripts/build_package.js1/**
LOWscripts/sandbox_command.js1/**
LOWscripts/start.js1/**
LOWscripts/esbuild-shims.js21import { dirname } from 'node:path';
LOWscripts/build.js1/**
LOWscripts/test-rewind-e2e.sh1#!/usr/bin/env bash
LOWscripts/clean.js1/**
LOWscripts/generate-git-commit-info.js1/**
LOWscripts/build_vscode_companion.js1/**
LOWscripts/build_sandbox.js1/**
LOWscripts/copy_files.js1#!/usr/bin/env node
LOWscripts/generate-settings-schema.ts181 // Non-empty plain object — publish so IDE editors can surface the
LOWscripts/copy_bundle_assets.js1/**
LOWpackages/acp-bridge/src/workspacePaths.ts41 */
LOWpackages/acp-bridge/src/eventBus.ts201 // wrap publish in try/catch — and would corrupt state in
LOWpackages/acp-bridge/src/eventBus.ts221 if (this.ring.length > this.ringSize) this.ring.shift();
LOWpackages/acp-bridge/src/eventBus.ts241 data: { reason: 'queue_overflow', droppedAfter: event.id },
LOWpackages/acp-bridge/src/eventBus.ts261 // `WARN_THRESHOLD_RATIO`. Fires ONCE per overflow episode (the
LOWpackages/acp-bridge/src/eventBus.ts381 disposed = true;
LOWpackages/acp-bridge/src/eventBus.test.ts301 // Capture the listener count via the AbortSignal — we add a
LOWpackages/acp-bridge/src/inMemoryChannel.test.ts101 // the round-trip tests above for one frame but echo the writer's
LOWpackages/core/src/tools/shell.test.ts1561 expect(result.llmContent).not.toContain('foreground command ran for');
LOWpackages/core/src/tools/shell.test.ts1601 'foreground command ran for 75s',
LOWpackages/core/src/tools/shell.test.ts4621 });
LOWpackages/core/src/tools/shell.test.ts4661
LOWpackages/core/src/tools/shell.test.ts4861 });
LOWpackages/core/src/tools/mcp-client-manager.ts301 // PR 14 fix (review #4247 wenshao S4 + R8 #2): mode-without-budget
LOWpackages/core/src/tools/mcp-client-manager.ts481 let resolvedMode = resolved.budgetMode;
LOWpackages/core/src/tools/mcp-client-manager.ts941 this.cliConfig.getMcpServers() || {},
LOWpackages/core/src/tools/mcp-client-manager.ts1001 this.eventEmitter?.emit('mcp-client-update', this.clients);
LOWpackages/core/src/tools/mcp-client-manager.ts1021 // its tracking reference removed, not its underlying
LOWpackages/core/src/tools/mcp-client-manager.ts1121 // `discoverMcpToolsForServerInternal` is reachable from
LOWpackages/core/src/tools/mcp-client-manager.ts1141 // previously bypassed the budget gate, so a server refused at startup
LOWpackages/core/src/tools/mcp-client-manager.ts1161 // freshly reserved the slot. Used in the connect-failure catch
LOWpackages/core/src/tools/mcp-client-manager.ts1221
LOWpackages/core/src/tools/mcp-client-manager.ts1241 // The standalone `evaluateBudgetState` that used to live here
LOWpackages/core/src/tools/mcp-client-manager.ts1261 // transient reconnect hiccup shouldn't lose that.
LOWpackages/core/src/tools/mcp-client-manager.ts1581 // Find servers that are new or have changed configuration
LOWpackages/core/src/tools/mcp-client-manager.ts1601
LOWpackages/core/src/tools/mcp-client-manager.ts1621 continue;
LOWpackages/core/src/tools/mcp-client-manager.ts1641 // Refusal still happens — just inside the inner call. The
LOWpackages/core/src/tools/mcp-client-manager.ts1761 // the live `toolRegistry` and re-emits `mcp-client-update`.
LOWpackages/core/src/tools/mcp-client-manager.ts1781 `Forced disconnect of timed-out server '${serverName}' threw: ${getErrorMessage(err)}`,
LOWpackages/core/src/tools/mcp-client-manager.ts1801 // PR 14 fix (review #4247 wenshao R5 line 956 + R8 #4 line
LOWpackages/core/src/tools/mcp-client-manager.ts1941 // PR 14 fix (review #4247 wenshao R9 #6 line 1521): hoist the
LOWpackages/core/src/tools/mcp-client-manager.ts1961 // threaded execution model. If the manager ever grows an
LOWpackages/core/src/tools/mcp-client-manager.ts1981
LOWpackages/core/src/tools/mcp-client-manager.ts2001 throw new BudgetExhaustedError(
LOWpackages/core/src/tools/mcp-client-manager.ts2061 try {
LOWpackages/core/src/tools/mcp-client-manager.ts2081 // were a no-op, the orphan transport would survive with
LOWpackages/core/src/tools/mcp-client-manager.ts2121 //
LOWpackages/core/src/tools/priorReadEnforcement.ts181 type: ToolErrorType.FILE_CHANGED_SINCE_READ,
LOWpackages/core/src/tools/mcp-client.test.ts641 // Simulate the disable path running before connect's catch fires.
484 more matches not shown…
Verbosity Indicators78 hits · 129 pts
SeverityFileLineSnippet
LOWintegration-tests/concurrent-runner/runner.py904 # Step 1: Create worktree
LOWintegration-tests/concurrent-runner/runner.py911 # Step 2: Run CLI
LOWintegration-tests/concurrent-runner/runner.py916 # Step 3: Success
LOWintegration-tests/concurrent-runner/runner.py937 # Step 4: Capture git diff (before cleanup)
LOWintegration-tests/concurrent-runner/runner.py953 # Step 5: Collect session log (before cleanup)
LOWintegration-tests/concurrent-runner/runner.py976 # Step 7: Cleanup
LOW…tion-tests/interactive/file-system-interactive.test.ts45 // Step 1: Read the file
LOW…tion-tests/interactive/file-system-interactive.test.ts59 // Step 2: Write the file
LOWpackages/core/src/tools/computer-use/bootstrap.ts168 // Step 1: install approval gate.
LOWpackages/core/src/tools/computer-use/bootstrap.ts184 // Step 2: spawn (idempotent). Remember whether THIS call performed
LOWpackages/core/src/tools/computer-use/bootstrap.ts191 // Step 3: macOS permission probe + guide.
LOWpackages/core/src/core/geminiChat.test.ts1834 // Step 1: auto-compression fails — counter increments on the chat.
LOWpackages/core/src/core/geminiChat.test.ts1859 // Step 2: a forced /compress succeeds. After this, the counter must
LOWpackages/core/src/core/geminiChat.test.ts1878 // Step 3: next auto-compression sees the reset counter.
LOWpackages/core/src/core/geminiChat.test.ts2455 // Step 1: latch the breaker via MAX_CONSECUTIVE_FAILURES below-hard
LOWpackages/core/src/core/geminiChat.test.ts2487 // Step 2: bump lastPromptTokenCount into hard tier and send again.
LOWpackages/core/src/core/geminiChat.test.ts2519 // Step 3: verify the post-call reset took effect on the chat. A
LOW…core/src/core/openaiContentGenerator/converter.test.ts3689 // Step 1: Simulate what transformMcpContentToParts returns for a Figma
LOW…core/src/core/openaiContentGenerator/converter.test.ts3698 // Step 2: convertToFunctionResponse wraps the MCP result
LOW…core/src/core/openaiContentGenerator/converter.test.ts3707 // Step 3: Build the conversation history (model tool call + tool result)
LOW…core/src/core/openaiContentGenerator/converter.test.ts3727 // Step 4: Convert to OpenAI format
LOWpackages/core/src/extension/marketplace.ts211 // Step 1: Parse source into repo and optional pluginName
LOWpackages/core/src/extension/marketplace.ts218 // Step 2: Determine repo type with correct priority order
LOWpackages/core/src/extension/marketplace.ts281 // Step 3: If marketplace config exists, update type to marketplace
LOWpackages/core/src/extension/gemini-converter.ts79 // Step 1: Copy all files and directories to temporary directory
LOWpackages/core/src/extension/gemini-converter.ts82 // Step 2: Convert TOML commands to Markdown in commands folder
LOWpackages/core/src/extension/gemini-converter.ts88 // Step 3: Create qwen-extension.json with converted config
LOWpackages/core/src/extension/claude-converter.ts368 // Step 1: Load marketplace.json
LOWpackages/core/src/extension/claude-converter.ts392 // Step 2: Resolve plugin source directory based on source field
LOWpackages/core/src/extension/claude-converter.ts409 // Step 3: Load and merge plugin.json if exists (based on strict mode)
LOWpackages/core/src/extension/claude-converter.ts429 // Step 4: Resolve MCP servers from JSON files if needed
LOWpackages/core/src/extension/claude-converter.ts450 // Step 5: Create temporary directory for converted extension
LOWpackages/core/src/extension/claude-converter.ts454 // Step 6: Copy plugin files to temporary directory
LOWpackages/core/src/extension/claude-converter.ts485 // Step 7: Handle hooks from file paths if needed
LOWpackages/core/src/extension/claude-converter.ts520 // Step 9: Convert collected agent files from Claude format to Qwen format
LOWpackages/core/src/extension/claude-converter.ts524 // Step 10: Convert to Qwen format config
LOWpackages/core/src/extension/claude-converter.ts527 // Step 11: Write qwen-extension.json
LOWpackages/core/src/models/modelsConfig.test.ts343 // Step 1: Switch to a provider model - this applies provider config
LOWpackages/core/src/models/modelsConfig.test.ts363 // Step 2: User manually sets credentials via updateCredentials
LOWpackages/core/src/models/modelsConfig.ts928 // Step 1: If modelId exists in registry, always use config from modelRegistry
LOWpackages/core/src/models/modelsConfig.ts992 // Step 2: Check if there are existing credentials from other sources (not modelProviders)
LOWpackages/core/src/models/modelsConfig.ts1031 // Step 3: Fall back to default model for the authType
LOWpackages/core/src/models/modelsConfig.ts1041 // Step 4: No default available - leave generationConfig incomplete
LOWpackages/cli/src/ui/utils/customBanner.ts273 // Step 1: refuse non-regular files BEFORE opening. On POSIX, opening a
LOWpackages/cli/src/ui/utils/customBanner.ts297 // Step 2: open with O_NOFOLLOW (POSIX only) so a TOCTOU symlink swap
LOWpackages/cli/src/config/settings.ts751 // Step 1: Load from .env files (higher priority than settings.env)
LOWpackages/cli/src/config/settings.ts792 // Step 2: settings.env fallback (lowest priority, no-override).
LOWpackages/cli/src/config/migration/versions/v2-to-v3.ts157 // Step 1: Handle consolidated paths (multiple old paths → single new path)
LOWpackages/cli/src/config/migration/versions/v2-to-v3.ts191 // Step 2: Handle remaining individual disable* → enable* mappings
LOWpackages/cli/src/config/migration/versions/v2-to-v3.ts214 // Step 3: Always update version to 3
LOWpackages/cli/src/config/migration/versions/v1-to-v2.ts137 // Step 1: Map known V1 keys to V2 nested paths
LOWpackages/cli/src/config/migration/versions/v1-to-v2.ts180 // Step 2: Map V1 disable* keys to V2 nested disable* paths
LOWpackages/cli/src/config/migration/versions/v1-to-v2.ts198 // Step 3: Preserve mcpServers at the top level
LOWpackages/cli/src/config/migration/versions/v1-to-v2.ts204 // Step 4: Carry over any unrecognized keys (including unknown nested objects)
LOWpackages/cli/src/config/migration/versions/v1-to-v2.ts259 // Step 5: Set version to 2
LOWpackages/cli/src/utils/writeWithBackup.ts80 // Step 1: Write to temporary file
LOWpackages/cli/src/utils/writeWithBackup.ts83 // Step 2: If target exists, back it up
LOWpackages/cli/src/utils/writeWithBackup.ts114 // Step 3: Rename temp file to target
LOWpackages/cli/src/utils/osc.test.ts215 // Step 1: title with e=1 (base64)
LOWpackages/cli/src/utils/osc.test.ts219 // Step 2: body with e=1 (base64)
18 more matches not shown…
Cross-Language Confusion13 hits · 70 pts
SeverityFileLineSnippet
HIGHpackages/sdk-python/tests/unit/test_query_core.py481 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py491 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py125 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py146 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py181 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py236 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py250 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py271 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py279 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py333 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py347 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py406 transport.push(
HIGHpackages/sdk-python/tests/unit/test_query_core.py420 transport.push(
Excessive Try-Catch Wrapping43 hits · 66 pts
SeverityFileLineSnippet
LOWintegration-tests/concurrent-runner/runner.py246 except Exception:
LOWintegration-tests/concurrent-runner/runner.py346 except Exception as e:
LOWintegration-tests/concurrent-runner/runner.py926 except Exception as e:
LOWintegration-tests/concurrent-runner/runner.py950 except Exception as e:
LOWintegration-tests/concurrent-runner/runner.py963 except Exception as e:
MEDIUMintegration-tests/concurrent-runner/runner.py1065 print(f"Error: Config file not found: {args.config}", file=sys.stderr)
LOWintegration-tests/concurrent-runner/runner.py1077 except Exception as e:
MEDIUMdocs/users/features/hooks.md1262 print(f"Error: Invalid JSON input: {e}", file=sys.stderr)
MEDIUMdocs/developers/sdk-python.md65 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMdocs/developers/sdk-python.md111 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMdocs/developers/sdk-python.md268 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMdocs/developers/sdk-python.md328 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMdocs/developers/sdk-python.md369 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMdocs/developers/sdk-python.md401 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMdocs/developers/sdk-python.md429 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMdocs/developers/sdk-python.md462 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md59 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md103 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md201 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md272 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md317 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md349 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md377 print(f"Error: {error.get('message', 'Unknown error')}")
MEDIUMpackages/sdk-python/README.md409 print(f"Error: {error.get('message', 'Unknown error')}")
LOWpackages/sdk-python/scripts/smoke_real.py365 except Exception as exc:
LOWpackages/sdk-python/src/qwen_code_sdk/query.py114 except Exception as exc:
LOWpackages/sdk-python/src/qwen_code_sdk/query.py132 except Exception as exc:
LOWpackages/sdk-python/src/qwen_code_sdk/query.py156 except Exception as exc: # pragma: no cover - critical propagation path
LOWpackages/sdk-python/src/qwen_code_sdk/query.py208 except Exception as exc: # pragma: no cover - fatal background path
LOWpackages/sdk-python/src/qwen_code_sdk/query.py245 except Exception as exc:
LOWpackages/sdk-python/src/qwen_code_sdk/query.py290 except Exception as exc:
LOWpackages/sdk-python/src/qwen_code_sdk/query.py461 except Exception as exc:
MEDIUMpackages/sdk-python/src/qwen_code_sdk/query.py110def _initialize(self) -> None:
MEDIUMpackages/sdk-python/src/qwen_code_sdk/query.py117def _send_single_turn_prompt(self) -> None:
MEDIUMpackages/sdk-python/src/qwen_code_sdk/query.py141def _message_router(self) -> None:
MEDIUMpackages/sdk-python/src/qwen_code_sdk/query.py203def runner() -> None:
LOWpackages/sdk-python/src/qwen_code_sdk/transport.py105 except Exception:
LOWpackages/sdk-python/src/qwen_code_sdk/sync_query.py53 except Exception:
LOWpackages/sdk-python/src/qwen_code_sdk/sync_query.py75 except Exception as exc:
LOWpackages/sdk-python/src/qwen_code_sdk/sync_query.py164 except Exception:
LOWpackages/sdk-python/src/qwen_code_sdk/sync_query.py174 except Exception:
LOWpackages/sdk-python/src/qwen_code_sdk/sync_query.py186 except Exception:
LOWpackages/sdk-python/src/qwen_code_sdk/sync_query.py207 except Exception:
Unused Imports57 hits · 46 pts
SeverityFileLineSnippet
LOWintegration-tests/concurrent-runner/runner.py9
LOWintegration-tests/concurrent-runner/runner.py20
LOWintegration-tests/concurrent-runner/runner.py30
LOWintegration-tests/concurrent-runner/runner.py30
LOWpackages/sdk-python/tests/unit/test_validation.py1
LOWpackages/sdk-python/tests/unit/test_transport.py1
LOWpackages/sdk-python/tests/unit/test_query_core.py1
LOWpackages/sdk-python/tests/integration/conftest.py1
LOW…ckages/sdk-python/tests/integration/test_sync_query.py1
LOW…kages/sdk-python/tests/integration/test_async_query.py1
LOWpackages/sdk-python/scripts/smoke_real.py8
LOWpackages/sdk-python/src/qwen_code_sdk/query.py3
LOWpackages/sdk-python/src/qwen_code_sdk/transport.py3
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py3
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py8
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py8
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py8
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py8
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py8
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py15
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py39
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py39
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/__init__.py41
LOWpackages/sdk-python/src/qwen_code_sdk/sync_query.py3
LOWpackages/sdk-python/src/qwen_code_sdk/types.py3
LOWpackages/sdk-python/src/qwen_code_sdk/errors.py3
LOWpackages/sdk-python/src/qwen_code_sdk/json_lines.py3
LOWpackages/sdk-python/src/qwen_code_sdk/validation.py3
AI Slop Vocabulary7 hits · 20 pts
SeverityFileLineSnippet
MEDIUMpackages/core/src/tools/glob.test.ts349 path: '../../../../../../../../../../tmp', // Definitely outside
MEDIUMpackages/core/src/utils/memoryImportProcessor.test.ts408 // This test verifies the robust findCodeRegions implementation
MEDIUMpackages/core/src/utils/memoryDiscovery.test.ts66 // Use maxRetries option for robust cleanup without race conditions
MEDIUMpackages/core/src/utils/filesearch/fileSearch.test.ts554 // Perform a more specific search that should leverage the broad search's cached results
MEDIUM…ui/components/messages/InlineParallelAgentsDisplay.tsx178 // the component is robust to mixed groups (e.g. a sibling Shell call
MEDIUMpackages/cli/src/ui/hooks/useGeminiStream.test.tsx2490 // handler's guard robust against `addItem` skipping a
MEDIUMpackages/cli/src/ui/hooks/useToolScheduler.test.ts203 // to find a robust way to test these scenarios.
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippet
HIGHintegration-tests/cli/notebook-edit.test.ts141print(result)
HIGHpackages/core/src/tools/todoWrite.ts166print("Hello World")
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippet
HIGHdocs/users/configuration/model-providers.md341> BAILIAN_CODING_PLAN_API_KEY=your-api-key-here
HIGHdocs/developers/tools/web-search.md165 "TAVILY_API_KEY": "your-api-key-here"
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICAL…/openaiContentGenerator/openaiContentGenerator.test.ts175 generatorWithClient.pipeline.client.embeddings.create.mockRejectedValue(
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMintegration-tests/concurrent-runner/runner.py214 # Create a unique branch for this worktree based on the specified branch
MEDIUMpackages/webui/scripts/add-license-header.sh34 # Create a temporary file with the license header followed by the original content
MEDIUM.github/workflows/release-sdk.yml290 # Create a metadata file to record which CLI version was bundled
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippet
LOWpackages/core/src/core/geminiChat.test.ts5515 const filler = 'lorem ipsum dolor sit amet '.repeat(20);
LOWpackages/core/src/core/geminiChat.test.ts5515 const filler = 'lorem ipsum dolor sit amet '.repeat(20);
LOW…kages/cli/src/ui/components/shared/text-buffer.test.ts1439 const longText = `not only five centuries, but also the leap into electronic typesetting, remaining essentially un
LOW…kages/cli/src/ui/components/shared/text-buffer.test.ts1442It is a long established fact that a reader will be distracted by the readable content of a page when looking at its lay
LOW…kages/cli/src/ui/components/shared/text-buffer.test.ts1445Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature
LOWpackages/cli/src/ui/hooks/useCommandCompletion.test.ts241 const text = 'user@example.com';
LOW…webui/src/components/ChatViewer/ChatViewer.stories.tsx145 'You can define an interface in TypeScript like this:\n\n```typescript\ninterface User {\n id: number;\n name:
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippet
LOW…al-bench/ci-tasks/hello-world/tests/setup-uv-pytest.sh12# Check if we're in a valid working directory
LOWscripts/create_alias.sh24# Check if the alias already exists
LOWpackages/webui/scripts/add-license-header.sh30 # Check if the file starts with the license header
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippet
LOWscripts/test-rewind-e2e.sh18# Usage:
LOWscripts/installation/install-qwen-with-source.sh7# Usage:
LOWscripts/installation/install-qwen-standalone.sh7# Usage:
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippet
LOWintegration-tests/concurrent-runner/runner.py892
LOWpackages/sdk-python/src/qwen_code_sdk/transport.py91
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUM…webui/src/components/ChatViewer/ChatViewer.stories.tsx112 "To create a React component, you can use either a function or a class. Here's a simple example of a functional