Home
last modified time | relevance | path

Searched full:clippy (Results 1 – 25 of 1561) sorted by relevance

12345678910>>...63

/external/rust/crates/winnow/src/
Dlib.rs54 #![warn(clippy::std_instead_of_core)]
59 #![warn(clippy::all)]
60 #![warn(clippy::await_holding_lock)]
61 #![warn(clippy::char_lit_as_u8)]
62 #![warn(clippy::checked_conversions)]
63 #![warn(clippy::dbg_macro)]
64 #![warn(clippy::debug_assert_with_mut_call)]
65 #![warn(clippy::doc_markdown)]
66 #![warn(clippy::empty_enum)]
67 #![warn(clippy::enum_glob_use)]
[all …]
/external/rust/crates/serde_derive/src/
Dlib.rs18 // Ignored clippy lints
20 // clippy false positive: https://github.com/rust-lang/rust-clippy/issues/7054
21 clippy::branches_sharing_code,
22 clippy::cognitive_complexity,
23 // clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575
24 clippy::collapsible_match,
25 clippy::derive_partial_eq_without_eq,
26 clippy::enum_variant_names,
27 // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797
28 clippy::manual_map,
[all …]
/external/rust/crates/axum-core/src/
Dlib.rs13 clippy::all,
14 clippy::dbg_macro,
15 clippy::todo,
16 clippy::empty_enum,
17 clippy::enum_glob_use,
18 clippy::mem_forget,
19 clippy::unused_self,
20 clippy::filter_map_next,
21 clippy::needless_continue,
22 clippy::needless_borrow,
[all …]
/external/rust/cxx/gen/lib/src/
Dlib.rs14 clippy::cast_sign_loss,
15 clippy::default_trait_access,
16 clippy::derive_partial_eq_without_eq,
17 clippy::enum_glob_use,
18 clippy::if_same_then_else,
19 clippy::inherent_to_string,
20 clippy::into_iter_without_iter,
21 clippy::items_after_statements,
22 clippy::match_bool,
23 clippy::match_on_vec_items,
[all …]
/external/rust/cxx/gen/cmd/src/
Dmain.rs2 clippy::cast_sign_loss,
3 clippy::cognitive_complexity,
4 clippy::default_trait_access,
5 clippy::derive_partial_eq_without_eq,
6 clippy::enum_glob_use,
7 clippy::if_same_then_else,
8 clippy::inherent_to_string,
9 clippy::into_iter_without_iter,
10 clippy::items_after_statements,
11 clippy::large_enum_variant,
[all …]
/external/rust/cxx/macro/src/
Dlib.rs2 clippy::cast_sign_loss,
3 clippy::default_trait_access,
4 clippy::derive_partial_eq_without_eq,
5 clippy::doc_markdown,
6 clippy::enum_glob_use,
7 clippy::if_same_then_else,
8 clippy::inherent_to_string,
9 clippy::into_iter_without_iter,
10 clippy::items_after_statements,
11 clippy::large_enum_variant,
[all …]
/external/rust/crates/serde_json/tests/
Dlexical.rs2 clippy::cast_lossless,
3 clippy::cast_possible_truncation,
4 clippy::cast_possible_wrap,
5 clippy::cast_precision_loss,
6 clippy::cast_sign_loss,
7 clippy::comparison_chain,
8 clippy::doc_markdown,
9 clippy::excessive_precision,
10 clippy::float_cmp,
11 clippy::if_not_else,
[all …]
/external/rust/crates/serde_yaml/src/
Dlib.rs123 clippy::iter_not_returning_iterator, // https://github.com/rust-lang/rust-clippy/issues/8285
124 clippy::ptr_arg, // https://github.com/rust-lang/rust-clippy/issues/9218
125 clippy::question_mark, // https://github.com/rust-lang/rust-clippy/issues/7859
127 clippy::should_implement_trait,
129 clippy::cast_lossless,
130 clippy::checked_conversions,
131 clippy::if_not_else,
132 clippy::manual_assert,
133 clippy::match_like_matches_macro,
134 clippy::match_same_arms,
[all …]
/external/rust/crates/serde_json/src/
Dlib.rs304 // Ignored clippy lints
306 clippy::collapsible_else_if,
307 clippy::comparison_chain,
308 clippy::deprecated_cfg_attr,
309 clippy::doc_markdown,
310 clippy::excessive_precision,
311 clippy::explicit_auto_deref,
312 clippy::float_cmp,
313 clippy::manual_range_contains,
314 clippy::match_like_matches_macro,
[all …]
/external/rust/crates/clap_derive/src/derives/
Dinto_app.rs34 clippy::style, in gen_for_struct()
35 clippy::complexity, in gen_for_struct()
36 clippy::pedantic, in gen_for_struct()
37 clippy::restriction, in gen_for_struct()
38 clippy::perf, in gen_for_struct()
39 clippy::deprecated, in gen_for_struct()
40 clippy::nursery, in gen_for_struct()
41 clippy::cargo, in gen_for_struct()
42 clippy::suspicious_else_formatting, in gen_for_struct()
43 clippy::almost_swapped, in gen_for_struct()
[all …]
/external/bazelbuild-rules_rust/docs/
Drust_clippy.vm5 [Clippy][clippy] is a tool for catching common mistakes in Rust code and improving it. An
8 [clippy]: https://github.com/rust-lang/rust-clippy#readme
9 [docs]: https://rust-lang.github.io/rust-clippy/
22 This will enable clippy on all [Rust targets](./defs.md).
24 Note that targets tagged with `no-clippy` will not perform clippy checks
26 To use a local clippy.toml, add the following flag to your `.bazelrc`. Note that due to
27 the upstream implementation of clippy, this file must be named either `.clippy.toml` or
28 `clippy.toml`. Using a custom config file requires Rust 1.34.0 or newer.
31 build --@rules_rust//:clippy.toml=//:clippy.toml
Drust_clippy.md2 # Rust Clippy
11 [Clippy][clippy] is a tool for catching common mistakes in Rust code and improving it. An
14 [clippy]: https://github.com/rust-lang/rust-clippy#readme
15 [docs]: https://rust-lang.github.io/rust-clippy/
28 This will enable clippy on all [Rust targets](./defs.md).
30 Note that targets tagged with `no-clippy` will not perform clippy checks
32 To use a local clippy.toml, add the following flag to your `.bazelrc`. Note that due to
33 the upstream implementation of clippy, this file must be named either `.clippy.toml` or
34 `clippy.toml`. Using a custom config file requires Rust 1.34.0 or newer.
37 build --@rules_rust//:clippy.toml=//:clippy.toml
[all …]
/external/rust/crates/thiserror-impl/src/
Dlib.rs2 clippy::blocks_in_if_conditions,
3 clippy::cast_lossless,
4 clippy::cast_possible_truncation,
5 clippy::manual_find,
6 clippy::manual_let_else,
7 clippy::manual_map,
8 clippy::map_unwrap_or,
9 clippy::needless_pass_by_value,
10 clippy::option_if_let_else,
11 clippy::range_plus_one,
[all …]
/external/rust/crates/pin-project/tests/expand/naming/
Dtuple_struct-all.expanded.rs10 #[allow(clippy::unknown_clippy_lints)]
11 #[allow(clippy::pattern_type_mismatch)]
12 #[allow(clippy::redundant_pub_crate)]
13 #[allow(clippy::type_repetition_in_bounds)]
15 #[allow(clippy::mut_mut)]
28 #[allow(clippy::unknown_clippy_lints)]
29 #[allow(clippy::pattern_type_mismatch)]
30 #[allow(clippy::redundant_pub_crate)]
31 #[allow(clippy::type_repetition_in_bounds)]
33 #[allow(clippy::ref_option_ref)]
[all …]
Dstruct-all.expanded.rs14 #[allow(clippy::unknown_clippy_lints)]
15 #[allow(clippy::pattern_type_mismatch)]
16 #[allow(clippy::redundant_pub_crate)]
17 #[allow(clippy::type_repetition_in_bounds)]
19 #[allow(clippy::mut_mut)]
33 #[allow(clippy::unknown_clippy_lints)]
34 #[allow(clippy::pattern_type_mismatch)]
35 #[allow(clippy::redundant_pub_crate)]
36 #[allow(clippy::type_repetition_in_bounds)]
38 #[allow(clippy::ref_option_ref)]
[all …]
Denum-all.expanded.rs14 #[allow(clippy::unknown_clippy_lints)]
15 #[allow(clippy::pattern_type_mismatch)]
16 #[allow(clippy::redundant_pub_crate)]
17 #[allow(clippy::type_repetition_in_bounds)]
19 #[allow(clippy::mut_mut)]
37 #[allow(clippy::unknown_clippy_lints)]
38 #[allow(clippy::pattern_type_mismatch)]
39 #[allow(clippy::redundant_pub_crate)]
40 #[allow(clippy::type_repetition_in_bounds)]
42 #[allow(clippy::ref_option_ref)]
[all …]
/external/bazelbuild-rules_rust/rust/private/
Dclippy.bzl15 """A module defining clippy rules"""
33 doc = "Pass each value as an additional flag to clippy invocations",
34 fields = {"clippy_flags": "List[string] Flags to pass to clippy"},
42 "Add custom clippy flags from the command line with `--@rules_rust//:clippy_flags`."
49 """Check that a target is suitable for clippy and extract the `CrateInfo` provider from it.
56 CrateInfo, optional: A `CrateInfo` provider if clippy should be run or `None`.
67 "no-clippy",
94 # Clippy doesn't need to invoke transitive linking, therefore doesn't need linkstamps.
140 … clippy_out = ctx.actions.declare_file(ctx.label.name + ".clippy.out", sibling = crate_info.output)
148 # and consume the output. Some clippy lints are denials, so we treat them as warnings.
[all …]
/external/bazelbuild-rules_rust/test/clippy/
Dclippy_failure_test.sh3 # Runs Bazel build commands over clippy rules, where some are expected
25 # ${2}: The target within "//test/clippy" to be tested.
31 (bazel build ${@:3} //test/clippy:"${2}" &> /dev/null) || ret="$?" && true
33 …>&2 echo "FAIL: Unexpected return code [saw: ${ret}, want: ${1}] building target //test/clippy:${2…
34 >&2 echo " Run \"bazel build //test/clippy:${2}\" to see the output"
43 …if [[ $(stat ${STATOPTS[@]} "${NEW_WORKSPACE}/bazel-bin/test/clippy/${2%_clippy}.clippy.out") == 0…
44 >&2 echo "FAIL: Output wasn't written to out file building target //test/clippy:${2}"
45 >&2 echo " Output file: ${NEW_WORKSPACE}/bazel-bin/test/clippy/${2%_clippy}.clippy.out"
46 >&2 echo " Run \"bazel build //test/clippy:${2}\" to see the output"
60 local -r BAD_CLIPPY_TOML="--@rules_rust//:clippy.toml=//too_many_args:clippy.toml"
[all …]
/external/rust/crates/pin-project/tests/expand/unsafe_unpin/
Denum.expanded.rs14 #[allow(clippy::unknown_clippy_lints)]
15 #[allow(clippy::pattern_type_mismatch)]
16 #[allow(clippy::redundant_pub_crate)]
17 #[allow(clippy::type_repetition_in_bounds)]
19 #[allow(clippy::mut_mut)]
37 #[allow(clippy::unknown_clippy_lints)]
38 #[allow(clippy::pattern_type_mismatch)]
39 #[allow(clippy::redundant_pub_crate)]
40 #[allow(clippy::type_repetition_in_bounds)]
42 #[allow(clippy::ref_option_ref)]
[all …]
/external/rust/crates/unsafe-libyaml/src/
Dlib.rs10 #![warn(clippy::pedantic)]
12 clippy::bool_to_int_with_if,
13 clippy::cast_lossless,
14 clippy::cast_possible_truncation,
15 clippy::cast_possible_wrap,
16 clippy::cast_ptr_alignment,
17 clippy::cast_sign_loss,
18 clippy::collapsible_if,
19 clippy::doc_markdown,
20 clippy::fn_params_excessive_bools,
[all …]
/external/rust/crates/pin-project/tests/expand/default/
Denum.expanded.rs14 #[allow(clippy::unknown_clippy_lints)]
15 #[allow(clippy::pattern_type_mismatch)]
16 #[allow(clippy::redundant_pub_crate)]
17 #[allow(clippy::type_repetition_in_bounds)]
19 #[allow(clippy::mut_mut)]
37 #[allow(clippy::unknown_clippy_lints)]
38 #[allow(clippy::pattern_type_mismatch)]
39 #[allow(clippy::redundant_pub_crate)]
40 #[allow(clippy::type_repetition_in_bounds)]
42 #[allow(clippy::ref_option_ref)]
[all …]
/external/rust/crates/pin-project/tests/expand/pub/
Denum.expanded.rs14 #[allow(clippy::unknown_clippy_lints)]
15 #[allow(clippy::pattern_type_mismatch)]
16 #[allow(clippy::redundant_pub_crate)]
17 #[allow(clippy::type_repetition_in_bounds)]
19 #[allow(clippy::mut_mut)]
37 #[allow(clippy::unknown_clippy_lints)]
38 #[allow(clippy::pattern_type_mismatch)]
39 #[allow(clippy::redundant_pub_crate)]
40 #[allow(clippy::type_repetition_in_bounds)]
42 #[allow(clippy::ref_option_ref)]
[all …]
/external/rust/crates/pin-project/tests/expand/not_unpin/
Denum.expanded.rs14 #[allow(clippy::unknown_clippy_lints)]
15 #[allow(clippy::pattern_type_mismatch)]
16 #[allow(clippy::redundant_pub_crate)]
17 #[allow(clippy::type_repetition_in_bounds)]
19 #[allow(clippy::mut_mut)]
37 #[allow(clippy::unknown_clippy_lints)]
38 #[allow(clippy::pattern_type_mismatch)]
39 #[allow(clippy::redundant_pub_crate)]
40 #[allow(clippy::type_repetition_in_bounds)]
42 #[allow(clippy::ref_option_ref)]
[all …]
/external/rust/crates/pin-project-lite/tests/expand/naming/
Dstruct-all.expanded.rs9 #[allow(clippy::unknown_clippy_lints)]
10 #[allow(clippy::mut_mut)]
11 #[allow(clippy::redundant_pub_crate)]
12 #[allow(clippy::ref_option_ref)]
13 #[allow(clippy::type_repetition_in_bounds)]
24 #[allow(clippy::unknown_clippy_lints)]
25 #[allow(clippy::mut_mut)]
26 #[allow(clippy::redundant_pub_crate)]
27 #[allow(clippy::ref_option_ref)]
28 #[allow(clippy::type_repetition_in_bounds)]
[all …]
/external/rust/crates/ryu/src/
Dlib.rs86 clippy::cast_lossless,
87 clippy::cast_possible_truncation,
88 clippy::cast_possible_wrap,
89 clippy::cast_sign_loss,
90 clippy::checked_conversions,
91 clippy::doc_markdown,
92 clippy::expl_impl_clone_on_copy,
93 clippy::if_not_else,
94 clippy::many_single_char_names,
95 clippy::missing_panics_doc,
[all …]

12345678910>>...63