Editor: an .editorconfig that says what the tree already holds #291

Closed
SkippySteve wants to merge 1 commit from upstream-pr/291 into main
SkippySteve commented 2026-11-24 02:05:05 +00:00 (Migrated from github.com)

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.rs already lists .editorconfig in ALLOWED_NAMES; this PR adds the file.

What it sets

  • All files: 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-checker v3.4.1 passes on every tracked file. It runs with -disable-indent-size because rustfmt aligns continuation lines off the 4-column grid.
  • cargo xtask policy passes: asset policy: 152 files ok.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6572946082 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/291). Originally posted by [SkippySteve](https://github.com/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.rs` already lists `.editorconfig` in `ALLOWED_NAMES`; this PR adds the file. ## What it sets - All files: `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-checker` v3.4.1 passes on every tracked file. It runs with `-disable-indent-size` because rustfmt aligns continuation lines off the 4-column grid. - `cargo xtask policy` passes: `asset policy: 152 files ok`.
upstream-sync closed this pull request 2026-11-24 06:52:15 +00:00
SkippySteve commented 2026-11-24 06:55:12 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7120244805 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/291#issuecomment-7120244805). Originally posted by [SkippySteve](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!291
No description provided.