github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/_testdata/rules/order/invalidWithComments.proto (about) 1 // Syntax here 2 syntax = "proto3"; // Inline syntax comment 3 4 /* 5 License information 6 */ 7 8 // Before outer message 9 message Outer { /* 10 Inside outer message */ 11 // Option 12 option (my_option).a = true; // Inline option 13 // inner is an inner message. 14 message Inner { // Level 2 15 // field 1 16 int64 ival = 1; // Inline field 1 17 // after field 1 18 } // Inline Innter Message 19 repeated Inner inner_messages = 2; // Inline field 2 20 } // Trailing outer message 21 22 /* Package comment 23 Line 2 24 Line 3 25 */ 26 package my.package; // Inline package comment /* comment */ 27 28 // Last comments 29 /* 30 License information 31 */