Skip to content

Commit 0b2b74a

Browse files
authored
adapt unit test after refreshing list of clips lints
1 parent 57b23fd commit 0b2b74a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public void clippyExternalRepository() {
3838
assertThat(repository.name()).isEqualTo("Clippy");
3939
assertThat(repository.language()).isEqualTo("rust");
4040
assertThat(repository.isExternal()).isEqualTo(true);
41-
assertThat(repository.rules().size()).isEqualTo(373);
41+
assertThat(repository.rules().size()).isEqualTo(459);
4242

4343
RulesDefinition.Rule rule = repository.rule("clippy::absurd_extreme_comparisons");
4444
assertThat(rule).isNotNull();
45-
assertThat(rule.name()).isEqualTo("Checks for comparisons where one side of the relation is either the minimum or maximum value for its type");
45+
assertThat(rule.name()).isEqualTo("Checks for comparisons where one side of the relation is\neither the minimum or maximum value for its");
4646
assertThat(rule.htmlDescription()).isEqualTo("See description of Clippy rule <code>clippy::absurd_extreme_comparisons</code> at" +
4747
" the <a href=\"https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons\">Clippy website</a>.");
4848
assertThat(rule.tags()).isEmpty();

0 commit comments

Comments
 (0)