Closed zsz00 closed 2 years ago
I tried making the generated metadata methods having one field per line, but the files got really long because of that. I think if one wants to read the metadata, they should look at the proto files directly, and use these generated methods only when the need to programmatically access their values.
As a workaround, you can install JuliaFormatter
and format the whole output directory of translated julia files.
I update the picture : export ..... too long
ok, I can format the whole output directory *.jl use JuliaFormatter.
Yeah, for exports it kinda makes sense to have them presented in a readable way... Want to contribute?:) These lines print the export statement: https://github.com/JuliaIO/ProtoBuf.jl/blob/v1.0.2/src/codegen/toplevel_definitions.jl#L180-L185
I think I a case like this we want multiple lines starting with export
keyword and all of them shorter than 92 characters, a la second example in the Blue Style
OK, Let me try do this
Closed via #207 and #210
hope add format for generated *_pb.jl