Skip to content

Vendored-code detection misses third-party/, thirdparty/, libraries/, versioned SDL dirs and .framework, so first-party metrics are inflated #4545

Closed

Description

@squid-protocol

Problem

Vendored-code detection is inconsistent. third_party/ is excluded, but common variants are scanned as first-party, which inflates size, complexity tails, risk and SARIF counts.

Evidence

  • third-party/ (woof: 32.6k LOC), thirdparty/ (gzdoom ZMusic), libraries/ (gzdoom: 493k LOC), SDL2-2.32.10/ and xcode/*.framework (doomretro: 39k LOC).
  • Eternity's top-3 "most complex functions" are all in vendored source/nlohmann/json.hpp.
  • See metrics.csv pct_vendored.

Acceptance criteria

  • Normalize vendor directory names (third[-_]?party, vendor(ed)?, extern(al)?, deps, libraries/libs when they hold separate projects, versioned library folders like SDL2-x.y.z, *.framework).
  • Vendored files are excluded from first-party metrics, or flagged so first-party metrics can exclude them, with the choice documented.
  • Tests; golden drift attributed.

Evidence: /srv/storage_16tb/projects/gitgalaxy/doom-study/ (gitgalaxy_issues.md; scans at engine a8510fc). Found by the Doom source-port study (2026-10-06): https://claude.ai/code/artifact/bc877518-b326-4889-9d15-d99287f4f3fc

🤖 Generated with Claude Code

Activity

  1. added
    bug
    core-engine
    on Oct 6, 2026
  2. added
    scope:frontier
    on Oct 16, 2026
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

    bugcore-enginedata-qualitypriority: mediumscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions