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

Function analyzeProject

packages/cli/src/utils/analysis.ts:103–110  ·  view source on GitHub ↗
(file: DeepnoteFile, options: AnalysisOptions = {})

Source from the content-addressed store, hash-verified

101 * Combines stats, lint, and DAG analysis into a single result.
102 */
103export async function analyzeProject(file: DeepnoteFile, options: AnalysisOptions = {}): Promise<AnalysisResult> {
104 const stats = computeProjectStats(file, options)
105 const { lint, dag } = await checkForIssues(file, options)
106
107 const imports = extractImportsFromDag(dag)
108
109 return { stats: { ...stats, imports }, lint, dag }
110}
111
112/**
113 * Compute project statistics from a DeepnoteFile.

Callers 4

analysis.test.tsFile · 0.90
computeStatsFunction · 0.90
buildMachineRunResultFunction · 0.90
analyzeFileFunction · 0.90

Calls 3

computeProjectStatsFunction · 0.85
checkForIssuesFunction · 0.85
extractImportsFromDagFunction · 0.85

Tested by

no test coverage detected