MoiraeSoftware / myriad

Myriad is a code generator for F#
https://moiraesoftware.github.io/myriad/
Apache License 2.0
341 stars 42 forks source link

format generated code using editorconfig settings #175

Open joprice opened 1 month ago

joprice commented 1 month ago

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

7sharp9 commented 1 month ago

I dont use Fantomas, happy to accept PR though.