Skip to content

Commit 596543d

Browse files
committed
Version v0.1.4
1 parent 2630bea commit 596543d

File tree

6 files changed

+80
-15
lines changed

6 files changed

+80
-15
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.4-SNAPSHOT</version>
9+
<version>0.1.4</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.4-SNAPSHOT</version>
9+
<version>0.1.4</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.4-SNAPSHOT</version>
10+
<version>0.1.4</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: 71 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason"
1616
},
1717
{
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"
2121
},
2222
{
2323
"key": "clippy::almost_swapped",
@@ -611,7 +611,7 @@
611611
},
612612
{
613613
"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.",
615615
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#exit"
616616
},
617617
{
@@ -734,6 +734,11 @@
734734
"name": "Checks for comparisons with an address of a function item.",
735735
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons"
736736
},
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+
},
737742
{
738743
"key": "clippy::fn_params_excessive_bools",
739744
"name": "Checks for excessive use of bools in function definitions.",
@@ -1139,6 +1144,11 @@
11391144
"name": "Checks for `let`-bindings, which are subsequently returned.",
11401145
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return"
11411146
},
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+
},
11421152
{
11431153
"key": "clippy::let_underscore_lock",
11441154
"name": "Checks for `let _ = sync_lock`. This supports `mutex` and `rwlock` in `parking_lot`. For `std` locks",
@@ -1224,6 +1234,11 @@
12241234
"name": "Lints subtraction between `Instant::now()` and another `Instant`.",
12251235
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed"
12261236
},
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+
},
12271242
{
12281243
"key": "clippy::manual_let_else",
12291244
"name": "Warn of cases where `let...else` could be used",
@@ -1291,7 +1306,7 @@
12911306
},
12921307
{
12931308
"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",
12951310
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap"
12961311
},
12971312
{
@@ -1439,6 +1454,11 @@
14391454
"name": "Checks for type parameters which are positioned inconsistently between a type definition and impl bl",
14401455
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#mismatching_type_param_order"
14411456
},
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+
},
14421462
{
14431463
"key": "clippy::misrefactored_assign_op",
14441464
"name": "Checks for `a op= a op b` or `a op= b op a` patterns.",
@@ -1806,7 +1826,7 @@
18061826
},
18071827
{
18081828
"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).",
18101830
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref"
18111831
},
18121832
{
@@ -1904,6 +1924,11 @@
19041924
"name": "Checks for patterns that aren't exact representations of the types they are applied to. To satisfy",
19051925
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch"
19061926
},
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+
},
19071932
{
19081933
"key": "clippy::possible_missing_comma",
19091934
"name": "Checks for possible missing comma in an array. It lints if an array element is a binary operator exp",
@@ -2179,6 +2204,16 @@
21792204
"name": "Looks for blocks of expressions and fires if the last expression returns `()` but is not followed by",
21802205
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned"
21812206
},
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+
},
21822217
{
21832218
"key": "clippy::separated_literal_suffix",
21842219
"name": "Warns if literal suffixes are separated by an underscore. To enforce separated literal suffix style,",
@@ -2264,6 +2299,11 @@
22642299
"name": "Detects expressions where `size_of::<T>` or `size_of_val::<T>` is used as a count of elements of typ",
22652300
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#size_of_in_element_count"
22662301
},
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+
},
22672307
{
22682308
"key": "clippy::skip_while_next",
22692309
"name": "Checks for usage of `_.skip_while(condition).next()`.",
@@ -2389,6 +2429,11 @@
23892429
"name": "Checks the formatting of a unary operator on the right hand side of a binary operator. It lints if t",
23902430
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting"
23912431
},
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+
},
23922437
{
23932438
"key": "clippy::swap_ptr_to_ref",
23942439
"name": "Checks for calls to `core::mem::swap` where either parameter is derived from a pointer",
@@ -2469,6 +2514,11 @@
24692514
"name": "Checks for transmutes from an integer to a float.",
24702515
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float"
24712516
},
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+
},
24722522
{
24732523
"key": "clippy::transmute_num_to_bytes",
24742524
"name": "Checks for transmutes from a number to an array of `u8`",
@@ -2529,6 +2579,11 @@
25292579
"name": "This lint warns about unnecessary type repetitions in trait bounds",
25302580
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds"
25312581
},
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+
},
25322587
{
25332588
"key": "clippy::undocumented_unsafe_blocks",
25342589
"name": "Checks for `unsafe` blocks and impls without a `// SAFETY: ` comment explaining why the unsafe opera",
@@ -2629,6 +2684,16 @@
26292684
"name": "Detects cases of owned empty strings being passed as an argument to a function expecting `&str`",
26302685
"url": "https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings"
26312686
},
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+
},
26322697
{
26332698
"key": "clippy::unnecessary_self_imports",
26342699
"name": "Checks for imports ending in `::{self}`.",

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

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

pom.xml

Lines changed: 5 additions & 5 deletions
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.4-SNAPSHOT</version>
9+
<version>0.1.4</version>
1010

1111
<packaging>pom</packaging>
1212

@@ -61,8 +61,8 @@
6161

6262
<properties>
6363
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
64-
<sonar.version>9.7.0.61563</sonar.version>
65-
<sonar.plugin.api.version>9.8.0.203</sonar.plugin.api.version>
64+
<sonar.version>9.7.1.62043</sonar.version>
65+
<sonar.plugin.api.version>9.11.0.290</sonar.plugin.api.version>
6666

6767
<!-- Advertise minimal required JRE version -->
6868
<jre.min.version>11</jre.min.version>
@@ -86,8 +86,8 @@
8686
<commons.io.version>2.11.0</commons.io.version>
8787
<commons.lang.version>2.6</commons.lang.version>
8888
<junit.version>4.13.2</junit.version>
89-
<sonar-analyzer-commons.version>2.0.0.1075</sonar-analyzer-commons.version>
90-
<sonar.orchestrator.version>3.38.0.115</sonar.orchestrator.version>
89+
<sonar-analyzer-commons.version>2.1.0.1111</sonar-analyzer-commons.version>
90+
<sonar.orchestrator.version>3.40.0.183</sonar.orchestrator.version>
9191
<woodstox.version>6.2.7</woodstox.version>
9292

9393
</properties>

0 commit comments

Comments
 (0)