Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust_clippy: no way to pass flags #1211

Closed
roman-kashitsyn opened this issue Mar 21, 2022 · 2 comments
Closed

rust_clippy: no way to pass flags #1211

roman-kashitsyn opened this issue Mar 21, 2022 · 2 comments

Comments

@roman-kashitsyn
Copy link
Contributor

The current documentation does not specify how to pass flags to the clippy tool: https://bazelbuild.github.io/rules_rust/rust_clippy.html#rust_clippy_aspect

Unfortunately, clippy.toml does not allow configuring lint levels: rust-lang/rust-clippy#6625
The lints need to be configured on the command line, for example:

    -D warnings \
    -D clippy::all \
    -D clippy::mem_forget \
    -A clippy::redundant_closure \
    -A clippy::too_many_arguments \
    -C debug-assertions=off

Enabling this sort of configuration in BUILD.bazel or .bazelrc would be a very nice feature.

@UebelAndre
Copy link
Collaborator

Is this a duplicate of #514 ?

@roman-kashitsyn
Copy link
Contributor Author

Is this a duplicate of #514 ?

Yes, that is the same issue. Thanks for finding the original!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants