Repository Analysis

cline/cline

Autonomous coding agent as an SDK, IDE extension, or CLI assistant.

3.2 Likely human-written View on GitHub
3.2
Adjusted Score
3.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
62,533
Stars
TypeScript
Language
648,406
Lines of Code
2889
Files
1371
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 46HIGH 4MEDIUM 67LOW 1254

Pattern Findings

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

Hyper-Verbose Identifiers1083 hits · 1100 pts
SeverityFileLineSnippet
LOWsdk/examples/plugins/gitignore-read-files-guard.ts141function isWorkspaceGitignoreSource(source: string): boolean {
LOWsdk/examples/plugins/gitignore-read-files-guard.ts184async function checkIgnoredByWorkspaceGitignore(
LOWsdk/examples/plugins/typescript-lsp/index.ts95function getOrCreateService(tsconfigPath: string) {
LOWsdk/examples/plugins/agents-squad/index.ts76function resolveGlobalAgentsDirPath(): string {
LOWsdk/examples/plugins/agents-squad/index.ts329function resolveSubagentBackendMode(value: string): SubagentBackendMode {
LOWsdk/scripts/check-publish.ts112function containsDevelopmentExportCondition(value: unknown): boolean {
LOWsdk/packages/core/src/settings/settings-service.ts310export function createCoreSettingsService(): CoreSettingsService {
LOWsdk/packages/core/src/types/provider-settings.ts51export function emptyStoredProviderSettings(): StoredProviderSettings {
LOWsdk/packages/core/src/types/common.ts29export function isNonTerminalSessionStatus(
LOWsdk/packages/core/src/auth/oca.ts269async function exchangeAuthorizationCode(input: {
LOWsdk/packages/core/src/auth/cline.ts206function requireClineTokenResponse(
LOWsdk/packages/core/src/auth/cline.ts216async function requestWorkOSDeviceAuthorization(
LOWsdk/packages/core/src/auth/cline.ts397async function exchangeAuthorizationCode(
LOWsdk/packages/core/src/auth/utils.ts184export function isCredentialLikelyExpired(
LOWsdk/packages/core/src/auth/utils.ts191export async function resolveAuthorizationCodeInput(input: {
LOWsdk/packages/core/src/auth/client.ts29export function createOAuthClientCallbacks(
LOWsdk/packages/core/src/auth/codex.ts93async function exchangeAuthorizationCode(
LOWsdk/packages/core/src/auth/codex.ts218function resolveCallbackServerConfig(): {
LOWsdk/packages/core/src/auth/codex.ts403export async function getValidOpenAICodexCredentials(
LOWsdk/packages/core/src/auth/codex.ts446export function isOpenAICodexTokenExpired(
LOWsdk/packages/core/src/auth/codex.ts453export function normalizeOpenAICodexCredentials(
LOW…/packages/core/src/runtime/tools/subprocess-sandbox.ts73export function resolveSubprocessRuntimeExecutable(
LOW…/packages/core/src/runtime/tools/subprocess-sandbox.ts106export function buildSubprocessSandboxCommand(
LOWsdk/packages/core/src/runtime/tools/tool-approval.ts29export async function requestDesktopToolApproval(
LOWsdk/packages/core/src/runtime/host/history.ts75function normalizeHistoryScanLimit(limit: number): number {
LOWsdk/packages/core/src/runtime/host/history.ts90function extractSessionRecencyToken(sessionId: string): number {
LOWsdk/packages/core/src/runtime/host/history.ts263function summarizeCostFromMessages(messages: LlmsProviders.Message[]): number {
LOWsdk/packages/core/src/runtime/host/history.ts271function inferProviderAndModelFromMessages(messages: LlmsProviders.Message[]): {
LOWsdk/packages/core/src/runtime/host/history.ts373function shouldProjectLegacyRunningSessionAsIdle(
LOWsdk/packages/core/src/runtime/host/history.ts386async function projectLegacyRunningRowsAsIdle(
LOWsdk/packages/core/src/runtime/host/history.ts492export async function listSessionHistoryFromBackend(
LOWsdk/packages/core/src/runtime/host/host.ts17function resolveConfiguredBackendMode(
LOWsdk/packages/core/src/runtime/host/host.ts55async function reconcileDeadSessionsIfSupported(
LOW…packages/core/src/runtime/host/runtime-host-support.ts47export async function readPersistedMessagesFile(
LOW…kages/core/src/runtime/host/local-runtime-host.test.ts4839 function createTaskCompletedAdapter() {
LOW…kages/core/src/runtime/host/local-runtime-host.test.ts4853 function createSubmitAndExitToolCall(): NonNullable<
LOW…kages/core/src/runtime/host/local-runtime-host.test.ts4886 function countTaskCompletedEmissions(
LOW…runtime/capabilities/normalize-runtime-capabilities.ts3export function normalizeRuntimeCapabilities(
LOW…ackages/core/src/runtime/config/agent-message-codec.ts85export function agentMessageToMessageWithMetadata(
LOW…ackages/core/src/runtime/config/agent-message-codec.ts102export function agentMessagesToMessagesWithMetadata(
LOW…ackages/core/src/runtime/config/agent-message-codec.ts181function toolResultContentToAgentPart(
LOWsdk/packages/core/src/runtime/safety/rules.ts10export function formatRulesForSystemPrompt(
LOWsdk/packages/core/src/runtime/safety/rules.ts23export function mergeRulesForSystemPrompt(
LOWsdk/packages/core/src/runtime/safety/rules.ts35export function listEnabledRulesFromWatcher(
LOWsdk/packages/core/src/runtime/safety/rules.ts45export function loadRulesForSystemPromptFromWatcher(
LOWsdk/packages/core/src/runtime/safety/mistake-tracker.ts157export function buildMistakeLimitStopMessage(input: {
LOWsdk/packages/core/src/runtime/safety/mistake-tracker.ts190async function resolveConsecutiveMistakeDecision(
LOW…ore/src/runtime/orchestration/runtime-event-adapter.ts109function statusToLegacyFinishReason(
LOW…s/core/src/runtime/orchestration/user-input-builder.ts118async function buildUserFileContentBlock(
LOW…/core/src/runtime/orchestration/runtime-parity.test.ts31function legacyBuildRuntimeEnvironment(
LOW…ages/core/src/runtime/orchestration/runtime-builder.ts125function isSkillsToolEnabledForSession(input: {
LOW…ages/core/src/runtime/orchestration/runtime-builder.ts224function isRuntimeLifecycleShutdownReason(reason: string | undefined): boolean {
LOW…ime/orchestration/session-runtime-orchestrator.test.ts1340function makeRecordingRuntimeFactory(
LOW…ime/orchestration/session-runtime-orchestrator.test.ts1626function failedStructuredToolTurnEvents(): AgentRuntimeEvent[] {
LOWsdk/packages/core/src/remote-config/integration.ts59export function createRemoteConfigSessionMessagesArtifactUploader(): SessionMessagesArtifactUploader {
LOWsdk/packages/core/src/remote-config/integration.ts68export async function prepareRemoteConfigCoreIntegration(
LOWsdk/packages/core/src/extensions/tools/helpers.ts52export function normalizeReadFileRequests(input: unknown): ReadFileRequest[] {
LOWsdk/packages/core/src/extensions/tools/helpers.ts108export function normalizeRunCommandsInput(
LOWsdk/packages/core/src/extensions/tools/runtime.ts206export function getCoreBuiltinToolCatalog(
LOWsdk/packages/core/src/extensions/tools/runtime.ts212export function getCoreDefaultEnabledToolIds(
1023 more matches not shown…
Hallucination Indicators46 hits · 530 pts
SeverityFileLineSnippet
CRITICAL…rc/core/storage/__tests__/syncRemoteMcpServers.test.ts126 result.mcpServers.should.not.have.property("old-server")
CRITICAL…rc/core/storage/__tests__/syncRemoteMcpServers.test.ts161 result.mcpServers.should.not.have.property("remove-server")
CRITICAL…rc/core/storage/__tests__/syncRemoteMcpServers.test.ts174 result.mcpServers.should.not.have.property("server-a")
CRITICAL…rc/core/storage/__tests__/syncRemoteMcpServers.test.ts175 result.mcpServers.should.not.have.property("server-b")
CRITICAL…/core/task/tools/utils/__tests__/ToolHookUtils.test.ts41 config.taskState.userMessageContent.should.have.length(0)
CRITICAL…/core/task/tools/utils/__tests__/ToolHookUtils.test.ts92 config.taskState.userMessageContent.should.have.length(0)
CRITICAL…scode/src/core/api/providers/__tests__/bedrock.test.ts1141 input.toolConfig.tools.should.have.length(1)
CRITICAL…vscode/src/core/api/providers/__tests__/gemini.test.ts120 requestArgs.config.should.not.have.property("maxOutputTokens")
CRITICAL…scode/src/core/api/adapters/__tests__/adapters.test.ts435 input.diff.should.be.a.String()
CRITICAL…scode/src/core/api/adapters/__tests__/adapters.test.ts436 input.diff.should.not.be.empty()
CRITICAL…c/core/api/transform/__tests__/thinking-traces.test.ts47 assistantMsg.reasoning_details.should.be.an.Array()
CRITICAL…c/core/api/transform/__tests__/thinking-traces.test.ts111 assistantMsg.reasoning_details.should.be.an.Array()
CRITICALapps/vscode/src/test/slash-commands.test.ts50 response.commands.length.should.be.greaterThanOrEqual(BASE_SLASH_COMMANDS.length)
CRITICALapps/vscode/src/test/slash-commands.test.ts259 response.commands.length.should.be.greaterThanOrEqual(BASE_SLASH_COMMANDS.length)
CRITICALapps/vscode/src/test/slash-commands.test.ts282 response.commands.length.should.be.greaterThanOrEqual(BASE_SLASH_COMMANDS.length)
CRITICALapps/vscode/src/__tests__/config.test.ts448 ClineEndpoint.config.environment.should.not.equal(Environment.selfHosted)
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts75 cbs.stubs.deleteConnection.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts76 cbs.stubs.connectToServer.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts98 cbs.stubs.deleteConnection.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts112 cbs.stubs.deleteConnection.calledOnce.should.be.true()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts113 cbs.stubs.connectToServer.calledOnce.should.be.true()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts117 cbs.stubs.notifyWebviewOfServerChanges.called.should.be.true()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts132 cbs.stubs.delay.callCount.should.equal(2)
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts138 cbs.stubs.connectToServer.callCount.should.equal(2)
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts211 cbs.stubs.appendErrorMessage.calledOnce.should.be.true()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts212 cbs.stubs.connectToServer.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts229 cbs.stubs.connectToServer.callCount.should.equal(3)
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts233 cbs.stubs.delay.callCount.should.equal(3)
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts253 cbs.stubs.delay.calledOnce.should.be.true()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts254 cbs.stubs.deleteConnection.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts255 cbs.stubs.connectToServer.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts267 cbs.stubs.deleteConnection.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts268 cbs.stubs.connectToServer.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts87 cbs.stubs.deleteConnection.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts169 cbs.stubs.connectToServer.callCount.should.equal(TEST_CONFIG.maxAttempts)
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts174 cbs.stubs.appendErrorMessage.calledOnce.should.be.true()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts196 cbs.stubs.notifyWebviewOfServerChanges.called.should.be.true()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts198 cbs.stubs.appendErrorMessage.called.should.be.false()
CRITICAL…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts299 cbs.stubs.appendErrorMessage.calledOnce.should.be.true()
CRITICAL…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts90 client.request.calledOnce.should.be.true()
CRITICAL…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts101 client.request.calledOnce.should.be.true()
CRITICAL…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts166 requestOptions.timeout.should.be.a.Number()
CRITICAL…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts213 telemetryService.captureMcpToolCall.calledTwice.should.be.true()
CRITICAL…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts234 telemetryService.captureMcpToolCall.calledTwice.should.be.true()
CRITICAL…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts273 result.content.should.be.an.Array()
CRITICAL…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts284 result.content.should.be.an.Array()
Decorative Section Separators54 hits · 158 pts
SeverityFileLineSnippet
MEDIUMsdk/scripts/release.ts24// ── CLI args ──────────────────────────────────────────────────────────────────
MEDIUMsdk/scripts/release.ts75// ── Constants ─────────────────────────────────────────────────────────────────
MEDIUMsdk/scripts/release.ts83// ── Helpers ───────────────────────────────────────────────────────────────────
MEDIUMsdk/scripts/release.ts378// ── SDK Release ───────────────────────────────────────────────────────────────
MEDIUMsdk/scripts/release.ts471// ── CLI Release ───────────────────────────────────────────────────────────────
MEDIUMsdk/scripts/release.ts527// ── Main ──────────────────────────────────────────────────────────────────────
MEDIUMsdk/packages/core/src/types/session.ts84// ── Persistence interfaces ────────────────────────────────────────────
MEDIUM…k/packages/core/src/runtime/host/local-runtime-host.ts270 // ── Public API ──────────────────────────────────────────────────────
MEDIUM…k/packages/core/src/runtime/host/local-runtime-host.ts944 // ── Turn execution ──────────────────────────────────────────────────
MEDIUM…k/packages/core/src/runtime/host/local-runtime-host.ts1251 // ── Session lifecycle ───────────────────────────────────────────────
MEDIUM…k/packages/core/src/runtime/host/local-runtime-host.ts1525 // ── OAuth & auth ────────────────────────────────────────────────────
MEDIUM…k/packages/core/src/runtime/host/local-runtime-host.ts1571 // ── Utility methods ─────────────────────────────────────────────────
MEDIUM…k/packages/core/src/runtime/host/local-runtime-host.ts1738 // ── Session service invocation ──────────────────────────────────────
MEDIUMsdk/packages/shared/src/vcr.ts41// ── Types ───────────────────────────────────────────────────────────────
MEDIUMsdk/packages/shared/src/vcr.ts62// ── Sensitive data sanitization ─────────────────────────────────────────
MEDIUMsdk/packages/shared/src/vcr.ts351// ── URL helpers ─────────────────────────────────────────────────────────
MEDIUMsdk/packages/shared/src/vcr.ts451// ── Config resolution ───────────────────────────────────────────────────
MEDIUMsdk/packages/shared/src/vcr.ts481// ── Record mode ─────────────────────────────────────────────────────────
MEDIUMsdk/packages/shared/src/vcr.ts661// ── Playback mode ───────────────────────────────────────────────────────
MEDIUMsdk/packages/shared/src/vcr.ts877// ── Public API ──────────────────────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts719 // ── Chat session commands ──────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts729 // ── Session data reading ──────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts744 // ── Process context ───────────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts752 // ── Tool approvals (in-memory) ────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts798 // ── Session discovery ─────────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts929 // ── Workspace file search ─────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts934 // ── Cline account ──────────────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts951 // ── Provider management ────────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts1048 // ── MCP server management ─────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts1125 // ── Git operations ─────────────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts1151 // ── Routine schedules ─────────────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts1163 // ── User instruction configs ──────────────────────────────────────
MEDIUMsdk/apps/examples/desktop-app/sidecar/commands.ts1195 // ── Native OS commands ────────────────────────────────────────────
MEDIUMapps/vscode/scripts/run-extension-host.sh33# ┌────────────┬────────────┬────────────┬────────────┐
MEDIUMapps/vscode/scripts/run-extension-host.sh35# └────────────┴────────────┴────────────┴────────────┘
MEDIUMapps/vscode/src/core/storage/utils/state-helpers.ts20// ─── File-backed storage readers (used by StateManager) ────────────────────
MEDIUM…lers/__tests__/PathToolHandlers.gracefulErrors.test.ts117// ─── ListCodeDefinitionNamesToolHandler ─────────────────────────────────────
MEDIUM…lers/__tests__/PathToolHandlers.gracefulErrors.test.ts266// ─── ListFilesToolHandler ───────────────────────────────────────────────────
MEDIUM…lers/__tests__/PathToolHandlers.gracefulErrors.test.ts404// ─── SearchFilesToolHandler ─────────────────────────────────────────────────
MEDIUM…ps/vscode/src/hosts/vscode/vscode-to-file-migration.ts109 // ─── 1. Migrate global state + secrets (if needed) ─────────────
MEDIUM…ps/vscode/src/hosts/vscode/vscode-to-file-migration.ts165 // ─── 2. Migrate workspace state (if needed) ────────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts57 // ── basics ──────────────────────────────────────────────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts66 // ── no-op cases ─────────────────────────────────────────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts102 // ── successful reconnect ────────────────────────────────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts141 // ── exhausted retries ───────────────────────────────────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts215 // ── connectToServer failure retries automatically ───────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts239 // ── connection replaced mid-reconnect ───────────────────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts271 // ── resetAttempts ───────────────────────────────────────────────────
MEDIUM…s/mcp/__tests__/StreamableHttpReconnectHandler.test.ts287 // ── error message formatting ────────────────────────────────────────
MEDIUM…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts82 // ── Core fix: undefined arguments → empty object ────────────────────
MEDIUM…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts138 // ── Request structure validation ────────────────────────────────────
MEDIUM…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts171 // ── Error handling ──────────────────────────────────────────────────
MEDIUM…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts226 // ── Telemetry ───────────────────────────────────────────────────────
MEDIUM…ode/src/services/mcp/__tests__/McpHub.callTool.test.ts262 // ── Response handling ───────────────────────────────────────────────
Verbosity Indicators43 hits · 82 pts
SeverityFileLineSnippet
LOWsdk/scripts/release.ts399 // Step 1: Tests
LOWsdk/scripts/release.ts407 // Step 2: Update versions
LOWsdk/scripts/release.ts412 // Step 3: Verify publishability
LOWsdk/scripts/release.ts416 // Step 4: Publish in dependency order
LOWsdk/scripts/release.ts432 // Step 5: Git tag
LOWsdk/scripts/release.ts491 // Step 1: Tests
LOWsdk/scripts/release.ts499 // Step 2: Build all platform binaries
LOWsdk/scripts/release.ts505 // Step 3: Publish to npm
LOWsdk/apps/cli/script/publish-npm.ts242// Step 1: Publish platform-specific packages (in parallel)
LOWsdk/apps/cli/script/publish-npm.ts260// Step 2: Generate and publish the main wrapper package
LOWsdk/apps/examples/desktop-app/sidecar/chat-test.ts100 // Step 1: Start a session
LOWsdk/apps/examples/desktop-app/sidecar/chat-test.ts127 // Step 2: Send a prompt
LOWapps/vscode/webview-ui/src/App.stories.tsx308 // Step 0: User type selection should be visible
LOWapps/vscode/webview-ui/src/App.stories.tsx326 // Step 1: Model selection should be visible
LOW…ui/src/components/chat/chat-view/utils/messageUtils.ts422 // Step 1: Find the MOST RECENT api_req_started overall (search backwards)
LOW…ui/src/components/chat/chat-view/utils/messageUtils.ts437 // Step 2: Determine if most recent api_req is complete (has cost) or incomplete (no cost)
LOW…ui/src/components/chat/chat-view/utils/messageUtils.ts457 // Step 3: Determine if tool group is in-flight
LOW…ui/src/components/chat/chat-view/utils/messageUtils.ts510 // Step 1: Find the MOST RECENT api_req_started overall (search backwards)
LOW…ui/src/components/chat/chat-view/utils/messageUtils.ts530 // Step 2: Determine if most recent api_req is complete (has cost) or incomplete (no cost)
LOW…ui/src/components/chat/chat-view/utils/messageUtils.ts539 // Step 3: Determine which tools are "in current activities"
LOWapps/vscode/scripts/run-extension-host.sh19# Step 1: Build protos (everything depends on this)
LOWapps/vscode/scripts/run-extension-host.sh23# Step 2: Build webview once
LOWapps/vscode/scripts/run-extension-host.sh27# Step 3: Kill existing session if one is running
LOWapps/vscode/scripts/run-extension-host.sh31# Step 4: Create tmux session with 4 vertical panes
LOWapps/vscode/src/core/task/index.ts1201 // since we don't use api_req_finished anymore, we need to check if the last api_req_started has a cost value, if it d
LOW…ps/vscode/src/test/hook-management-integration.test.ts88 // Step 1: Verify hook doesn't exist initially
LOW…ps/vscode/src/test/hook-management-integration.test.ts92 // Step 2: Create the hook
LOW…ps/vscode/src/test/hook-management-integration.test.ts99 // Step 3: Verify hook was created and is disabled (644 permissions)
LOW…ps/vscode/src/test/hook-management-integration.test.ts115 // Step 4: Enable the hook
LOW…ps/vscode/src/test/hook-management-integration.test.ts123 // Step 5: Verify hook is now enabled (executable)
LOW…ps/vscode/src/test/hook-management-integration.test.ts133 // Step 6: Disable the hook
LOW…ps/vscode/src/test/hook-management-integration.test.ts141 // Step 7: Verify hook is now disabled again
LOW…ps/vscode/src/test/hook-management-integration.test.ts154 // Step 8: Delete the hook
LOW…ps/vscode/src/test/hook-management-integration.test.ts161 // Step 9: Verify hook is gone
LOW…ps/vscode/src/test/hook-management-integration.test.ts170 // Step 10: Final refresh to confirm clean state
LOWapps/vscode/src/standalone/cline-core.ts237 // Step 1: Tell the paired host bridge to shut down
LOWapps/vscode/src/standalone/cline-core.ts245 // Step 2: Clean up lock manager entry
LOWapps/vscode/src/standalone/cline-core.ts261 // Step 3: Tear down services
LOWapps/vscode/src/standalone/cline-core.ts274 // Step 4: Exit the process
LOW…ode/src/services/auth/oca/providers/OcaAuthProvider.ts200 // Step 1: Nonce validation
LOW…ode/src/services/auth/oca/providers/OcaAuthProvider.ts211 // Step 2: Get access_token (this is what you'll use for APIs)
LOW…ode/src/services/auth/oca/providers/OcaAuthProvider.ts219 // Step 3: (Optional) Extract user info from id_token for local profile, not for API
LOW…ode/src/services/auth/oca/providers/OcaAuthProvider.ts222 // Step 4: Return only the access_token for downstream use
Over-Commented Block54 hits · 53 pts
SeverityFileLineSnippet
LOWsdk/examples/plugins/weather-metrics.ts41 // process.cwd() or import.meta.url, so it is correct even when --cwd was
LOW…ges/core/src/extensions/plugin/plugin-module-import.ts641 throw new Error("Unable to load jiti");
LOW…ges/llms/src/providers/middleware/split-tool-images.ts1// LanguageModelV3 middleware that recovers image bytes from
LOW…ges/llms/src/providers/middleware/split-tool-images.ts21// tool-result then carries only text — safe for any wire format.
LOW…ckages/llms/src/providers/vendors/openai-compatible.ts21 const provider = createOpenAICompatible({
LOWsdk/apps/cli/script/publish-npm.ts1#!/usr/bin/env bun
LOWsdk/apps/cli/src/tui/palette.ts61// background across every theme: pure black, dark grays, tinted themes like
LOWsdk/apps/cli/src/tests/cli/flags-behavior.test.ts1// ---------------------------------------------------------------------------
LOWsdk/apps/cli/src/tests/interactive/chat.test.ts1// ---------------------------------------------------------------------------
LOW…s/cli/src/tests/headless/per-turn-metrics.live.test.ts1// ---------------------------------------------------------------------------
LOWsdk/apps/cli/src/tests/helpers/process.ts1// ---------------------------------------------------------------------------
LOW…s/vscode/src/core/ignore/ClineIgnoreController.test.ts101
LOW…s/vscode/src/core/ignore/ClineIgnoreController.test.ts121 // const results = [
LOWapps/vscode/src/core/workspace/setup.ts61 // telemetryService.captureWorkspaceInitialized(
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts1// import { constructNewFileContent as cnfc } from "./diff"
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts21// expect(err).to.be.an("error")
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts41// expect(err).to.be.an("error")
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts61// it("should handle incomplete block structure", async () => {
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts81// +++++++ REPLACE`
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts101// it("should handle special characters in search", async () => {
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts121
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts141// ------- SEARCH
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts161// replaced
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts181// const diff = `--- SEARCH
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts201// $^.*
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts221// =======
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts241// +++++++ REPLACE
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts261// Section 3: sed do eiusmod tempor
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts281// +++++++ REPLACE`
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts301
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts321// // expected2 shows the results when processing with original content
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts341// })
LOWapps/vscode/src/core/hooks/templates.ts41 cancel = $false
LOWapps/vscode/src/core/hooks/templates.ts61# }
LOWapps/vscode/src/core/hooks/templates.ts101}
LOWapps/vscode/src/core/hooks/templates.ts141`
LOWapps/vscode/src/core/hooks/templates.ts181`
LOWapps/vscode/src/core/hooks/templates.ts221echo '{"cancel":false,"contextModification":"","errorMessage":""}'
LOWapps/vscode/src/core/hooks/templates.ts261
LOWapps/vscode/src/core/hooks/templates.ts281# executionTimeMs: number
LOWapps/vscode/src/core/hooks/templates.ts321#
LOWapps/vscode/src/core/hooks/templates.ts361# event: string,
LOWapps/vscode/src/core/hooks/templates.ts421# Input: {
LOWapps/vscode/src/core/slash-commands/index.ts81 // - ([a-zA-Z0-9_.:@-]+) : The command name (letters, numbers, underscore, dot, hyphen, colon, @)
LOW…de/src/core/prompts/system-prompt/tools/apply_patch.ts1import { ModelFamily } from "@/shared/prompts"
LOWapps/vscode/src/core/api/transform/o1-format.ts201 // const lastAssistantIndex = findLastIndex(toolsReplaced, (message) => message.role === "assistant")
LOWapps/vscode/src/core/api/transform/o1-format.ts421
LOWapps/vscode/src/shared/multi-root/types.ts21// path: "/Users/dev/frontend",
LOWapps/vscode/src/services/tree-sitter/index.ts41 if (definitions) {
LOWapps/vscode/src/services/mcp/McpOAuthManager.ts141 // when it changes and force re-registration (see clientInformation())
LOWapps/vscode/src/services/mcp/McpOAuthManager.ts201
LOW…/vscode/src/services/glob/__tests__/list-files.test.ts41describe("listFiles gitignore handling", () => {
LOW…/vscode/src/services/glob/__tests__/list-files.test.ts81 // The .gitignore parser handles two kinds of patterns differently:
LOW…/vscode/src/services/glob/__tests__/list-files.test.ts161 // NOTE: We intentionally use "third-party/" instead of "vendor/" here because
Redundant / Tautological Comments16 hits · 26 pts
SeverityFileLineSnippet
LOW.claude/hooks/claude-code-for-web-setup.sh24# Check if GITHUB_TOKEN is set and configure gh
LOW.github/scripts/tests/coverage_check_test.py109 # Check if verbose mode is enabled
LOW.github/scripts/coverage_check/util.py48 # Check if command is in allowed list
LOW.github/scripts/coverage_check/extraction.py79 # Check if file exists and get its size
LOW.github/scripts/coverage_check/extraction.py85 # Check if the directory exists
LOW.github/scripts/coverage_check/workflow.py276 # Check if the coverage files exist
LOW.github/scripts/coverage_check/workflow.py306 # Check if the webview-ui directory exists
LOW.github/scripts/coverage_check/workflow.py348 # Check if we're running in GitHub Actions
LOW.github/scripts/coverage_check/workflow.py415 # Output results for GitHub Actions
LOWapps/vscode/src/core/hooks/templates.ts139# Return result
LOWapps/vscode/src/core/hooks/templates.ts179# Return result
LOWapps/vscode/src/core/hooks/templates.ts220# Return result
LOWapps/vscode/src/core/hooks/templates.ts312# Return result
LOWapps/vscode/src/core/hooks/templates.ts346# Return result
LOWapps/vscode/src/core/hooks/templates.ts465# Return result
LOWapps/vscode/src/core/hooks/templates.ts491# Return result
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippet
HIGHapps/vscode/src/core/task/index.ts3123 // "When providing thinking blocks, the entire sequence of consecutive thinking blocks must match the outputs gener
HIGHapps/vscode/src/services/telemetry/TelemetryService.ts241 // Tracks when users select an option from AI-generated followup questions
HIGHapps/vscode/src/services/telemetry/TelemetryService.ts243 // Tracks when users type a custom response instead of selecting an option from AI-generated followup questions
Fake / Example Data16 hits · 21 pts
SeverityFileLineSnippet
LOWsdk/packages/core/scripts/telemetry-smoke-host.ts155 email: "user@example.com",
LOWsdk/packages/core/src/auth/cline.test.ts35 email: "user@example.com",
LOWsdk/packages/core/src/auth/cline.test.ts189 email: "user@example.com",
LOWsdk/packages/core/src/auth/cline.test.ts219 email: "user@example.com",
LOW…ackages/core/src/account/cline-account-service.test.ts91 { organizationId: "org-1", name: "Acme Corp" },
LOW…ackages/core/src/account/cline-account-service.test.ts117 name: "Acme Corp",
LOWsdk/apps/cli/src/utils/telemetry.activation.test.ts68 email: "user@example.com",
LOWsdk/apps/cli/src/utils/telemetry.activation.test.ts71 organizationName: "Acme Corp",
LOW…vscode/webview-ui/src/components/ui/dialog.stories.tsx181 defaultValue="John Doe"
LOW…de/webview-ui/src/components/chat/ErrorRow.stories.tsx249 clineUser: { id: "user123", email: "user@example.com" },
LOW…onents/mcp/chat-display/McpResponseDisplay.stories.tsx76 "Long response content.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt
LOW…onents/mcp/chat-display/McpResponseDisplay.stories.tsx76 "Long response content.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts259// Section 1: Lorem ipsum dolor sit amet
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts259// Section 1: Lorem ipsum dolor sit amet
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts266// Section 1: Lorem ipsum dolor sit amet
LOW…de/src/core/assistant-message/diff_edge_cases2.test.ts266// Section 1: Lorem ipsum dolor sit amet
Unused Imports19 hits · 19 pts
SeverityFileLineSnippet
LOWsdk/examples/hooks/PostToolUse.py10
LOWsdk/examples/hooks/PreToolUse_InjectContext.py10
LOW.github/scripts/tests/coverage_check_test.py16
LOW.github/scripts/coverage_check/util.py12
LOW.github/scripts/coverage_check/util.py12
LOW.github/scripts/coverage_check/__init__.py7
LOW.github/scripts/coverage_check/__init__.py10
LOW.github/scripts/coverage_check/__init__.py13
LOW.github/scripts/coverage_check/__init__.py13
LOW.github/scripts/coverage_check/__init__.py13
LOW.github/scripts/coverage_check/__init__.py13
LOW.github/scripts/coverage_check/__init__.py16
LOW.github/scripts/coverage_check/__init__.py16
LOW.github/scripts/coverage_check/__init__.py16
LOW.github/scripts/coverage_check/__init__.py19
LOW.github/scripts/coverage_check/extraction.py9
LOW.github/scripts/coverage_check/extraction.py10
LOW.github/scripts/coverage_check/workflow.py9
LOW.github/scripts/coverage_check/workflow.py12
Excessive Try-Catch Wrapping14 hits · 16 pts
SeverityFileLineSnippet
LOWsdk/examples/hooks/PostToolUse.py23 except Exception:
LOWsdk/examples/hooks/PreToolUse_InjectContext.py25 except Exception:
LOWsdk/examples/hooks/PreToolUse_InjectContext.py38 except Exception:
LOW.github/scripts/tests/coverage_check_test.py95 except Exception as e:
LOW.github/scripts/coverage_check/util.py140 except Exception as e:
LOW.github/scripts/coverage_check/util.py162 except Exception as e:
LOW.github/scripts/coverage_check/util.py198 except Exception as e:
LOW.github/scripts/coverage_check/extraction.py100 except Exception as e:
LOW.github/scripts/coverage_check/extraction.py123 except Exception as e:
LOW.github/scripts/coverage_check/extraction.py258 except Exception as e:
LOW.github/scripts/coverage_check/workflow.py292 except Exception as e:
LOW.github/scripts/coverage_check/workflow.py316 except Exception as e:
LOW.github/scripts/coverage_check/workflow.py421 except Exception as e:
LOW.github/scripts/coverage_check/workflow.py431 except Exception as e2:
Self-Referential Comments5 hits · 16 pts
SeverityFileLineSnippet
MEDIUM.github/scripts/tests/coverage_check_test.py202 # Create a temporary comment file
MEDIUM.github/scripts/tests/coverage_check_test.py224 # Create a temporary comment file
MEDIUM.github/scripts/coverage_check/workflow.py333 # Initialize all variables at the start
MEDIUM.github/scripts/coverage_check/__main__.py30 # Create main parser that inherits common arguments
MEDIUMapps/vscode/src/core/prompts/loadMcpDocumentation.ts4 return `## Creating an MCP Server
AI Slop Vocabulary6 hits · 15 pts
SeverityFileLineSnippet
MEDIUMevals/analysis/patterns/cline-failures.yaml36 # Infrastructure/harness failures
MEDIUMsdk/packages/shared/src/remote-config/schema.test.ts660 "# Optional Guidelines\n\nConsider these best practices...",
MEDIUMapps/vscode/webview-ui/package-lock.json12684 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
MEDIUM…vscode/webview-ui/src/components/chat/ChatTextArea.tsx869 // NOTE: callbacks dont utilize return function to cleanup, but it's fine since this timeout immediately executes a
MEDIUMapps/vscode/src/core/prompts/commands.ts180## Coding best practices
MEDIUM…code/src/shared/remote-config/__tests__/schema.test.ts672 contents: "# Optional Guidelines\n\nConsider these best practices...",
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippet
LOWapps/vscode/webview-ui/src/utils/getLanguageFromPath.ts83// Example usage:
LOWapps/vscode/src/core/api/transform/o1-format.ts349// Example usage:
LOWapps/vscode/src/core/api/transform/o1-format.ts422// Example usage:
LOWapps/vscode/src/shared/multi-root/types.ts18// Example usage:
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippet
MEDIUMapps/vscode/webview-ui/src/App.stories.tsx68**Note**: In Storybook, some features like file operations, command execution, and API calls are mocked for demonstratio
LOWapps/vscode/src/core/webview/WebviewProvider.ts87 // don't forget to add font-src ${webview.cspSource};
MEDIUMapps/vscode/src/core/prompts/loadMcpDocumentation.ts14The following example demonstrates how to build an MCP server that provides weather data functionality. While this examp
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGH.github/scripts/coverage_check/extraction.py194 Run a coverage command and extract the coverage percentage. Args: command: Command to run
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOW.github/scripts/coverage_check/extraction.py64
LOW.github/scripts/coverage_check/workflow.py264
LOW.github/scripts/coverage_check/__main__.py25
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWapps/vscode/src/services/ripgrep/index.ts32│function processData(data: any) {