Add ability to extend an existing config with missing defaults
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 24
Description
Having an old configuration file, I would like the ability to add any new, missing configuration values after upgrading rustfmt - probably at the end -, to be reviewed and configure according to our style. I would expect this to be be a "maximal" configuration containing all supported configuration values.
Currently rustfmt print overwrites the file with the default config, and needs to be merged by hand - also I'm not entirely sure if the "default" configuration is exhaustive or not.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with rustfmt's current print behavior and compare the generated default configuration with an older configuration containing missing values. Clarify whether the output should append only missing defaults or produce an exhaustive configuration, including ordering and overwrite rules. Done means an old configuration can be extended automatically and reviewed without manual merging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100