GramEditor/gram
39
986
Fork
You've already forked gram
88

Add default empty rustfmt config #92

Merged
krig merged 1 commit from fzzr/gram:rustfmt-cfg into main 2026年03月12日 09:52:35 +01:00
Contributor
Copy link

Empty rustfmt config in the project root means "use default builtin config".
It needed to prevent reformat entire codebase with contributor's global config.

It is necessary because a huge number of developers have their global config in ~/.rustfmt.toml with their own comfortable rules.

This patch has been originally created there: one and two and canceled because Illiteracy — it's "feels like a hack".

Empty rustfmt config in the project root means "use default builtin config". It needed to prevent reformat entire codebase with contributor's global config. _It is necessary because a huge number of developers have their global config in `~/.rustfmt.toml` with their own comfortable rules._ This patch has been originally created there: [one](https://github.com/zed-industries/zed/pull/33950) and [two](https://github.com/zed-industries/zed/pull/32006) _and canceled because Illiteracy — it's "feels like a hack"._
Owner
Copy link

Interesting reasoning from them there...

Interesting reasoning from them there...
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
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
GramEditor/gram!92
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "fzzr/gram:rustfmt-cfg"

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?