mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
Lint rule functions in layout.ts and composition.ts are intentionally deep pattern matchers — branching reflects the variety of CSS/JS shapes they recognize, not hidden complexity. Refactoring purely to lower CRAP score would split each rule across multiple helpers and hurt readability without changing behavior. The same pattern is used in packages/engine/src/services/frameCapture.ts. lintProject.test.ts: each test sets up its own HTML fixture via the standard vitest scaffolding; the surface-level clone is the test-style shape, not extractable without losing per-test clarity (matches the clone-families ignore on packages/studio/src/player/components/timelineDragDrop.ts).