Feature
Normally comments are started by a prefix, in protobuf it is //, followed by a space and the content.
Sadly buf format does not fixes missing or multiple spaces.
Sadly the space is not defined by the language guide but I think it is best practice to add a space. Therefor I am fine with an optional argument or config option.
Example
syntax = "proto3";
package test.v1;
//no space (incorrect)
// one space (correct)
// multiple spaces (incorrect)
message TestMessage {}
Expected
Expected after buf format file.proto:
syntax = "proto3";
package test.v1;
// no space (incorrect)
// one space (correct)
// multiple spaces (incorrect)
message TestMessage {}
Any thoughts are welcome!
Feature
Normally comments are started by a prefix, in protobuf it is
//, followed by a space and the content.Sadly
buf formatdoes not fixes missing or multiple spaces.Sadly the space is not defined by the language guide but I think it is best practice to add a space. Therefor I am fine with an optional argument or config option.
Example
Expected
Expected after
buf format file.proto:Any thoughts are welcome!