Remove proto_best_practices from Rust test files in OSS

PiperOrigin-RevId: 676434510
pull/18411/head
Protobuf Team Bot 5 months ago committed by Copybara-Service
parent 27ee74e6c6
commit 1f472f1db3
  1. 4
      rust/test/BUILD
  2. 7
      rust/test/no_package.proto
  3. 7
      rust/test/no_package_import.proto
  4. 7
      rust/test/no_package_other.proto

@ -170,7 +170,8 @@ proto_library(
name = "no_package_import_proto", name = "no_package_import_proto",
testonly = True, testonly = True,
srcs = ["no_package_import.proto"], srcs = ["no_package_import.proto"],
deps = ["//devtools/staticanalysis/pipeline/analyzers/proto_best_practices/proto:optouts_proto"], deps = [
],
) )
proto_library( proto_library(
@ -183,7 +184,6 @@ proto_library(
exports = [":no_package_import_proto"], exports = [":no_package_import_proto"],
deps = [ deps = [
":no_package_import_proto", ":no_package_import_proto",
"//devtools/staticanalysis/pipeline/analyzers/proto_best_practices/proto:optouts_proto",
], ],
) )

@ -9,13 +9,6 @@ syntax = "proto2";
import public "google/protobuf/rust/test/no_package_import.proto"; import public "google/protobuf/rust/test/no_package_import.proto";
import "devtools/staticanalysis/pipeline/analyzers/proto_best_practices/proto/optouts.proto";
option (proto_best_practices.file_optouts) = {
// package intentionally left unspecified.
categories: GLOBAL_PACKAGE
};
message MsgWithoutPackage {} message MsgWithoutPackage {}
enum EnumWithoutPackage { enum EnumWithoutPackage {

@ -7,13 +7,6 @@
syntax = "proto2"; syntax = "proto2";
import "devtools/staticanalysis/pipeline/analyzers/proto_best_practices/proto/optouts.proto";
option (proto_best_practices.file_optouts) = {
// package intentionally left unspecified.
categories: GLOBAL_PACKAGE
};
message ImportedMsgWithoutPackage {} message ImportedMsgWithoutPackage {}
enum ImportedEnumWithoutPackage { enum ImportedEnumWithoutPackage {

@ -7,13 +7,6 @@
syntax = "proto2"; syntax = "proto2";
import "devtools/staticanalysis/pipeline/analyzers/proto_best_practices/proto/optouts.proto";
option (proto_best_practices.file_optouts) = {
// package intentionally left unspecified.
categories: GLOBAL_PACKAGE
};
message OtherMsgWithoutPackage {} message OtherMsgWithoutPackage {}
enum OtherEnumWithoutPackage { enum OtherEnumWithoutPackage {

Loading…
Cancel
Save