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

post-gen formatter / cleanup #120

Open
pkieltyka opened this issue Oct 26, 2022 · 0 comments
Open

post-gen formatter / cleanup #120

pkieltyka opened this issue Oct 26, 2022 · 0 comments

Comments

@pkieltyka
Copy link
Member

pkieltyka commented Oct 26, 2022

it would be nice to have a post-gen formatter for arbitrary source that cleans generated code like the node server..

as you can see the ugly formatting at https://github.com/webrpc/webrpc/blob/master/_examples/node-ts/server/server.gen.ts

image

Maybe there is some Go community package out there which can help with general / basic source formatting to help? it doesnt have to be perfect, just it could do stuff like remove the double "\n\n" everywhere, and maybe fix the indentation a bit..

When we generate go code, this isn't an issue because we actually can use goimports like we do so its automatically formatted, but it would be nice to have some basic clean up for arbitrary languages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant