From 5b01c52e662a2395edbe548b7647435cdfd7e8b1 Mon Sep 17 00:00:00 2001 From: Nicolas QUINQUENEL Date: Fri, 8 Nov 2024 11:16:12 +0100 Subject: [PATCH] SLCORE-1031 Modify label for missing binding on hotspots --- .../java/org/sonarsource/sonarlint/core/OrganizationsCache.java | 2 +- .../org/sonarsource/sonarlint/core/hotspot/HotspotService.java | 2 +- .../hotspots/HotspotLocalDetectionSupportMediumTests.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/core/src/main/java/org/sonarsource/sonarlint/core/OrganizationsCache.java b/backend/core/src/main/java/org/sonarsource/sonarlint/core/OrganizationsCache.java index 4bb5cdefcc..3906c45934 100644 --- a/backend/core/src/main/java/org/sonarsource/sonarlint/core/OrganizationsCache.java +++ b/backend/core/src/main/java/org/sonarsource/sonarlint/core/OrganizationsCache.java @@ -62,7 +62,7 @@ public List fuzzySearchOrganizations(Either::getValue).reversed() - .thenComparing(Comparator.comparing(e -> e.getKey().getName(), String.CASE_INSENSITIVE_ORDER))) + .thenComparing(e -> e.getKey().getName(), String.CASE_INSENSITIVE_ORDER)) .limit(10) .map(Map.Entry::getKey) .collect(Collectors.toList()); diff --git a/backend/core/src/main/java/org/sonarsource/sonarlint/core/hotspot/HotspotService.java b/backend/core/src/main/java/org/sonarsource/sonarlint/core/hotspot/HotspotService.java index c727fa9199..d4dccbe3f0 100644 --- a/backend/core/src/main/java/org/sonarsource/sonarlint/core/hotspot/HotspotService.java +++ b/backend/core/src/main/java/org/sonarsource/sonarlint/core/hotspot/HotspotService.java @@ -50,7 +50,7 @@ public class HotspotService { private static final SonarLintLogger LOG = SonarLintLogger.get(); - private static final String NO_BINDING_REASON = "The project is not bound, please bind it to SonarQube 9.9+ or SonarCloud"; + private static final String NO_BINDING_REASON = "The project is not bound, please bind it to SonarQube (Server, Cloud)"; private static final String REVIEW_STATUS_UPDATE_PERMISSION_MISSING_REASON = "Changing a hotspot's status requires the 'Administer Security Hotspot' permission."; private final SonarLintRpcClient client; diff --git a/medium-tests/src/test/java/mediumtest/hotspots/HotspotLocalDetectionSupportMediumTests.java b/medium-tests/src/test/java/mediumtest/hotspots/HotspotLocalDetectionSupportMediumTests.java index 07b06ea872..9b8d98da33 100644 --- a/medium-tests/src/test/java/mediumtest/hotspots/HotspotLocalDetectionSupportMediumTests.java +++ b/medium-tests/src/test/java/mediumtest/hotspots/HotspotLocalDetectionSupportMediumTests.java @@ -84,7 +84,7 @@ void it_should_not_support_local_detection_in_standalone_mode() { assertThat(checkResponse) .extracting(CheckLocalDetectionSupportedResponse::isSupported, CheckLocalDetectionSupportedResponse::getReason) - .containsExactly(false, "The project is not bound, please bind it to SonarQube 9.9+ or SonarCloud"); + .containsExactly(false, "The project is not bound, please bind it to SonarQube (Server, Cloud)"); } @Test