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

How to format the curly braces on the same line as the message/enum/service name? #301

Open
BrentHuang opened this issue Nov 26, 2022 · 2 comments

Comments

@BrentHuang
Copy link

orig:
message Demo1Req
{
int32 a = 1;
}

expected:
message Demo1Req {
int32 a = 1;
}

I would like to ask how to put the curly braces on the same line as the message/enum/service name?

@yoheimuta
Copy link
Owner

@BrentHuang protolint doesn't support formatting these curly braces.
Is it worth adding this enhancement? Let me know what you think.

@BrentHuang
Copy link
Author

some programming style similar to c++

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

2 participants