`imports_granularity` not working on global config file
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 24
Description
this is very weird, if my config file is at /Users/lara/Library/Preferences/rustfmt/rustfmt.toml the options are detected (cargo fmt complains it can't set the options on stable), but they don't do anything.. i'm not sure if only imports_granularity is affected
putting the file at /Users/lara/rustfmt.toml or next to Cargo.toml makes it work fine
rustfmt version is rustfmt 1.5.1-nightly (4d6d601c 2022-07-26)
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
Reproduce with rustfmt 1.5.1-nightly using a config at /Users/lara/Library/Preferences/rustfmt/rustfmt.toml, then compare it with /Users/lara/rustfmt.toml and a file beside Cargo.toml. Start from cargo fmt and the imports_granularity option; done means the global configuration affects formatting consistently or the limitation is documented and covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100