Editor: an .editorconfig that says what the tree already holds #291
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/291"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:05:05Z.
Every tracked text file in the repository is UTF-8 with LF line ends, space indents, no trailing whitespace and a final newline. Nothing tells an editor that, so one set to CRLF, tabs or "keep whitespace" adds noise to the next diff.
xtask/src/policy.rsalready lists.editorconfiginALLOWED_NAMES; this PR adds the file.What it sets
utf-8,lf, final newline, trim trailing whitespace, spaces.*.rs,*.toml: indent 4.*.yml,*.yaml,*.json: indent 2.*.cmd,*.ps1:crlf, as in.gitattributes.There is no
max_line_length. Rust width stays with rustfmt (rustfmt.toml), so the two settings can't disagree. Nothing else changes: one new file, no code.Checked
editorconfig-checkerv3.4.1 passes on every tracked file. It runs with-disable-indent-sizebecause rustfmt aligns continuation lines off the 4-column grid.cargo xtask policypasses:asset policy: 152 files ok.Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:32:29Z.
Superseded by #246, which now carries this commit (.editorconfig) alongside the other policy/tooling fixes.
Pull request closed