myriad icon indicating copy to clipboard operation
myriad copied to clipboard

format generated code using editorconfig settings

Open joprice opened this issue 1 year ago • 1 comments

The generated code does not respect the fantomas settings in .editorconfig. The files could be added to .fantomasignore based on some pattern, but it could be convenient if the style was uniform and no convention or tracking of generated code is required.

This is due to using the default settings here https://github.com/MoiraeSoftware/myriad/blob/3c9818faabf9d508c10c28d5ecd26e66fafb48a1/src/Myriad/Program.fs#L191

which could be instead loaded using a helper on the EditorConfig module: https://github.com/fsprojects/fantomas/blob/e2aa020de71eaf020f14fc402c9ff03f57006ac5/src/Fantomas/Format.fs#L30

joprice avatar Aug 01 '24 12:08 joprice

I dont use Fantomas, happy to accept PR though.

7sharp9 avatar Aug 02 '24 10:08 7sharp9