Re: [protobuf] proto3 pretty printer

2021-12-10 Thread Josh Humphries
At FullStory, we use clang-format to format protobuf code. And we have a
custom linter for catching some other style issues, outside of just
formatting.

The clang-format tool doesn't have a ton of options for protos, but it's
been good enough for our purposes. It can get confused when you have
complicated custom options -- like message options, where you put a long
message literal as the value -- which can lead to less-than-stellar
results, aesthetically speaking.

But having a standard with some warts seemed better than no standard...


*Josh Humphries*
jh...@bluegosling.com


On Fri, Dec 10, 2021 at 11:08 AM Jason Polis  wrote:

> Is there a pretty printer that will format proto3 consistently
> making it easier to compare diffs over the long term ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/a5807c8b-159a-41b9-a702-1c6398b9edbdn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAO78j%2BL%2BFZvPdRepMPMk2GRN5Tk3Ozfzkt0S9Nx%3DPACtRBefdg%40mail.gmail.com.


[protobuf] proto3 pretty printer

2021-12-10 Thread Jason Polis
Is there a pretty printer that will format proto3 consistently
making it easier to compare diffs over the long term ?

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/a5807c8b-159a-41b9-a702-1c6398b9edbdn%40googlegroups.com.