From 910da5b5d08378a9a1f3ea3ba1979e16e6c6dbc1 Mon Sep 17 00:00:00 2001 From: swh Date: Tue, 9 Jan 2024 16:05:09 -0800 Subject: [PATCH] Apply lint on extension protos (#334) Apply lint --- .../v1/proto2/test_all_types_extensions.proto | 1 - tests/simple/testdata/proto2_ext.textproto | 20 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/proto/test/v1/proto2/test_all_types_extensions.proto b/proto/test/v1/proto2/test_all_types_extensions.proto index 5ff91f1..2cfa194 100644 --- a/proto/test/v1/proto2/test_all_types_extensions.proto +++ b/proto/test/v1/proto2/test_all_types_extensions.proto @@ -29,4 +29,3 @@ message Proto2ExtensionScopedMessage { repeated TestAllTypes message_scoped_repeated_test_all_types = 1008; } } - diff --git a/tests/simple/testdata/proto2_ext.textproto b/tests/simple/testdata/proto2_ext.textproto index 5ebea78..30ebd53 100644 --- a/tests/simple/testdata/proto2_ext.textproto +++ b/tests/simple/testdata/proto2_ext.textproto @@ -35,7 +35,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.nested_ext]: { } + [google.api.expr.test.v1.proto2.nested_ext]: {} } } } @@ -55,7 +55,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.test_all_types_ext]: { } + [google.api.expr.test.v1.proto2.test_all_types_ext]: {} } } } @@ -95,7 +95,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.repeated_test_all_types]: [{ single_int64: 1 }, { single_bool: true }] + [google.api.expr.test.v1.proto2.repeated_test_all_types]: [ { single_int64: 1 }, { single_bool: true } ] } } } @@ -135,7 +135,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_nested_ext]: { } + [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_nested_ext]: {} } } } @@ -175,7 +175,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_repeated_test_all_types]: [{ single_int64: 1 }, { single_bool: true }] + [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_repeated_test_all_types]: [ { single_int64: 1 }, { single_bool: true } ] } } } @@ -219,7 +219,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.nested_ext]: { } + [google.api.expr.test.v1.proto2.nested_ext]: {} } } } @@ -239,7 +239,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.test_all_types_ext]: { } + [google.api.expr.test.v1.proto2.test_all_types_ext]: {} } } } @@ -279,7 +279,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.repeated_test_all_types]: [{ single_int64: 1 }, { single_bool: true }] + [google.api.expr.test.v1.proto2.repeated_test_all_types]: [ { single_int64: 1 }, { single_bool: true } ] } } } @@ -319,7 +319,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_nested_ext]: { } + [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_nested_ext]: {} } } } @@ -359,7 +359,7 @@ section: { value: { object_value: { [type.googleapis.com/google.api.expr.test.v1.proto2.TestAllTypes]: { - [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_repeated_test_all_types]: [{ single_int64: 1 }, { single_bool: true }] + [google.api.expr.test.v1.proto2.Proto2ExtensionScopedMessage.message_scoped_repeated_test_all_types]: [ { single_int64: 1 }, { single_bool: true } ] } } }