repowiseemdash-cms/emdash

emdash-cms / emdash

typescriptmaine8e8a2d454.5K linessynced on Jul 13, 2026

Code health

7.6out of 10Good

Hotspots average 4.8, the place fixes pay off most.

Explore this codebase

Do next · 3

4 things worth doing in the week to Jul 13, the last indexed commit, 1 of them now.

Worth planning

  • Start breaking up applySeed (CCN 113, 628 lines): first lift lines 617-685

    packages/core/src/seed/apply.ts:617

    applySeed nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 12 commits; its file is imported by 15 files, changed 11 times in 90 days.

    gain
    up to +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 113, 628 lines, nests 9 deep
    severity
    high
    worth a check
  • Start breaking up validateElement (CCN 121, 445 lines): first lift lines 496-554

    packages/blocks/src/validation.ts:496

    validateElement nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 4 commits; its file is imported by 3 files, changed 5 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 121, 445 lines, nests 6 deep
    severity
    high
    worth a check
  • Start breaking up convertPMNode (CCN 59, 182 lines): first lift lines 264-282

    packages/admin/src/components/PortableTextEditor.tsx:264

    convertPMNode nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 6 commits; its file is imported by 20 files, changed 27 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 59, 182 lines, nests 6 deep
    severity
    high
    worth a check

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report

Everything we found

5 areas