github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/_testdata/rules/max_line_length_rule.proto (about) 1 syntax = "proto3"; 2 // A broken example of the official reference 3 // See https://developers.google.com/protocol-buffers/docs/reference/proto3-spec#proto_file 4 package examplepb; 5 // protolint:disable MAX_LINE_LENGTH 6 import public "other.proto"; 7 import public "otherloooooooooooooooooooooooooonooooooooooooooooooooooog.proto"; 8 option java_package = "com.example.foooooooooooooooooooooooooooooooooooooooooooooooooo"; 9 // protolint:enable MAX_LINE_LENGTH 10 enum enumAllowingAlias { 11 option allow_alias = true; 12 // protolint:disable:next MAX_LINE_LENGTH 13 UNKNOWN = 0[(custom_option) = "hello world this is long line. xxxxxxxxxxxxxxxxxx"]; 14 STARTED = 1; 15 RUNNING = 2 [(custom_option) = "hello world this is long line. xxxxxxxxxxxxxxxxxx"]; 16 } 17 message outer { 18 option (my_option).a = true; 19 message inner { // Level 2 20 int64 ival = 1; 21 int64 looooooooooooooooooooooooooooooooooooooooooooooooooong = 2; // protolint:disable:this MAX_LINE_LENGTH 22 } 23 repeated inner inner_message = 2; 24 EnumAllowingAlias enum_field =3; 25 map<int32, string> my_map = 4; 26 } 27 service SearchService { 28 rpc search (SearchRequest) returns (SearchResponse); 29 }