github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/_testdata/rules/indentrule/incorrect_issue_139.proto (about) 1 syntax = "proto3"; 2 3 package foobar; 4 5 option java_package = "com.test.foo.bar"; 6 7 message TestMessage { string test_field = 1; } 8 9 message TestMessageWithTwoInnerElements { string test_field = 1; string test_field2 = 2; } 10 11 message TestMessageWithWrongOuterIndentation { string test_field = 1; } 12 13 message TestMessageWithoutExtraSpaces {string test_field = 1;} 14 15 message TestMessageWithFollowedSemicolon {string test_field = 1;}; 16 17 enum enumAllowingAlias { UNKNOWN = 0; option allow_alias = true; } 18 19 message TestMessageWithFollowedSemicolon { enum EnumAllowingAlias { UNKNOWN = 0; option allow_alias = true; } EnumAllowingAlias enum_field =1; }; 20 21 service SearchApi { rpc search (SearchRequest) returns (SearchResponse) {};}; 22 23 service SearchApi { rpc search (SearchRequest) returns (SearchResponse) {}}; 24 25 service SearchApi { rpc search (SearchRequest) returns (SearchResponse);}; 26 27 service camelCaseServiceName { rpc Empty(google.protobuf.Empty) returns (google.protobuf.Empty) { option (google.api.http) = { get: "/v2/example/empty", };}}