MCPcopy Index your code
hub / github.com/deepnote/deepnote / computeLintIssues

Function computeLintIssues

packages/mcp/src/tools/reading.ts:62–81  ·  view source on GitHub ↗
(file: DeepnoteFile)

Source from the content-addressed store, hash-verified

60}
61
62async function computeLintIssues(file: DeepnoteFile) {
63 // Use CLI's analysis function for consistency and comprehensive checks
64 try {
65 const { lint } = await checkForIssues(file)
66 return lint.issues.map(issue => ({
67 severity: issue.severity,
68 message: issue.message,
69 notebook: issue.notebookName,
70 blockId: issue.blockId,
71 }))
72 } catch (error) {
73 // Return a generic error if analysis fails
74 return [
75 {
76 severity: 'warning' as const,
77 message: `Could not analyze: ${error instanceof Error ? error.message : String(error)}`,
78 },
79 ]
80 }
81}
82
83async function computeDagInfo(file: DeepnoteFile, notebookFilter?: string) {
84 const dagInfo: Array<{

Callers 1

handleReadFunction · 0.85

Calls 1

checkForIssuesFunction · 0.90

Tested by

no test coverage detected