protocolbuffers / txtpbfmt

txtpbfmt parses, edits and formats text proto files in a way that preserves comments.
Apache License 2.0
96 stars 19 forks source link

Disallow empty value in list. #66

Open copybara-service[bot] opened 2 years ago

copybara-service[bot] commented 2 years ago

Disallow empty value in list.

$ echo "x [a, , b]" | blaze-bin/third_party/txtpbfmt/fmt parser.Format for path with content "x [a, , b]\n" returned err Empty value in list. F0428 14:10:56.453731 680717 fmt.go:103] 1 error(s) encountered during execution

Note that this doesn't prevent empty strings:

$ echo "x [a, '' , b]" | blaze-bin/third_party/txtpbfmt/fmt x [a, "", b]