fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
770 stars 191 forks source link

Fix documented defaults #2859

Closed cmeeren closed 1 year ago

cmeeren commented 1 year ago

Some values did not match those in https://github.com/fsprojects/fantomas/blob/main/src/Fantomas.Core/FormatConfig.fs.

For MaxDotGetExpressionWidth and NewlineBetweenTypeDefinitionAndMembers, I had to update the examples so they demonstrate an actual change.

You may consider moving the NewlineBetweenTypeDefinitionAndMembers from the G-Research style section, because (as I understand it) the G-Research style is now the default. (This is not done in this PR.)

dawedawe commented 1 year ago

Thanks @cmeeren I pushed a change which should help avoiding such things in the future.