|
15 | 15 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason"
|
16 | 16 | },
|
17 | 17 | {
|
18 |
| - "key": "clippy::almost_complete_letter_range", |
19 |
| - "name": "Checks for ranges which almost include the entire range of letters from 'a' to 'z', but don't becaus", |
20 |
| - "url": "https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_letter_range" |
| 18 | + "key": "clippy::almost_complete_range", |
| 19 | + "name": "Checks for ranges which almost include the entire range of letters from 'a' to 'z' or digits from '0", |
| 20 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_range" |
21 | 21 | },
|
22 | 22 | {
|
23 | 23 | "key": "clippy::almost_swapped",
|
|
611 | 611 | },
|
612 | 612 | {
|
613 | 613 | "key": "clippy::exit",
|
614 |
| - "name": "`exit()` terminates the program and doesn't provide a stack trace.", |
| 614 | + "name": "Detects calls to the `exit()` function which terminates the program.", |
615 | 615 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#exit"
|
616 | 616 | },
|
617 | 617 | {
|
|
734 | 734 | "name": "Checks for comparisons with an address of a function item.",
|
735 | 735 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons"
|
736 | 736 | },
|
| 737 | + { |
| 738 | + "key": "clippy::fn_null_check", |
| 739 | + "name": "Checks for comparing a function pointer to null.", |
| 740 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#fn_null_check" |
| 741 | + }, |
737 | 742 | {
|
738 | 743 | "key": "clippy::fn_params_excessive_bools",
|
739 | 744 | "name": "Checks for excessive use of bools in function definitions.",
|
|
1139 | 1144 | "name": "Checks for `let`-bindings, which are subsequently returned.",
|
1140 | 1145 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return"
|
1141 | 1146 | },
|
| 1147 | + { |
| 1148 | + "key": "clippy::let_underscore_future", |
| 1149 | + "name": "Checks for `let _ = <expr>` where the resulting type of expr implements `Future`", |
| 1150 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future" |
| 1151 | + }, |
1142 | 1152 | {
|
1143 | 1153 | "key": "clippy::let_underscore_lock",
|
1144 | 1154 | "name": "Checks for `let _ = sync_lock`. This supports `mutex` and `rwlock` in `parking_lot`. For `std` locks",
|
|
1224 | 1234 | "name": "Lints subtraction between `Instant::now()` and another `Instant`.",
|
1225 | 1235 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed"
|
1226 | 1236 | },
|
| 1237 | + { |
| 1238 | + "key": "clippy::manual_is_ascii_check", |
| 1239 | + "name": "Suggests to use dedicated built-in methods, `is_ascii_(lowercase|uppercase|digit)` for checking on c", |
| 1240 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check" |
| 1241 | + }, |
1227 | 1242 | {
|
1228 | 1243 | "key": "clippy::manual_let_else",
|
1229 | 1244 | "name": "Warn of cases where `let...else` could be used",
|
|
1291 | 1306 | },
|
1292 | 1307 | {
|
1293 | 1308 | "key": "clippy::manual_swap",
|
1294 |
| - "name": "Checks for manual swapping.", |
| 1309 | + "name": "Checks for manual swapping. Note that the lint will not be emitted in const blocks, as the suggesti", |
1295 | 1310 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap"
|
1296 | 1311 | },
|
1297 | 1312 | {
|
|
1439 | 1454 | "name": "Checks for type parameters which are positioned inconsistently between a type definition and impl bl",
|
1440 | 1455 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#mismatching_type_param_order"
|
1441 | 1456 | },
|
| 1457 | + { |
| 1458 | + "key": "clippy::misnamed_getters", |
| 1459 | + "name": "Checks for getter methods that return a field that doesn't correspond to the name of the method, whe", |
| 1460 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#misnamed_getters" |
| 1461 | + }, |
1442 | 1462 | {
|
1443 | 1463 | "key": "clippy::misrefactored_assign_op",
|
1444 | 1464 | "name": "Checks for `a op= a op b` or `a op= b op a` patterns.",
|
|
1806 | 1826 | },
|
1807 | 1827 | {
|
1808 | 1828 | "key": "clippy::option_as_ref_deref",
|
1809 |
| - "name": "Checks for usage of `_.as_ref().map(Deref::deref)` or it's aliases (such as String::as_str).", |
| 1829 | + "name": "Checks for usage of `_.as_ref().map(Deref::deref)` or its aliases (such as String::as_str).", |
1810 | 1830 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref"
|
1811 | 1831 | },
|
1812 | 1832 | {
|
|
1904 | 1924 | "name": "Checks for patterns that aren't exact representations of the types they are applied to. To satisfy",
|
1905 | 1925 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch"
|
1906 | 1926 | },
|
| 1927 | + { |
| 1928 | + "key": "clippy::permissions_set_readonly_false", |
| 1929 | + "name": "Checks for calls to `std::fs::Permissions.set_readonly` with argument `false`.", |
| 1930 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#permissions_set_readonly_false" |
| 1931 | + }, |
1907 | 1932 | {
|
1908 | 1933 | "key": "clippy::possible_missing_comma",
|
1909 | 1934 | "name": "Checks for possible missing comma in an array. It lints if an array element is a binary operator exp",
|
|
2179 | 2204 | "name": "Looks for blocks of expressions and fires if the last expression returns `()` but is not followed by",
|
2180 | 2205 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned"
|
2181 | 2206 | },
|
| 2207 | + { |
| 2208 | + "key": "clippy::semicolon_inside_block", |
| 2209 | + "name": "Suggests moving the semicolon after a block to the inside of the block, after its last expression.", |
| 2210 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_inside_block" |
| 2211 | + }, |
| 2212 | + { |
| 2213 | + "key": "clippy::semicolon_outside_block", |
| 2214 | + "name": "Suggests moving the semicolon from a block's final expression outside of the block.", |
| 2215 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_outside_block" |
| 2216 | + }, |
2182 | 2217 | {
|
2183 | 2218 | "key": "clippy::separated_literal_suffix",
|
2184 | 2219 | "name": "Warns if literal suffixes are separated by an underscore. To enforce separated literal suffix style,",
|
|
2264 | 2299 | "name": "Detects expressions where `size_of::<T>` or `size_of_val::<T>` is used as a count of elements of typ",
|
2265 | 2300 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#size_of_in_element_count"
|
2266 | 2301 | },
|
| 2302 | + { |
| 2303 | + "key": "clippy::size_of_ref", |
| 2304 | + "name": "Checks for calls to `std::mem::size_of_val()` where the argument is a reference to a reference.", |
| 2305 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#size_of_ref" |
| 2306 | + }, |
2267 | 2307 | {
|
2268 | 2308 | "key": "clippy::skip_while_next",
|
2269 | 2309 | "name": "Checks for usage of `_.skip_while(condition).next()`.",
|
|
2389 | 2429 | "name": "Checks the formatting of a unary operator on the right hand side of a binary operator. It lints if t",
|
2390 | 2430 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting"
|
2391 | 2431 | },
|
| 2432 | + { |
| 2433 | + "key": "clippy::suspicious_xor_used_as_pow", |
| 2434 | + "name": "Warns for a Bitwise XOR (`^`) operator being probably confused as a powering. It will not trigger if", |
| 2435 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_xor_used_as_pow" |
| 2436 | + }, |
2392 | 2437 | {
|
2393 | 2438 | "key": "clippy::swap_ptr_to_ref",
|
2394 | 2439 | "name": "Checks for calls to `core::mem::swap` where either parameter is derived from a pointer",
|
|
2469 | 2514 | "name": "Checks for transmutes from an integer to a float.",
|
2470 | 2515 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float"
|
2471 | 2516 | },
|
| 2517 | + { |
| 2518 | + "key": "clippy::transmute_null_to_fn", |
| 2519 | + "name": "Checks for null function pointer creation through transmute.", |
| 2520 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#transmute_null_to_fn" |
| 2521 | + }, |
2472 | 2522 | {
|
2473 | 2523 | "key": "clippy::transmute_num_to_bytes",
|
2474 | 2524 | "name": "Checks for transmutes from a number to an array of `u8`",
|
|
2529 | 2579 | "name": "This lint warns about unnecessary type repetitions in trait bounds",
|
2530 | 2580 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds"
|
2531 | 2581 | },
|
| 2582 | + { |
| 2583 | + "key": "clippy::unchecked_duration_subtraction", |
| 2584 | + "name": "Lints subtraction between an [`Instant`] and a [`Duration`].", |
| 2585 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction" |
| 2586 | + }, |
2532 | 2587 | {
|
2533 | 2588 | "key": "clippy::undocumented_unsafe_blocks",
|
2534 | 2589 | "name": "Checks for `unsafe` blocks and impls without a `// SAFETY: ` comment explaining why the unsafe opera",
|
|
2629 | 2684 | "name": "Detects cases of owned empty strings being passed as an argument to a function expecting `&str`",
|
2630 | 2685 | "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings"
|
2631 | 2686 | },
|
| 2687 | + { |
| 2688 | + "key": "clippy::unnecessary_safety_comment", |
| 2689 | + "name": "Checks for `// SAFETY: ` comments on safe code.", |
| 2690 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_comment" |
| 2691 | + }, |
| 2692 | + { |
| 2693 | + "key": "clippy::unnecessary_safety_doc", |
| 2694 | + "name": "Checks for the doc comments of publicly visible safe functions and traits and warns if there is a `#", |
| 2695 | + "url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_doc" |
| 2696 | + }, |
2632 | 2697 | {
|
2633 | 2698 | "key": "clippy::unnecessary_self_imports",
|
2634 | 2699 | "name": "Checks for imports ending in `::{self}`.",
|
|
0 commit comments