From 8841d4026aee13abd22c6f6f36775e7a9bab302f Mon Sep 17 00:00:00 2001 From: Marcin Stachniuk Date: Tue, 24 Dec 2024 10:55:22 +0100 Subject: [PATCH 1/2] Fix analysis on master --- .../src/test/java/org/sonar/go/plugin/GoCheckListTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java b/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java index 69b24aa0..581e91cf 100644 --- a/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java +++ b/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java @@ -50,9 +50,7 @@ void go_specific_checks_are_added_to_check_list() { @Test void go_excluded_not_present() { List> checks = GoCheckList.checks(); - for (Class excluded : GoCheckList.GO_CHECK_BLACK_LIST) { - assertThat(checks).doesNotContain(excluded); - } + assertThat(checks).doesNotContain(GoCheckList.GO_CHECK_BLACK_LIST); } /** From d959cdb906d8dd1c0e96be174056198d610e7b50 Mon Sep 17 00:00:00 2001 From: Marcin Stachniuk Date: Tue, 24 Dec 2024 11:37:22 +0100 Subject: [PATCH 2/2] Fix analysis on master --- .../src/test/java/org/sonar/go/plugin/GoCheckListTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java b/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java index 581e91cf..649cfe71 100644 --- a/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java +++ b/sonar-go-plugin/src/test/java/org/sonar/go/plugin/GoCheckListTest.java @@ -50,7 +50,9 @@ void go_specific_checks_are_added_to_check_list() { @Test void go_excluded_not_present() { List> checks = GoCheckList.checks(); - assertThat(checks).doesNotContain(GoCheckList.GO_CHECK_BLACK_LIST); + assertThat(checks) + .doesNotContain(GoCheckList.GO_CHECK_BLACK_LIST) + .isNotEmpty(); } /**