nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.77k stars 629 forks source link

App doesn't manage non-rule config file options #1543

Open drekka opened 10 months ago

drekka commented 10 months ago

Hi, just a request to add support to the app for non-rule config file options.

For example, the project has a config file which contains --exclude SwiftPackages,Pods,Carthage, but if I use the app to edit the file when it writes the updated config --excludes is lost, same with --swiftformat n.n.

So would it be possible to update the app with the non-rule options that the configs support?

Also :-) Whilst we talking about it :-) It would really be useful if the app also displayed more details about the rules. Like a detailed description with some examples, because it's not always easy to work out from the rule name and brief description exactly what it does.

nicklockwood commented 10 months ago

@drekka these are all good suggestions, I'll see what i can do.