Repository navigation
Conversation
MSedgeMC
left a comment
There was a problem hiding this comment.
This PR adds a .editorconfig, but PR #1956 also adds one and is more complete: it mirrors .gitattributes (LF default; CRLF for .ps1/.cmd/.bat/.sln), preserves Markdown's two-space hard breaks, and ignores generated navmesh-decode.json output. #1956 also lacks the two BOM entries here; please check whether those two test files actually carry a UTF-8 BOM and fold any necessary entries into whichever .editorconfig lands. Two PRs adding the same new file will conflict.
MSedgeMC
left a comment
There was a problem hiding this comment.
Correction to my previous comment: I checked the two files and both DO carry a UTF-8 BOM (first bytes ef bb bf), so the charset=utf-8-bom entries here are legitimate and not covered by PR #1956. The two PRs still both create .editorconfig and will conflict, so the maintainer should merge one and fold in the other's entries: #1956 has the complete line-ending mirror of .gitattributes plus the Markdown trailing-space rule and navmesh ignore; this PR has the two necessary BOM exceptions. No objection to the content.
3e8634d to
d8cbb21
Compare
|
Rebased onto current |
d8cbb21 to
49753fc
Compare
|
Rebased again onto current |
49753fc to
b99cca1
Compare
b99cca1 to
5562c1e
Compare
Claimed in the coordination issue as: DOC-EDITORCONFIG-BASELINE
What and why
Adds a repository-root
.editorconfigwith UTF-8, LF, final-newline and trailing-whitespace defaults; CRLF overrides for.ps1,.cmd,.batand.slnmatch.gitattributes. Markdown trailing spaces remain intact for hard line breaks. Two existing C++ tests with UTF-8 BOMs are explicitly preserved. No existing files are reformatted and no indentation or formatter policy is introduced.Tested
python3 -I tests/test_text_write_line_endings.py— 3 passed.python3 -I scripts/check_no_game_data.py .editorconfig— clean.git diff --check— passed.GPUs tested: n/a (configuration-only; no GPU test was run).
AI-assisted: yes.
Checklist
mainand merges cleanly.