• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Disable clippy lints project-wide.
2# This allows ./tools/clippy and IDE integrations to use the same configuration.
3# This should be replaced with a proper clippy config once available:
4# https://github.com/rust-lang/cargo/issues/5034
5[build]
6rustflags = [
7    # We don't care about these lints. Okay to remain suppressed globally.
8    "-Aclippy::bool_assert_comparison",
9    "-Aclippy::cast_lossless",
10    "-Aclippy::cognitive_complexity",
11    "-Aclippy::collapsible_if",
12    "-Aclippy::enum_variant_names",
13    "-Aclippy::identity_op",
14    "-Aclippy::match_bool",
15    "-Aclippy::match_wild_err_arm",
16    "-Aclippy::needless_bool",
17    "-Aclippy::new-ret-no-self",
18    "-Aclippy::or_fun_call",
19    "-Aclippy::result_large_err",
20    "-Aclippy::result-unit-err",
21    "-Aclippy::should_implement_trait",
22    "-Aclippy::single_char_pattern",
23    "-Aclippy::single-range-in-vec-init",
24    "-Aclippy::too_many_arguments",
25    "-Aclippy::trivially_copy_pass_by_ref",
26    "-Aclippy::type_complexity",
27    "-Aclippy::unreadable_literal",
28    "-Aclippy::useless_let_if_seq",
29    "-Aclippy::useless_transmute",
30    "-Dclippy::undocumented_unsafe_blocks",
31]
32