-
Notifications
You must be signed in to change notification settings - Fork 343
Open
Labels
FeatureNew feature or requestNew feature or request
Description
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!
benedikt-bartscher and doriable
Metadata
Metadata
Assignees
Labels
FeatureNew feature or requestNew feature or request