|
4 | 4 | "name": "Checks for comparisons where one side of the relation is either the minimum or maximum value for its", |
5 | 5 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons" |
6 | 6 | }, |
| 7 | + { |
| 8 | + "key": "clippy::alloc_instead_of_core", |
| 9 | + "name": "Finds items imported through `alloc` when available through `core`.", |
| 10 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#alloc_instead_of_core" |
| 11 | + }, |
7 | 12 | { |
8 | 13 | "key": "clippy::allow_attributes_without_reason", |
9 | 14 | "name": "Checks for attributes that allow lints without a reason. (This requires the `lint_reasons` feature)", |
|
24 | 29 | "name": "Checks for floating point literals that approximate constants which are defined in [`std::f32::const", |
25 | 30 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant" |
26 | 31 | }, |
| 32 | + { |
| 33 | + "key": "clippy::arithmetic", |
| 34 | + "name": "Checks for any kind of arithmetic operation of any type. Operators like `+`, `-`, `*` or `<<` are u", |
| 35 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#arithmetic" |
| 36 | + }, |
27 | 37 | { |
28 | 38 | "key": "clippy::as_conversions", |
29 | 39 | "name": "Checks for usage of `as` conversions. Note that this lint is specialized in linting *every single*", |
|
39 | 49 | "name": "Checks for `assert!(true)` and `assert!(false)` calls.", |
40 | 50 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants" |
41 | 51 | }, |
| 52 | + { |
| 53 | + "key": "clippy::assertions_on_result_states", |
| 54 | + "name": "Checks for `assert!(r.is_ok())` or `assert!(r.is_err())` calls.", |
| 55 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states" |
| 56 | + }, |
42 | 57 | { |
43 | 58 | "key": "clippy::assign_op_pattern", |
44 | 59 | "name": "Checks for `a = a op b` or `a = b commutative_op a` patterns.", |
|
74 | 89 | "name": "Checks for usage of `_.and_then(|x| Some(y))`, `_.and_then(|x| Ok(y))` or `_.or_else(|x| Err(y))`.", |
75 | 90 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map" |
76 | 91 | }, |
77 | | - { |
78 | | - "key": "clippy::blacklisted_name", |
79 | | - "name": "Checks for usage of blacklisted names for variables, such as `foo`.", |
80 | | - "url": "https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name" |
81 | | - }, |
82 | 92 | { |
83 | 93 | "key": "clippy::blanket_clippy_restriction_lints", |
84 | 94 | "name": "Checks for `warn`/`deny`/`forbid` attributes targeting the whole clippy::restriction category.", |
|
404 | 414 | "name": "Denies the configured methods and functions in clippy.toml Note: Even though this lint is warn-by-d", |
405 | 415 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods" |
406 | 416 | }, |
| 417 | + { |
| 418 | + "key": "clippy::disallowed_names", |
| 419 | + "name": "Checks for usage of disallowed names for variables, such as `foo`.", |
| 420 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names" |
| 421 | + }, |
407 | 422 | { |
408 | 423 | "key": "clippy::disallowed_script_idents", |
409 | 424 | "name": "Checks for usage of unicode scripts other than those explicitly allowed by the lint config. This li", |
|
571 | 586 | }, |
572 | 587 | { |
573 | 588 | "key": "clippy::expect_used", |
574 | | - "name": "Checks for `.expect()` calls on `Option`s and `Result`s.", |
| 589 | + "name": "Checks for `.expect()` or `.expect_err()` calls on `Result`s and `.expect()` call on `Option`s.", |
575 | 590 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#expect_used" |
576 | 591 | }, |
577 | 592 | { |
578 | 593 | "key": "clippy::expl_impl_clone_on_copy", |
579 | 594 | "name": "Checks for explicit `Clone` implementations for `Copy` types.", |
580 | 595 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy" |
581 | 596 | }, |
| 597 | + { |
| 598 | + "key": "clippy::explicit_auto_deref", |
| 599 | + "name": "Checks for dereferencing expressions which would be covered by auto-deref.", |
| 600 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref" |
| 601 | + }, |
582 | 602 | { |
583 | 603 | "key": "clippy::explicit_counter_loop", |
584 | 604 | "name": "Checks `for` loops over slices with an explicit counter and suggests the use of `.enumerate()`.", |
|
791 | 811 | }, |
792 | 812 | { |
793 | 813 | "key": "clippy::if_then_some_else_none", |
794 | | - "name": "Checks for if-else that could be written to `bool::then`.", |
| 814 | + "name": "Checks for if-else that could be written using either `bool::then` or `bool::then_some`.", |
795 | 815 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none" |
796 | 816 | }, |
797 | 817 | { |
|
939 | 959 | "name": "Checks for comparisons where the relation is always either true or false, but where one side has bee", |
940 | 960 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons" |
941 | 961 | }, |
| 962 | + { |
| 963 | + "key": "clippy::invalid_utf8_in_unchecked", |
| 964 | + "name": "Checks for `std::str::from_utf8_unchecked` with an invalid UTF-8 literal", |
| 965 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#invalid_utf8_in_unchecked" |
| 966 | + }, |
942 | 967 | { |
943 | 968 | "key": "clippy::invisible_characters", |
944 | 969 | "name": "Checks for invisible Unicode characters in the code.", |
945 | 970 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters" |
946 | 971 | }, |
947 | 972 | { |
948 | 973 | "key": "clippy::is_digit_ascii_radix", |
949 | | - "name": "Finds usages of [`char::is_digit`] (https://doc.rust-lang.org/stable/std/primitive.char.html#method.", |
| 974 | + "name": "Finds usages of [`char::is_digit`](https://doc.rust-lang.org/stable/std/primitive.char.html#method.i", |
950 | 975 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix" |
951 | 976 | }, |
952 | 977 | { |
|
989 | 1014 | "name": "Checks for the use of `iter.nth(0)`.", |
990 | 1015 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero" |
991 | 1016 | }, |
| 1017 | + { |
| 1018 | + "key": "clippy::iter_on_empty_collections", |
| 1019 | + "name": "Checks for calls to `iter`, `iter_mut` or `into_iter` on empty collections", |
| 1020 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_empty_collections" |
| 1021 | + }, |
| 1022 | + { |
| 1023 | + "key": "clippy::iter_on_single_items", |
| 1024 | + "name": "Checks for calls to `iter`, `iter_mut` or `into_iter` on collections containing a single item", |
| 1025 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_single_items" |
| 1026 | + }, |
992 | 1027 | { |
993 | 1028 | "key": "clippy::iter_overeager_cloned", |
994 | 1029 | "name": "Checks for usage of `_.cloned().<func>()` where call to `.cloned()` can be postponed.", |
|
1084 | 1119 | "name": "Checks for usage of any `LinkedList`, suggesting to use a `Vec` or a `VecDeque` (formerly called `Ri", |
1085 | 1120 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#linkedlist" |
1086 | 1121 | }, |
1087 | | - { |
1088 | | - "key": "clippy::logic_bug", |
1089 | | - "name": "Checks for boolean expressions that contain terminals that can be eliminated.", |
1090 | | - "url": "https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug" |
1091 | | - }, |
1092 | 1122 | { |
1093 | 1123 | "key": "clippy::lossy_float_literal", |
1094 | 1124 | "name": "Checks for whole number float literals that cannot be represented as the underlying type without los", |
|
1119 | 1149 | "name": "Checks for uses of `std::mem::size_of::<T>() * 8` when `T::BITS` is available.", |
1120 | 1150 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits" |
1121 | 1151 | }, |
| 1152 | + { |
| 1153 | + "key": "clippy::manual_empty_string_creations", |
| 1154 | + "name": "Checks for usage of `\"\"` to create a `String`, such as `\"\".to_string()`, `\"\".to_owned()`, `String::", |
| 1155 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_empty_string_creations" |
| 1156 | + }, |
1122 | 1157 | { |
1123 | 1158 | "key": "clippy::manual_filter_map", |
1124 | 1159 | "name": "Checks for usage of `_.filter(_).map(_)` that can be written more simply as `filter_map(_)`.", |
1125 | 1160 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map" |
1126 | 1161 | }, |
| 1162 | + { |
| 1163 | + "key": "clippy::manual_find", |
| 1164 | + "name": "Check for manual implementations of Iterator::find", |
| 1165 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_find" |
| 1166 | + }, |
1127 | 1167 | { |
1128 | 1168 | "key": "clippy::manual_find_map", |
1129 | 1169 | "name": "Checks for usage of `_.find(_).map(_)` that can be written more simply as `find_map(_)`.", |
|
1134 | 1174 | "name": "Check for unnecessary `if let` usage in a for loop where only the `Some` or `Ok` variant of the iter", |
1135 | 1175 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten" |
1136 | 1176 | }, |
| 1177 | + { |
| 1178 | + "key": "clippy::manual_instant_elapsed", |
| 1179 | + "name": "Lints subtraction between `Instant::now()` and another `Instant`.", |
| 1180 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed" |
| 1181 | + }, |
1137 | 1182 | { |
1138 | 1183 | "key": "clippy::manual_map", |
1139 | 1184 | "name": "Checks for usages of `match` which could be implemented using `map`", |
|
1159 | 1204 | "name": "Checks for expressions like `x >= 3 && x < 8` that could be more readably expressed as `(3..8).conta", |
1160 | 1205 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains" |
1161 | 1206 | }, |
| 1207 | + { |
| 1208 | + "key": "clippy::manual_rem_euclid", |
| 1209 | + "name": "Checks for an expression like `((x % 4) + 4) % 4` which is a common manual reimplementation of `x.re", |
| 1210 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid" |
| 1211 | + }, |
| 1212 | + { |
| 1213 | + "key": "clippy::manual_retain", |
| 1214 | + "name": "Checks for code to be replaced by `.retain()`.", |
| 1215 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_retain" |
| 1216 | + }, |
1162 | 1217 | { |
1163 | 1218 | "key": "clippy::manual_saturating_arithmetic", |
1164 | 1219 | "name": "Checks for `.checked_add/sub(x).unwrap_or(MAX/MIN)`.", |
|
1541 | 1596 | }, |
1542 | 1597 | { |
1543 | 1598 | "key": "clippy::needless_option_take", |
1544 | | - "name": "bad?", |
| 1599 | + "name": "Checks for calling `take` function after `as_ref`.", |
1545 | 1600 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take" |
1546 | 1601 | }, |
1547 | 1602 | { |
|
1659 | 1714 | "name": "Checks for public functions that dereference raw pointer arguments but are not marked `unsafe`.", |
1660 | 1715 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref" |
1661 | 1716 | }, |
| 1717 | + { |
| 1718 | + "key": "clippy::obfuscated_if_else", |
| 1719 | + "name": "Checks for usages of `.then_some(..).unwrap_or(..)`", |
| 1720 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else" |
| 1721 | + }, |
1662 | 1722 | { |
1663 | 1723 | "key": "clippy::octal_escapes", |
1664 | 1724 | "name": "Checks for `\\0` escapes in string and byte literals that look like octal character escapes in C.", |
|
1734 | 1794 | "name": "Detects classic underflow/overflow checks.", |
1735 | 1795 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional" |
1736 | 1796 | }, |
| 1797 | + { |
| 1798 | + "key": "clippy::overly_complex_bool_expr", |
| 1799 | + "name": "Checks for boolean expressions that contain terminals that can be eliminated.", |
| 1800 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#overly_complex_bool_expr" |
| 1801 | + }, |
1737 | 1802 | { |
1738 | 1803 | "key": "clippy::panic", |
1739 | 1804 | "name": "Checks for usage of `panic!`.", |
|
1754 | 1819 | "name": "Checks for manual re-implementations of `PartialEq::ne`.", |
1755 | 1820 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl" |
1756 | 1821 | }, |
| 1822 | + { |
| 1823 | + "key": "clippy::partialeq_to_none", |
| 1824 | + "name": "Checks for binary comparisons to a literal `Option::None`.", |
| 1825 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none" |
| 1826 | + }, |
1757 | 1827 | { |
1758 | 1828 | "key": "clippy::path_buf_push_overwrite", |
1759 | 1829 | "name": "* Checks for [push](https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.push) calls on `Pa", |
|
1764 | 1834 | "name": "Checks for patterns that aren't exact representations of the types they are applied to. To satisfy", |
1765 | 1835 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch" |
1766 | 1836 | }, |
| 1837 | + { |
| 1838 | + "key": "clippy::positional_named_format_parameters", |
| 1839 | + "name": "This lint warns when a named parameter in a format string is used as a positional one.", |
| 1840 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#positional_named_format_parameters" |
| 1841 | + }, |
1767 | 1842 | { |
1768 | 1843 | "key": "clippy::possible_missing_comma", |
1769 | 1844 | "name": "Checks for possible missing comma in an array. It lints if an array element is a binary operator exp", |
|
2124 | 2199 | "name": "When sorting primitive values (integers, bools, chars, as well as arrays, slices, and tuples of such", |
2125 | 2200 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive" |
2126 | 2201 | }, |
| 2202 | + { |
| 2203 | + "key": "clippy::std_instead_of_alloc", |
| 2204 | + "name": "Finds items imported through `std` when available through `alloc`.", |
| 2205 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_alloc" |
| 2206 | + }, |
| 2207 | + { |
| 2208 | + "key": "clippy::std_instead_of_core", |
| 2209 | + "name": "Finds items imported through `std` when available through `core`.", |
| 2210 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_core" |
| 2211 | + }, |
2127 | 2212 | { |
2128 | 2213 | "key": "clippy::str_to_string", |
2129 | 2214 | "name": "This lint checks for `.to_string()` method calls on values of type `&str`.", |
|
2566 | 2651 | }, |
2567 | 2652 | { |
2568 | 2653 | "key": "clippy::unwrap_used", |
2569 | | - "name": "Checks for `.unwrap()` calls on `Option`s and on `Result`s.", |
| 2654 | + "name": "Checks for `.unwrap()` or `.unwrap_err()` calls on `Result`s and `.unwrap()` call on `Option`s.", |
2570 | 2655 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used" |
2571 | 2656 | }, |
2572 | 2657 | { |
|
2596 | 2681 | }, |
2597 | 2682 | { |
2598 | 2683 | "key": "clippy::useless_attribute", |
2599 | | - "name": "Checks for `extern crate` and `use` items annotated with lint attributes. This lint permits `#[allo", |
| 2684 | + "name": "Checks for `extern crate` and `use` items annotated with lint attributes. This lint permits lint at", |
2600 | 2685 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute" |
2601 | 2686 | }, |
2602 | 2687 | { |
|
0 commit comments