chore: GitHub language statistics count VIctory and skip generated tables #359

Manually merged
github merged 1 commit from gh-pr/359/head into gh-pr/359/base 2026-11-26 12:47:12 +00:00
Owner

@⁠LooperSalty on GitHub · 2026-11-26 12:43 UTC · original
LooperSalty:chore/linguist-stats → main · +13 −0 · 1 files · 1 commits · merged 2026-11-26 12:46 UTC

The repository page shows Python 74 %, C++ 10.9 %, Pawn 10.5 %, Rust 1.8 %. That picture is wrong:

  • GitHub's numbers (GET /repos/LooperSalty/AnyXboxX/languages) still give Rust 40,195 bytes. That is the old rust/ workspace from before #351; crates/ now holds 1.41 MB of Rust, and GitHub has not recomputed yet.
  • Linguist treats third_party/ as vendored, so third_party/victory is not counted: 5.5 MB of Rust that AGENTS.md calls our own code.
  • "Pawn" is crates/anyxboxx-kernelx/kernelx_forwarders.inc, a generated table of 2,661 forwarders (230 KB), detected from its .inc extension.

This adds a .gitattributes with linguist attributes only (checkouts are unchanged):

  • third_party/victory/** is counted as our code; the other third_party folders stay vendored.
  • The generated tables (kernelx_forwarders.inc, gdk_api_table.inc, mnemonics.rs, rdna2_ops.py, rdna2_shapes.py) are marked linguist-generated.

Expected from git ls-tree byte counts: Rust about 80 %, Python about 15 %, C++ about 5 %.

Test plan

  • git check-attr linguist-vendored linguist-generated on the listed paths
  • CI green
  • After merge, the language bar on the repository page (it can take a few minutes)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox

**@⁠LooperSalty** on GitHub · 2026-11-26 12:43 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/359) `LooperSalty:chore/linguist-stats` → `main` · +13 −0 · 1 files · 1 commits · merged 2026-11-26 12:46 UTC The repository page shows **Python 74 %, C++ 10.9 %, Pawn 10.5 %, Rust 1.8 %**. That picture is wrong: - GitHub's numbers (`GET /repos/LooperSalty/AnyXboxX/languages`) still give Rust 40,195 bytes. That is the old `rust/` workspace from before #351; `crates/` now holds 1.41 MB of Rust, and GitHub has not recomputed yet. - Linguist treats `third_party/` as vendored, so `third_party/victory` is not counted: 5.5 MB of Rust that AGENTS.md calls our own code. - "Pawn" is `crates/anyxboxx-kernelx/kernelx_forwarders.inc`, a generated table of 2,661 forwarders (230 KB), detected from its `.inc` extension. This adds a `.gitattributes` with linguist attributes only (checkouts are unchanged): - `third_party/victory/**` is counted as our code; the other `third_party` folders stay vendored. - The generated tables (`kernelx_forwarders.inc`, `gdk_api_table.inc`, `mnemonics.rs`, `rdna2_ops.py`, `rdna2_shapes.py`) are marked `linguist-generated`. Expected from `git ls-tree` byte counts: Rust about 80 %, Python about 15 %, C++ about 5 %. ## Test plan - [x] `git check-attr linguist-vendored linguist-generated` on the listed paths - [ ] CI green - [ ] After merge, the language bar on the repository page (it can take a few minutes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
The repository page showed Python 74 %, C++ 10.9 %, "Pawn" 10.5 % and Rust
1.8 % after the move to Rust: linguist treats third_party/ as vendored, so
the 5.5 MB of Rust in third_party/victory (our own code, AGENTS.md) were
not counted, and the generated kernelx_forwarders.inc (230 KB) was read as
Pawn. .gitattributes un-vendors third_party/victory and marks the
generated tables. Linguist attributes only: checkouts are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 12:47:09 +00:00
github manually merged commit fadaccbe1a into gh-pr/359/base 2026-11-26 12:47:12 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 12:43 UTC · original

Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T12:43:10.852922Z
We couldn’t complete this review. Comment @codex review to try again.
fadaccb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 12:43 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/359#issuecomment-7192370037) <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"fadaccbe1ae125a22d1ccbb6fc75d42e2a25570b","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-26T12:43:10.852922Z">2026-11-26T12:43:10.852922Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `fadaccb` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 12:43 UTC · original

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 12:43 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/359#issuecomment-7192370589) You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
This discussion has been locked. Commenting is limited to contributors.
No description provided.