Skip to content

Commit ffe83c7

Browse files
committed
Version v0.1.3
1 parent 5560a18 commit ffe83c7

File tree

6 files changed

+26
-11
lines changed

6 files changed

+26
-11
lines changed

community-rust-checks/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.elegoff</groupId>
88
<artifactId>community-rust</artifactId>
9-
<version>0.1.3-SNAPSHOT</version>
9+
<version>0.1.3</version>
1010
</parent>
1111

1212
<artifactId>community-rust-checks</artifactId>

community-rust-frontend/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.elegoff</groupId>
88
<artifactId>community-rust</artifactId>
9-
<version>0.1.3-SNAPSHOT</version>
9+
<version>0.1.3</version>
1010
</parent>
1111

1212
<artifactId>community-rust-frontend</artifactId>

community-rust-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.elegoff</groupId>
99
<artifactId>community-rust</artifactId>
10-
<version>0.1.3-SNAPSHOT</version>
10+
<version>0.1.3</version>
1111
</parent>
1212
<artifactId>community-rust-plugin</artifactId>
1313
<packaging>sonar-plugin</packaging>

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

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,11 @@
794794
"name": "Searches for implementations of the `Into<..>` trait and suggests to implement `From<..>` instead.",
795795
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into"
796796
},
797+
{
798+
"key": "clippy::from_raw_with_void_ptr",
799+
"name": "Checks if we're passing a `c_void` raw pointer to `{Box,Rc,Arc,Weak}::from_raw(_)`",
800+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#from_raw_with_void_ptr"
801+
},
797802
{
798803
"key": "clippy::from_str_radix_10",
799804
"name": "Checks for function invocations of the form `primitive::from_str_radix(s, 10)`",
@@ -1134,14 +1139,9 @@
11341139
"name": "Checks for `let`-bindings, which are subsequently returned.",
11351140
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return"
11361141
},
1137-
{
1138-
"key": "clippy::let_underscore_drop",
1139-
"name": "Checks for `let _ = <expr>` where expr has a type that implements `Drop`",
1140-
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop"
1141-
},
11421142
{
11431143
"key": "clippy::let_underscore_lock",
1144-
"name": "Checks for `let _ = sync_lock`. This supports `mutex` and `rwlock` in `std::sync` and `parking_lot`.",
1144+
"name": "Checks for `let _ = sync_lock`. This supports `mutex` and `rwlock` in `parking_lot`. For `std` locks",
11451145
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock"
11461146
},
11471147
{
@@ -1224,6 +1224,11 @@
12241224
"name": "Lints subtraction between `Instant::now()` and another `Instant`.",
12251225
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed"
12261226
},
1227+
{
1228+
"key": "clippy::manual_let_else",
1229+
"name": "Warn of cases where `let...else` could be used",
1230+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else"
1231+
},
12271232
{
12281233
"key": "clippy::manual_map",
12291234
"name": "Checks for usages of `match` which could be implemented using `map`",
@@ -2144,6 +2149,16 @@
21442149
"name": "Checks for an iterator or string search (such as `find()`, `position()`, or `rposition()`) followed",
21452150
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some"
21462151
},
2152+
{
2153+
"key": "clippy::seek_from_current",
2154+
"name": "Checks an argument of `seek` method of `Seek` trait and if it start seek from `SeekFrom::Current(0)",
2155+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#seek_from_current"
2156+
},
2157+
{
2158+
"key": "clippy::seek_to_start_instead_of_rewind",
2159+
"name": "Checks for jumps to the start of a stream that implements `Seek` and uses the `seek` method providi",
2160+
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#seek_to_start_instead_of_rewind"
2161+
},
21472162
{
21482163
"key": "clippy::self_assignment",
21492164
"name": "Checks for explicit self-assignments.",

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(582);
42+
assertThat(repository.rules()).hasSize(585);
4343

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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.elegoff</groupId>
88
<artifactId>community-rust</artifactId>
9-
<version>0.1.3-SNAPSHOT</version>
9+
<version>0.1.3</version>
1010

1111
<packaging>pom</packaging>
1212

0 commit comments

Comments
 (0)