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

Closed
github-bot wants to merge 1 commit from gh-pr/291/head into gh-pr/291/base
Owner

@⁠SkippySteve on GitHub · 2026-11-24 02:05 UTC · original
SkippySteve/victory-pr-own-next16 → main · +23 −0 · 1 files · 1 commits · closed without merging

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.
**@⁠SkippySteve** on GitHub · 2026-11-24 02:05 UTC · [original](https://github.com/Marvisak/VIctory/pull/291) `SkippySteve/victory-pr-own-next16` → `main` · +23 −0 · 1 files · 1 commits · closed without merging 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`.
Every tracked text file is UTF-8 with LF line ends, space indents, no
trailing whitespace and a final newline, but nothing tells an editor so:
one set to CRLF, tabs or "keep whitespace" adds noise to the next diff.
The policy allowlist already names .editorconfig; this adds it.

The rules restate .gitattributes (LF, CRLF for .cmd/.ps1) and the tree as
it is. Rust width stays rustfmt's (rustfmt.toml); no max_line_length, so the
two cannot disagree. editorconfig-checker v3.4.1 passes on every tracked
file (with -disable-indent-size, since rustfmt aligns continuation lines
off the 4-column grid), and cargo xtask policy accepts the file.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:09 +00:00
github-bot closed this pull request 2026-11-26 03:58:09 +00:00
Author
Owner

@⁠SkippySteve on GitHub · 2026-11-24 02:32 UTC · original

Superseded by #246, which now carries this commit (.editorconfig) alongside the other policy/tooling fixes.

**@⁠SkippySteve** on GitHub · 2026-11-24 02:32 UTC · [original](https://github.com/Marvisak/VIctory/pull/291#issuecomment-7120244805) Superseded by #246, which now carries this commit (.editorconfig) alongside the other policy/tooling fixes.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!291
No description provided.