Skip to content

Support .mts/.cts and C/C++ source files #192

Done

Description

@Shinrai

The node detector handles .js .mjs .cjs .ts .tsx .jsx but not .mts or .cts, and there's no detector for C at all. CLDMV/lib-sqlite-wasm is written in .mts (TypeScript with rewriteRelativeImportExtensions) plus C glue for the wasm build (.c / .h), so none of its sources get headers.

  • Add .mts and .cts to the node detector (same /* */ block syntax as .ts).
  • Add a C-family detector: .c, .h, and probably .cpp/.hpp/.cc while at it. /* */ block comments; the header goes above the first #include/#pragma, keeping any #pragma once / include guard after it.
  • Vendored third-party C (e.g. sqlite3.c from the amalgamation) needs to stay untouched, so it should be easy to exclude, or the detector should skip files that already start with someone else's license block.

Activity

  1. added
    type: enhancement
    priority: medium
    status: not started
    status: in progress
    and removed
    status: not started
    on Nov 25, 2026
  2. added a commit that references this issue on Nov 25, 2026
    f6f993e
  3. added
    status: implemented
    and removed
    status: in progress
    on Nov 25, 2026
  4. cldmv-bot commented on Nov 25, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #193, merged into next. This issue closes automatically when that work ships to the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions