(file: DeepnoteFile, options: AnalysisOptions = {})
| 101 | * Combines stats, lint, and DAG analysis into a single result. |
| 102 | */ |
| 103 | export 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. |
no test coverage detected