szabgab / rust-digger

https://rust-digger.code-maven.com/
19 stars 2 forks source link

List values of `rustfmt` configuration options to allow analysis #58

Open Byron opened 5 months ago

Byron commented 5 months ago

(motivated by this message)

It would be great if it was easy to see all values that a rustfmt option has been set to across crates. They are documented here: https://rust-lang.github.io/rustfmt/

Motivation

Personally, I set the max_width value in rustfmt.toml to 120, but wonder how well suited that is for others. Knowing what common values are for when it's set might help arriving at more suitable values.

Further, I could imagine, it would be useful to find better default values, as the analysis might reveal that everyone is changing certain options to a particular value (which might not be the default yet).

szabgab commented 4 months ago

Oh I thought I already responded to this, but apparently not. So I agree it would be nice to show the defaults. Where can I find those?

Byron commented 4 months ago

I think here is the most exhaustive collection of these values, including their defaults.