genemichaels icon indicating copy to clipboard operation
genemichaels copied to clipboard

Config file

Open andrewbaxter opened this issue 2 years ago • 1 comments

A config file makes it easier for contributors to get the default style. genemichaels doesn't have a lot of parameters atm but it would be good to support reading config from a config file regardless.

The config file should just be style configuration, stuff like thread counts should be command line args-only (or maybe a user-config file) since it'll depend on the user.

This issue is just about formatting config. Handling overrides seems like it would be painful and manual unless clap has something built in, so I'd be happy with moving the style params to be config-file-only.

andrewbaxter avatar Feb 04 '23 14:02 andrewbaxter

One thing I'm noticing is that the default max comment width seems to be 87 which is a curious choice, rustfmt uses 80.

AaronKutch avatar Feb 04 '23 22:02 AaronKutch