Skip to content

.editorconfig verbatim carry mixes line-ending governance with a large C#-only style block #160

Description

@ptr727

Problem

.editorconfig is a mandatory verbatim carry (per AGENTS.md "Files and Sections Derived Repos Must Carry Verbatim"), justified by its per-extension line-ending rules - the thing that prevents LF/CRLF drift. But the file also carries ~160 lines of [*.cs] + ReSharper style rules that are meaningless in a non-.NET repo. "Carry verbatim" then conflicts with the doc's own "write docs/config in the current state" / drop-what-doesn't-apply guidance.

ptr727/ESPHome-NonRoot (Docker-only) kept all the per-extension EOL/indent blocks verbatim but trimmed the [*.cs]/ReSharper block, with an inline note documenting the deviation so a re-sync doesn't silently restore it.

Suggestion

Either (a) split the EOL governance into its own always-verbatim section and mark the C# style block as ".NET repos only," or (b) explicitly bless trimming the C# block in non-.NET derived repos in the "Files ... Must Carry Verbatim" entry. Today the carry instruction and the trim instruction point in opposite directions for Docker-only / Python-only repos.


Surfaced while adopting the template in ptr727/ESPHome-NonRoot (see ptr727/ESPHome-NonRoot#61).

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions