Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format generated code using editorconfig settings #175

Open
joprice opened this issue Aug 1, 2024 · 1 comment
Open

format generated code using editorconfig settings #175

joprice opened this issue Aug 1, 2024 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@joprice
Copy link

joprice commented Aug 1, 2024

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

let cfg = FormatConfig.Default

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
Copy link
Collaborator

7sharp9 commented Aug 2, 2024

I dont use Fantomas, happy to accept PR though.

@7sharp9 7sharp9 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
@7sharp9 7sharp9 reopened this Aug 2, 2024
@7sharp9 7sharp9 added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants