crosvm/.cargo/config.toml
Vikram Auradkar f054575a8b clippy: Disallow len_without_is_empty and len_zero
BUG=b:283512997
TEST=none

Change-Id: I0477583b3f8c8eefeb1d79f11302b1b28a8bd770
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4549999
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
2023-05-22 21:27:21 +00:00

31 lines
1.1 KiB
TOML

# Disable clippy lints project-wide.
# This allows ./tools/clippy and IDE integrations to use the same configuration.
# This should be replaced with a proper clippy config once available:
# https://github.com/rust-lang/cargo/issues/5034
[build]
rustflags = [
# TODO(crbug/908640): To be resolved.
"-Aclippy::missing_safety_doc", # 26 errors
# We don't care about these lints. Okay to remain suppressed globally.
"-Aclippy::bool_assert_comparison",
"-Aclippy::cast_lossless",
"-Aclippy::cognitive_complexity",
"-Aclippy::collapsible_if",
"-Aclippy::enum_variant_names",
"-Aclippy::identity_op",
"-Aclippy::match_bool",
"-Aclippy::match_wild_err_arm",
"-Aclippy::needless_bool",
"-Aclippy::new-ret-no-self",
"-Aclippy::or_fun_call",
"-Aclippy::result-unit-err",
"-Aclippy::should_implement_trait",
"-Aclippy::single_char_pattern",
"-Aclippy::too_many_arguments",
"-Aclippy::trivially_copy_pass_by_ref",
"-Aclippy::type_complexity",
"-Aclippy::unreadable_literal",
"-Aclippy::useless_let_if_seq",
"-Aclippy::useless_transmute",
]