rules-proto-grpc / rules_proto_grpc

Bazel rules for building Protobuf and gRPC code and libraries from proto_library targets
https://rules-proto-grpc.com
Apache License 2.0
256 stars 159 forks source link

rust: Allow all clippy lints for generated code. #296

Closed maghoff closed 11 months ago

maghoff commented 11 months ago

The lints are generally appropriate for hand-written code, but oftentimes the best solution for generated code violates such guidelines. Typically, therefore, generated code is not subject to such linting.

The most precise way to disable linting for this generated code in a bazel environment is to add #![allow(clippy::all)] to the top level of the generated crate. That said, I am not confident that I have found the appropriate place to effect this change. I figured that it would be better with a PR than just the issue 🙂