repo: ignore a generated navmesh dump and add an editorconfig #1956

Open
github-bot wants to merge 2 commits from github-bot/gh-1956 into main AGit
Owner

@⁠BubsMcgee on GitHub · 2026-11-25 16:42 UTC · original
BubsMcgee:repo/hygiene-generated-and-editorconfig → main · +3 −518 · 2 files · 2 commits · open

Two isolated repo-hygiene items from #1928 (§7 and §4); no code, no game data.

  • navmeshes.navmesh-decode.json at the repository root is the default output of tools/navmesh_decode.py
    run from the root — docs/navmesh.md sends that output to a temp directory. It is removed from tracking and
    *.navmesh-decode.json is ignored.
  • .editorconfig mirrors the existing .gitattributes (LF everywhere; CRLF for .ps1, .cmd, .bat, .sln,
    and no trailing-space trimming in Markdown). It adds no formatter and changes no existing file.

Deliberately left out of this PR: splitting tools/rdna2spirv.py, runtime/shims/d3d12_vulkan_device.cpp or
runtime/CMakeLists.txt, adding -Werror, README rewrites, and CI parallelisation. Those touch files with open
PRs or set policy and deserve their own decisions.

Tests

No runtime or translator change. Checked that nothing references the removed root file outside its own default
output path (rg navmesh-decode), that docs/navmesh.md already writes to <temp>, and that the tests/test_docs_*
suites are unaffected (no docs changed).

AI-assisted (opencode). Follow-up to #1928.

**@⁠BubsMcgee** on GitHub · 2026-11-25 16:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1956) `BubsMcgee:repo/hygiene-generated-and-editorconfig` → `main` · +3 −518 · 2 files · 2 commits · open Two isolated repo-hygiene items from #1928 (§7 and §4); no code, no game data. - `navmeshes.navmesh-decode.json` at the repository root is the default output of `tools/navmesh_decode.py` run from the root — `docs/navmesh.md` sends that output to a temp directory. It is removed from tracking and `*.navmesh-decode.json` is ignored. - `.editorconfig` mirrors the existing `.gitattributes` (LF everywhere; CRLF for `.ps1`, `.cmd`, `.bat`, `.sln`, and no trailing-space trimming in Markdown). It adds no formatter and changes no existing file. Deliberately left out of this PR: splitting `tools/rdna2spirv.py`, `runtime/shims/d3d12_vulkan_device.cpp` or `runtime/CMakeLists.txt`, adding `-Werror`, README rewrites, and CI parallelisation. Those touch files with open PRs or set policy and deserve their own decisions. ## Tests No runtime or translator change. Checked that nothing references the removed root file outside its own default output path (`rg navmesh-decode`), that `docs/navmesh.md` already writes to `<temp>`, and that the `tests/test_docs_*` suites are unaffected (no docs changed). AI-assisted (opencode). Follow-up to #1928.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:12:46 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-25 17:13 UTC · original · approved these changes

Verified: the .editorconfig line-ending rules mirror .gitattributes exactly (LF default, CRLF for .ps1/.cmd/.bat/.sln); Markdown keeps trailing spaces for hard breaks. The ignored *.navmesh-decode.json matches tools/navmesh_decode.py's documented default output name (docs/navmesh.md, tool --out help). Removing the committed generated navmeshes.navmesh-decode.json is consistent. Repo hygiene only, no game data.

**@⁠MSedgeMC** on GitHub · 2026-11-25 17:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1956#pullrequestreview-6061849246) · **approved these changes** Verified: the .editorconfig line-ending rules mirror .gitattributes exactly (LF default, CRLF for .ps1/.cmd/.bat/.sln); Markdown keeps trailing spaces for hard breaks. The ignored *.navmesh-decode.json matches tools/navmesh_decode.py's documented default output name (docs/navmesh.md, tool --out help). Removing the committed generated navmeshes.navmesh-decode.json is consistent. Repo hygiene only, no game data.
Author
Owner

@⁠j-weiner on GitHub · 2026-11-25 17:30 UTC · original

To avoid the duplicate .editorconfig additions, I rebased #1955 onto current main and expanded its .editorconfig to include the line-ending/Markdown defaults here plus the two verified BOM exceptions. Could you drop the .editorconfig hunk from #1956 and keep the generated-output ignore separate, or coordinate with the maintainer on which one lands? I have left #1956 unchanged.

**@⁠j-weiner** on GitHub · 2026-11-25 17:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1956#issuecomment-7169595010) To avoid the duplicate `.editorconfig` additions, I rebased #1955 onto current `main` and expanded its `.editorconfig` to include the line-ending/Markdown defaults here plus the two verified BOM exceptions. Could you drop the `.editorconfig` hunk from #1956 and keep the generated-output ignore separate, or coordinate with the maintainer on which one lands? I have left #1956 unchanged.
Author
Owner

@⁠j-weiner on GitHub · 2026-11-25 17:43 UTC · original

To carry over the two unique BOM exceptions from #1955, please add the following after the general rules in .editorconfig (both files are BOM-encoded):

[runtime/test/d3d12_depth_resolve_test.cpp]
charset = utf-8-bom

[runtime/test/d3d12_sparse_queue_family_test.cpp]
charset = utf-8-bom

I have rebased #1955 and expanded its .editorconfig to include the full line-ending/Markdown defaults here plus these exceptions. I will close #1955 as the duplicate so only one PR adds the file.

**@⁠j-weiner** on GitHub · 2026-11-25 17:43 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1956#issuecomment-7169917722) To carry over the two unique BOM exceptions from #1955, please add the following after the general rules in `.editorconfig` (both files are BOM-encoded): ```ini [runtime/test/d3d12_depth_resolve_test.cpp] charset = utf-8-bom [runtime/test/d3d12_sparse_queue_family_test.cpp] charset = utf-8-bom ``` I have rebased #1955 and expanded its `.editorconfig` to include the full line-ending/Markdown defaults here plus these exceptions. I will close #1955 as the duplicate so only one PR adds the file.
Author
Owner

@⁠BubsMcgee on GitHub · 2026-11-25 18:55 UTC · original

Done: the .editorconfig hunk is dropped from this PR so it lands once, in #1955. What remains here is the generated-output part only:
avmeshes.navmesh-decode.json untracked and *.navmesh-decode.json ignored (the default output of ools/navmesh_decode.py run from the root; docs/navmesh.md already writes to a temp path). If #1955 would rather take that too, say so and I will close this in its favour.

**@⁠BubsMcgee** on GitHub · 2026-11-25 18:55 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1956#issuecomment-7171593546) Done: the .editorconfig hunk is dropped from this PR so it lands once, in #1955. What remains here is the generated-output part only: avmeshes.navmesh-decode.json untracked and *.navmesh-decode.json ignored (the default output of ools/navmesh_decode.py run from the root; docs/navmesh.md already writes to a temp path). If #1955 would rather take that too, say so and I will close this in its favour.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1956/head:github-bot/gh-1956'
git switch 'github-bot/gh-1956'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1956'
git switch 'github-bot/gh-1956'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1956'
git switch 'github-bot/gh-1956'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1956'
git switch 'main'
git merge --squash 'github-bot/gh-1956'
git switch 'main'
git merge --ff-only 'github-bot/gh-1956'
git switch 'main'
git merge 'github-bot/gh-1956'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.