Skip to content

Commit 66e3131

Browse files
committed
Fix issues reported by SonarCloud
1 parent 1185842 commit 66e3131

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

community-rust-checks/src/test/java/org/elegoff/rust/checks/CheckListTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
package org.elegoff.rust.checks;
2222

2323
import org.junit.Test;
24+
2425
import static org.assertj.core.api.Assertions.assertThat;
2526

2627
public class CheckListTest {
2728

28-
29-
@Test
30-
public void testSize(){
31-
assertThat(CheckList.getRustChecks().size()).isEqualTo(3);
32-
}
29+
@Test
30+
public void testSize() {
31+
assertThat(CheckList.getRustChecks()).hasSize(3);
32+
}
3333
}

community-rust-plugin/src/main/java/org/elegoff/plugins/communityrust/RustSensor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class RustSensor implements Sensor {
5858
public RustSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory) {
5959
this.checks = checkFactory
6060
.<RustCheck>create(CheckList.REPOSITORY_KEY)
61-
.addAnnotatedChecks((Iterable) CheckList.getRustChecks());
61+
.addAnnotatedChecks(CheckList.getRustChecks());
6262
this.fileLinesContextFactory = fileLinesContextFactory;
6363
}
6464

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().size()).isEqualTo(548);
42+
assertThat(repository.rules()).hasSize(548);
4343

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

community-rust-plugin/src/test/java/org/elegoff/plugins/communityrust/language/RustQualityProfileTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* License as published by the Free Software Foundation; either
1010
* version 3 of the License, or (at your option) any later version.
1111
*
12-
* This program is distributed in the hope that it will be useful,
12+
* This program is distributed in the hope tØhat it will be useful,
1313
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515
* Lesser General Public License for more details.

0 commit comments

Comments
 (0)