Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/framework-detector.ts
Framework Detector - Identifies project tech stack
Methods
| Method | Signature | Returns |
|---|---|---|
detect | detect(repoPath: string) | Promise<FrameworkDetectionResult> |
Where it refuses work
FrameworkDetectorstops the work with an early return whendependencies.has(dep), in 4 places.FrameworkDetectorstops the work with an early return whenscore >= 40, in 2 places.FrameworkDetectorstops the work with an early return whenpattern.test(sample), in 2 places.FrameworkDetectorstops the work with an early return when!packageJson.FrameworkDetectorstops the work with an early return whendepth > 3 || samples.length >= 50.FrameworkDetectorstops the work with an early return whendependencies.has(lib).
When something fails
FrameworkDetectorhandles failure in 7 places: it discards it silently in 6, and turns it into a return value in 1.
Was this page helpful?