Skip to content

rust_clippy: no way to pass flags #1211

Closed
@roman-kashitsyn

Description

@roman-kashitsyn

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions