Skip to content

Commit 26a262e

Browse files
committed
Refresh list of Clippy lints
1 parent 616d1be commit 26a262e

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

community-rust-plugin/src/main/resources/org/elegoff/l10n/rust/rules/clippy/clippylints.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
},
362362
{
363363
"key": "clippy::dbg_macro",
364-
"name": "Checks for usage of dbg!() macro.",
364+
"name": "Checks for usage of the [`dbg!`](https://doc.rust-lang.org/std/macro.dbg.html) macro.",
365365
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro"
366366
},
367367
{
@@ -424,11 +424,6 @@
424424
"name": "Detects manual `std::default::Default` implementations that are identical to a derived implementatio",
425425
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls"
426426
},
427-
{
428-
"key": "clippy::derive_hash_xor_eq",
429-
"name": "Checks for deriving `Hash` but implementing `PartialEq` explicitly or vice versa.",
430-
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq"
431-
},
432427
{
433428
"key": "clippy::derive_ord_xor_partial_ord",
434429
"name": "Checks for deriving `Ord` but implementing `PartialOrd` explicitly or vice versa.",
@@ -439,6 +434,11 @@
439434
"name": "Checks for types that derive `PartialEq` and could implement `Eq`.",
440435
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq"
441436
},
437+
{
438+
"key": "clippy::derived_hash_with_manual_eq",
439+
"name": "Checks for deriving `Hash` but implementing `PartialEq` explicitly or vice versa.",
440+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#derived_hash_with_manual_eq"
441+
},
442442
{
443443
"key": "clippy::disallowed_macros",
444444
"name": "Denies the configured macros in clippy.toml Note: Even though this lint is warn-by-default, it will",
@@ -669,6 +669,11 @@
669669
"name": "Checks for lifetimes in generics that are never used anywhere else.",
670670
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes"
671671
},
672+
{
673+
"key": "clippy::extra_unused_type_parameters",
674+
"name": "Checks for type parameters in generics that are never used anywhere else.",
675+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters"
676+
},
672677
{
673678
"key": "clippy::fallible_impl_from",
674679
"name": "Checks for impls of `From<..>` that contain `panic!()` or `unwrap()`",
@@ -1564,6 +1569,11 @@
15641569
"name": "Checks for multiple inherent implementations of a struct",
15651570
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl"
15661571
},
1572+
{
1573+
"key": "clippy::multiple_unsafe_ops_per_block",
1574+
"name": "Checks for `unsafe` blocks that contain more than one unsafe operation.",
1575+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#multiple_unsafe_ops_per_block"
1576+
},
15671577
{
15681578
"key": "clippy::must_use_candidate",
15691579
"name": "Checks for public functions that have no `#[must_use]` attribute, but return something not already m",
@@ -2151,7 +2161,7 @@
21512161
},
21522162
{
21532163
"key": "clippy::reversed_empty_ranges",
2154-
"name": "Checks for range expressions `x..y` where both `x` and `y` are constant and `x` is greater or equal",
2164+
"name": "Checks for range expressions `x..y` where both `x` and `y` are constant and `x` is greater to `y`. A",
21552165
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges"
21562166
},
21572167
{
@@ -2394,6 +2404,11 @@
23942404
"name": "Checks for use of the non-existent `=*`, `=!` and `=-` operators.",
23952405
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting"
23962406
},
2407+
{
2408+
"key": "clippy::suspicious_command_arg_space",
2409+
"name": "Checks for `Command::arg()` invocations that look like they should be multiple arguments instead, s",
2410+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_command_arg_space"
2411+
},
23972412
{
23982413
"key": "clippy::suspicious_else_formatting",
23992414
"name": "Checks for formatting of `else`. It lints if the `else` is followed immediately by a newline or the",

community-rust-plugin/src/test/java/org/elegoff/plugins/communityrust/clippy/ClippyRulesDefinitionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void clippyExternalRepository() {
3939
assertThat(repository.name()).isEqualTo("Clippy");
4040
assertThat(repository.language()).isEqualTo("rust");
4141
assertThat(repository.isExternal()).isTrue();
42-
assertThat(repository.rules()).hasSize(598);
42+
assertThat(repository.rules()).hasSize(601);
4343

4444
RulesDefinition.Rule rule = repository.rule("clippy::absurd_extreme_comparisons");
4545
assertThat(rule).isNotNull();

0 commit comments

Comments
 (0)