|
79 | 79 | "name": "Checks for expressions of the form `x == true`, `x != true` and order comparisons such as `x < true`", |
80 | 80 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison" |
81 | 81 | }, |
| 82 | + { |
| 83 | + "key": "clippy::borrow_as_ptr", |
| 84 | + "name": "Checks for the usage of `&expr as *const T` or `&mut expr as *mut T`, and suggest using `ptr::addr_o", |
| 85 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr" |
| 86 | + }, |
82 | 87 | { |
83 | 88 | "key": "clippy::borrow_interior_mutable_const", |
84 | 89 | "name": "Checks if `const` items which is interior mutable (e.g., contains a `Cell`, `Mutex`, `AtomicXxxx`, e", |
|
321 | 326 | }, |
322 | 327 | { |
323 | 328 | "key": "clippy::disallowed_methods", |
324 | | - "name": "Denies the configured methods and functions in clippy.toml", |
| 329 | + "name": "Denies the configured methods and functions in clippy.toml Note: Even though this lint is warn-by-d", |
325 | 330 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods" |
326 | 331 | }, |
327 | 332 | { |
|
331 | 336 | }, |
332 | 337 | { |
333 | 338 | "key": "clippy::disallowed_types", |
334 | | - "name": "Denies the configured types in clippy.toml.", |
| 339 | + "name": "Denies the configured types in clippy.toml. Note: Even though this lint is warn-by-default, it will", |
335 | 340 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types" |
336 | 341 | }, |
337 | 342 | { |
|
754 | 759 | "name": "Checks for the definition of inherent methods with a signature of `to_string(&self) -> String` and i", |
755 | 760 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display" |
756 | 761 | }, |
| 762 | + { |
| 763 | + "key": "clippy::init_numbered_fields", |
| 764 | + "name": "Checks for tuple structs initialized with field syntax. It will however not lint if a base initializ", |
| 765 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields" |
| 766 | + }, |
757 | 767 | { |
758 | 768 | "key": "clippy::inline_always", |
759 | 769 | "name": "Checks for items annotated with `#[inline(always)]`, unless the annotated function is empty or simpl", |
|
859 | 869 | "name": "Checks for the use of `iter.nth(0)`.", |
860 | 870 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero" |
861 | 871 | }, |
| 872 | + { |
| 873 | + "key": "clippy::iter_overeager_cloned", |
| 874 | + "name": "Checks for usage of `_.cloned().<func>()` where call to `.cloned()` can be postponed.", |
| 875 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned" |
| 876 | + }, |
862 | 877 | { |
863 | 878 | "key": "clippy::iter_skip_next", |
864 | 879 | "name": "Checks for use of `.skip(x).next()` on iterators.", |
|
969 | 984 | "name": "It checks for manual implementations of `async` functions.", |
970 | 985 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn" |
971 | 986 | }, |
| 987 | + { |
| 988 | + "key": "clippy::manual_bits", |
| 989 | + "name": "Checks for uses of `std::mem::size_of::<T>() * 8` when `T::BITS` is available.", |
| 990 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits" |
| 991 | + }, |
972 | 992 | { |
973 | 993 | "key": "clippy::manual_filter_map", |
974 | 994 | "name": "Checks for usage of `_.filter(_).map(_)` that can be written more simply as `filter_map(_)`.", |
|
1354 | 1374 | "name": "Checks for usage of `for_each` that would be more simply written as a `for` loop.", |
1355 | 1375 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#needless_for_each" |
1356 | 1376 | }, |
| 1377 | + { |
| 1378 | + "key": "clippy::needless_late_init", |
| 1379 | + "name": "Checks for late initializations that can be replaced by a `let` statement with an initializer.", |
| 1380 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init" |
| 1381 | + }, |
1357 | 1382 | { |
1358 | 1383 | "key": "clippy::needless_lifetimes", |
1359 | 1384 | "name": "Checks for lifetime annotations which can be removed by relying on lifetime elision.", |
|
1436 | 1461 | }, |
1437 | 1462 | { |
1438 | 1463 | "key": "clippy::non_ascii_literal", |
1439 | | - "name": "Checks for non-ASCII characters in string literals.", |
| 1464 | + "name": "Checks for non-ASCII characters in string and char literals.", |
1440 | 1465 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal" |
1441 | 1466 | }, |
1442 | 1467 | { |
|
1446 | 1471 | }, |
1447 | 1472 | { |
1448 | 1473 | "key": "clippy::non_send_fields_in_send_ty", |
1449 | | - "name": "Warns about fields in struct implementing `Send` that are neither `Send` nor `Copy`.", |
| 1474 | + "name": "This lint warns about a `Send` implementation for a type that contains fields that are not safe to b", |
1450 | 1475 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#non_send_fields_in_send_ty" |
1451 | 1476 | }, |
1452 | 1477 | { |
|
1601 | 1626 | }, |
1602 | 1627 | { |
1603 | 1628 | "key": "clippy::ptr_arg", |
1604 | | - "name": "This lint checks for function arguments of type `&String` or `&Vec` unless the references are mutabl", |
| 1629 | + "name": "This lint checks for function arguments of type `&String`, `&Vec`, `&PathBuf`, and `Cow<_>`. It will", |
1605 | 1630 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg" |
1606 | 1631 | }, |
1607 | 1632 | { |
|
1719 | 1744 | "name": "Checks for `ref` bindings which create a reference to a reference.", |
1720 | 1745 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference" |
1721 | 1746 | }, |
1722 | | - { |
1723 | | - "key": "clippy::ref_in_deref", |
1724 | | - "name": "Checks for references in expressions that use auto dereference.", |
1725 | | - "url": "https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref" |
1726 | | - }, |
1727 | 1747 | { |
1728 | 1748 | "key": "clippy::ref_option_ref", |
1729 | 1749 | "name": "Checks for usage of `&Option<&T>`.", |
|
1754 | 1774 | "name": "Checks for public functions that return a `Result` with an `Err` type of `()`. It suggests using a c", |
1755 | 1775 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err" |
1756 | 1776 | }, |
| 1777 | + { |
| 1778 | + "key": "clippy::return_self_not_must_use", |
| 1779 | + "name": "This lint warns when a method returning `Self` doesn't have the `#[must_use]` attribute.", |
| 1780 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use" |
| 1781 | + }, |
1757 | 1782 | { |
1758 | 1783 | "key": "clippy::reversed_empty_ranges", |
1759 | 1784 | "name": "Checks for range expressions `x..y` where both `x` and `y` are constant and `x` is greater or equal", |
|
1771 | 1796 | }, |
1772 | 1797 | { |
1773 | 1798 | "key": "clippy::same_name_method", |
1774 | | - "name": "It lints if a struct has two method with same time: one from a trait, another not from trait.", |
| 1799 | + "name": "It lints if a struct has two methods with the same name: one from a trait, another not from trait.", |
1775 | 1800 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method" |
1776 | 1801 | }, |
1777 | 1802 | { |
|
1844 | 1869 | "name": "Warns when using `push_str`/`insert_str` with a single-character string literal where `push`/`insert", |
1845 | 1870 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str" |
1846 | 1871 | }, |
| 1872 | + { |
| 1873 | + "key": "clippy::single_char_lifetime_names", |
| 1874 | + "name": "Checks for lifetimes with names which are one character long.", |
| 1875 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names" |
| 1876 | + }, |
1847 | 1877 | { |
1848 | 1878 | "key": "clippy::single_char_pattern", |
1849 | 1879 | "name": "Checks for string methods that receive a single-character `str` as an argument, e.g., `_.split(\"x\")`", |
|
2116 | 2146 | }, |
2117 | 2147 | { |
2118 | 2148 | "key": "clippy::undocumented_unsafe_blocks", |
2119 | | - "name": "Checks for `unsafe` blocks without a `// Safety: ` comment explaining why the unsafe operations perf", |
| 2149 | + "name": "Checks for `unsafe` blocks without a `// SAFETY: ` comment explaining why the unsafe operations perf", |
2120 | 2150 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks" |
2121 | 2151 | }, |
2122 | 2152 | { |
|
2204 | 2234 | "name": "Detects uses of `Vec::sort_by` passing in a closure which compares the two arguments, either directl", |
2205 | 2235 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by" |
2206 | 2236 | }, |
| 2237 | + { |
| 2238 | + "key": "clippy::unnecessary_to_owned", |
| 2239 | + "name": "Checks for unnecessary calls to [`ToOwned::to_owned`](https://doc.rust-lang.org/std/borrow/trait.ToO", |
| 2240 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned" |
| 2241 | + }, |
2207 | 2242 | { |
2208 | 2243 | "key": "clippy::unnecessary_unwrap", |
2209 | 2244 | "name": "Checks for calls of `unwrap[_err]()` that cannot fail.", |
|
0 commit comments