|
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::allow_attributes_without_reason", |
| 9 | + "name": "Checks for attributes that allow lints without a reason. (This requires the `lint_reasons` feature)", |
| 10 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason" |
| 11 | + }, |
7 | 12 | { |
8 | 13 | "key": "clippy::almost_swapped", |
9 | 14 | "name": "Checks for `foo = bar; bar = foo` sequences.", |
|
129 | 134 | "name": "Checks for calls to `ends_with` with possible file extensions and suggests to use a case-insensitive", |
130 | 135 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons" |
131 | 136 | }, |
| 137 | + { |
| 138 | + "key": "clippy::cast_enum_constructor", |
| 139 | + "name": "Checks for casts from an enum tuple constructor to an integer.", |
| 140 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_constructor" |
| 141 | + }, |
| 142 | + { |
| 143 | + "key": "clippy::cast_enum_truncation", |
| 144 | + "name": "Checks for casts from an enum type to an integral type which will definitely truncate the value.", |
| 145 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_truncation" |
| 146 | + }, |
132 | 147 | { |
133 | 148 | "key": "clippy::cast_lossless", |
134 | 149 | "name": "Checks for casts between numerical types that may be replaced by safe conversion functions.", |
|
164 | 179 | "name": "Checks for casts from a signed to an unsigned numerical type. In this case, negative values wrap aro", |
165 | 180 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss" |
166 | 181 | }, |
| 182 | + { |
| 183 | + "key": "clippy::cast_slice_different_sizes", |
| 184 | + "name": "asts between raw pointers to slices with differently sized elements.", |
| 185 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_different_sizes" |
| 186 | + }, |
167 | 187 | { |
168 | 188 | "key": "clippy::char_lit_as_u8", |
169 | 189 | "name": "Checks for expressions where a character literal is cast to `u8` and suggests using a byte literal i", |
|
254 | 274 | "name": "Checks for types that implement `Copy` as well as `Iterator`.", |
255 | 275 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#copy_iterator" |
256 | 276 | }, |
| 277 | + { |
| 278 | + "key": "clippy::crate_in_macro_def", |
| 279 | + "name": "Checks for use of `crate` as opposed to `$crate` in a macro definition.", |
| 280 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def" |
| 281 | + }, |
257 | 282 | { |
258 | 283 | "key": "clippy::create_dir", |
259 | 284 | "name": "Checks usage of `std::fs::create_dir` and suggest using `std::fs::create_dir_all` instead.", |
|
294 | 319 | "name": "Checks for literal calls to `Default::default()`.", |
295 | 320 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access" |
296 | 321 | }, |
| 322 | + { |
| 323 | + "key": "clippy::default_union_representation", |
| 324 | + "name": "Displays a warning when a union is declared with the default representation (without a `#[repr(C)]`", |
| 325 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#default_union_representation" |
| 326 | + }, |
297 | 327 | { |
298 | 328 | "key": "clippy::deprecated_cfg_attr", |
299 | 329 | "name": "Checks for `#[cfg_attr(rustfmt, rustfmt_skip)]` and suggests to replace it with `#[rustfmt::skip]`.", |
|
309 | 339 | "name": "Checks for usage of `*&` and `*&mut` in expressions.", |
310 | 340 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof" |
311 | 341 | }, |
| 342 | + { |
| 343 | + "key": "clippy::deref_by_slicing", |
| 344 | + "name": "Checks for slicing expressions which are equivalent to dereferencing the value.", |
| 345 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#deref_by_slicing" |
| 346 | + }, |
312 | 347 | { |
313 | 348 | "key": "clippy::derivable_impls", |
314 | 349 | "name": "Detects manual `std::default::Default` implementations that are identical to a derived implementatio", |
|
409 | 444 | "name": "Checks for empty `loop` expressions.", |
410 | 445 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop" |
411 | 446 | }, |
| 447 | + { |
| 448 | + "key": "clippy::empty_structs_with_brackets", |
| 449 | + "name": "Finds structs without fields (a so-called \"empty struct\") that are declared with brackets.", |
| 450 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#empty_structs_with_brackets" |
| 451 | + }, |
412 | 452 | { |
413 | 453 | "key": "clippy::enum_clike_unportable_variant", |
414 | 454 | "name": "Checks for C-like enumerations that are `repr(isize/usize)` and have values that don't fit into an `", |
|
879 | 919 | "name": "Checks for use of `.skip(x).next()` on iterators.", |
880 | 920 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next" |
881 | 921 | }, |
| 922 | + { |
| 923 | + "key": "clippy::iter_with_drain", |
| 924 | + "name": "Checks for use of `.drain(..)` on `Vec` and `VecDeque` for iteration.", |
| 925 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#iter_with_drain" |
| 926 | + }, |
882 | 927 | { |
883 | 928 | "key": "clippy::iterator_step_by_zero", |
884 | 929 | "name": "Checks for calling `.step_by(0)` on iterators which panics.", |
|
1234 | 1279 | "name": "Checks for the doc comments of publicly visible unsafe functions and warns if there is no `# Safety`", |
1235 | 1280 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc" |
1236 | 1281 | }, |
| 1282 | + { |
| 1283 | + "key": "clippy::missing_spin_loop", |
| 1284 | + "name": "Check for empty spin loops", |
| 1285 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#missing_spin_loop" |
| 1286 | + }, |
1237 | 1287 | { |
1238 | 1288 | "key": "clippy::mistyped_literal_suffixes", |
1239 | 1289 | "name": "Warns for mistyped suffix in literals", |
|
1246 | 1296 | }, |
1247 | 1297 | { |
1248 | 1298 | "key": "clippy::mod_module_files", |
1249 | | - "name": "Checks that module layout uses only self named module files, bans mod.rs files.", |
| 1299 | + "name": "Checks that module layout uses only self named module files, bans `mod.rs` files.", |
1250 | 1300 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files" |
1251 | 1301 | }, |
1252 | 1302 | { |
|
1384 | 1434 | "name": "Checks for lifetime annotations which can be removed by relying on lifetime elision.", |
1385 | 1435 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes" |
1386 | 1436 | }, |
| 1437 | + { |
| 1438 | + "key": "clippy::needless_match", |
| 1439 | + "name": "Checks for unnecessary `match` or match-like `if let` returns for `Option` and `Result` when functio", |
| 1440 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#needless_match" |
| 1441 | + }, |
1387 | 1442 | { |
1388 | 1443 | "key": "clippy::needless_option_as_deref", |
1389 | 1444 | "name": "Checks for no-op uses of Option::{as_deref,as_deref_mut}, for example, `Option<&T>::as_deref()` retu", |
|
1446 | 1501 | }, |
1447 | 1502 | { |
1448 | 1503 | "key": "clippy::new_without_default", |
1449 | | - "name": "Checks for types with a `fn new() -> Self` method and no implementation of [`Default`](https://doc.r", |
| 1504 | + "name": "Checks for public types with a `pub fn new() -> Self` method and no implementation of [`Default`](ht", |
1450 | 1505 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default" |
1451 | 1506 | }, |
1452 | 1507 | { |
|
1504 | 1559 | "name": "Checks for usage of `ok().expect(..)`.", |
1505 | 1560 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect" |
1506 | 1561 | }, |
| 1562 | + { |
| 1563 | + "key": "clippy::only_used_in_recursion", |
| 1564 | + "name": "Checks for arguments that are only used in recursion with no side-effects.", |
| 1565 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion" |
| 1566 | + }, |
1507 | 1567 | { |
1508 | 1568 | "key": "clippy::op_ref", |
1509 | 1569 | "name": "Checks for arguments to `==` which have their address taken to satisfy a bound and suggests to deref", |
|
1549 | 1609 | "name": "Checks for calls to `.or(foo(..))`, `.unwrap_or(foo(..))`, etc., and suggests to use `or_else`, `unw", |
1550 | 1610 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call" |
1551 | 1611 | }, |
| 1612 | + { |
| 1613 | + "key": "clippy::or_then_unwrap", |
| 1614 | + "name": "Checks for `.or(…).unwrap()` calls to Options and Results.", |
| 1615 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#or_then_unwrap" |
| 1616 | + }, |
1552 | 1617 | { |
1553 | 1618 | "key": "clippy::out_of_bounds_indexing", |
1554 | 1619 | "name": "Checks for out of bounds array indexing with a constant index.", |
|
1599 | 1664 | "name": "Checks for operations where precedence may be unclear and suggests to add parentheses. Currently it", |
1600 | 1665 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#precedence" |
1601 | 1666 | }, |
| 1667 | + { |
| 1668 | + "key": "clippy::print_in_format_impl", |
| 1669 | + "name": "Checks for use of `println`, `print`, `eprintln` or `eprint` in an implementation of a formatting tr", |
| 1670 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#print_in_format_impl" |
| 1671 | + }, |
1602 | 1672 | { |
1603 | 1673 | "key": "clippy::print_literal", |
1604 | 1674 | "name": "This lint warns about the use of literals as `print!`/`println!` args.", |
|
1674 | 1744 | "name": "Checks for `Rc<Mutex<T>>`.", |
1675 | 1745 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#rc_mutex" |
1676 | 1746 | }, |
| 1747 | + { |
| 1748 | + "key": "clippy::recursive_format_impl", |
| 1749 | + "name": "Checks for format trait implementations (e.g. `Display`) with a recursive call to itself which uses", |
| 1750 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#recursive_format_impl" |
| 1751 | + }, |
1677 | 1752 | { |
1678 | 1753 | "key": "clippy::redundant_allocation", |
1679 | 1754 | "name": "Checks for use of redundant allocations anywhere in the code.", |
|
1816 | 1891 | }, |
1817 | 1892 | { |
1818 | 1893 | "key": "clippy::self_named_module_files", |
1819 | | - "name": "Checks that module layout uses only mod.rs files.", |
| 1894 | + "name": "Checks that module layout uses only `mod.rs` files.", |
1820 | 1895 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files" |
1821 | 1896 | }, |
1822 | 1897 | { |
|
2029 | 2104 | "name": "Checks for `.to_digit(..).is_some()` on `char`s.", |
2030 | 2105 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some" |
2031 | 2106 | }, |
2032 | | - { |
2033 | | - "key": "clippy::to_string_in_display", |
2034 | | - "name": "Checks for uses of `to_string()` in `Display` traits.", |
2035 | | - "url": "https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display" |
2036 | | - }, |
2037 | 2107 | { |
2038 | 2108 | "key": "clippy::to_string_in_format_args", |
2039 | 2109 | "name": "Checks for [`ToString::to_string`](https://doc.rust-lang.org/std/string/trait.ToString.html#tymethod", |
|
2109 | 2179 | "name": "Checks for transmutes from a pointer to a reference.", |
2110 | 2180 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref" |
2111 | 2181 | }, |
| 2182 | + { |
| 2183 | + "key": "clippy::transmute_undefined_repr", |
| 2184 | + "name": "Checks for transmutes between types which do not have a representation defined relative to each othe", |
| 2185 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#transmute_undefined_repr" |
| 2186 | + }, |
2112 | 2187 | { |
2113 | 2188 | "key": "clippy::transmutes_expressible_as_ptr_casts", |
2114 | 2189 | "name": "Checks for transmutes that could be a pointer cast.", |
|
2201 | 2276 | }, |
2202 | 2277 | { |
2203 | 2278 | "key": "clippy::unnecessary_filter_map", |
2204 | | - "name": "Checks for `filter_map` calls which could be replaced by `filter` or `map`. More specifically it che", |
| 2279 | + "name": "Checks for `filter_map` calls that could be replaced by `filter` or `map`. More specifically it chec", |
2205 | 2280 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map" |
2206 | 2281 | }, |
| 2282 | + { |
| 2283 | + "key": "clippy::unnecessary_find_map", |
| 2284 | + "name": "Checks for `find_map` calls that could be replaced by `find` or `map`. More specifically it checks i", |
| 2285 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map" |
| 2286 | + }, |
2207 | 2287 | { |
2208 | 2288 | "key": "clippy::unnecessary_fold", |
2209 | 2289 | "name": "Checks for using `fold` when a more succinct alternative exists. Specifically, this checks for `fold", |
2210 | 2290 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold" |
2211 | 2291 | }, |
| 2292 | + { |
| 2293 | + "key": "clippy::unnecessary_join", |
| 2294 | + "name": "Checks for use of `.collect::<Vec<String>>().join(\"\")` on iterators.", |
| 2295 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_join" |
| 2296 | + }, |
2212 | 2297 | { |
2213 | 2298 | "key": "clippy::unnecessary_lazy_evaluations", |
2214 | 2299 | "name": "As the counterpart to `or_fun_call`, this lint looks for unnecessary lazily evaluated closures on `O", |
|
0 commit comments