",
new HyperlinkAdapter() {
@Override
diff --git a/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java b/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java
index 7df6d92010..35565fdd09 100644
--- a/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java
+++ b/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java
@@ -66,7 +66,7 @@
public class CurrentFilePanel extends AbstractIssuesPanel {
- public static final String SONARLINT_TOOLWINDOW_ID = "SonarLint";
+ public static final String SONARLINT_TOOLWINDOW_ID = "SonarQube for IntelliJ";
private static final String SPLIT_PROPORTION_PROPERTY = "SONARLINT_ISSUES_SPLIT_PROPORTION";
private final JBPanelWithEmptyText issuesPanel;
private final JScrollPane treeScrollPane;
@@ -133,7 +133,7 @@ public void update(@Nullable VirtualFile file, @Nullable Collection i
var backendIsAlive = getService(BackendService.class).isAlive();
if (!backendIsAlive) {
statusText.setText(SONARLINT_ERROR_MSG);
- statusText.appendLine("Restart SonarLint Service", SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES,
+ statusText.appendLine("Restart SonarQube for IntelliJ Service", SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES,
ignore -> ActionUtil.invokeAction(restartSonarLintAction, this, CurrentFilePanel.SONARLINT_TOOLWINDOW_ID, null, null));
disableEmptyDisplay(false);
populateSubTree(tree, treeBuilder, Map.of());
@@ -157,7 +157,7 @@ public void update(@Nullable VirtualFile file, @Nullable Collection i
ignore -> ActionUtil.invokeAction(analyzeCurrentFileAction, this, CurrentFilePanel.SONARLINT_TOOLWINDOW_ID, null, null));
}
} else {
- statusText.setText("Waiting for SonarLint to be ready");
+ statusText.setText("Waiting for SonarQube for IntelliJ to be ready");
}
issues = Collections.emptyList();
@@ -216,7 +216,7 @@ private void updateIcon(@Nullable VirtualFile file, Collection issues
private static void doUpdateIcon(@Nullable VirtualFile file, Collection issues, ToolWindow toolWindow) {
ApplicationManager.getApplication().assertIsDispatchThread();
boolean empty = file == null || issues.isEmpty();
- toolWindow.setIcon(empty ? SonarLintIcons.SONARLINT_TOOLWINDOW_EMPTY : SonarLintIcons.SONARLINT_TOOLWINDOW);
+ toolWindow.setIcon(empty ? SonarLintIcons.SONARQUBE_FOR_INTELLIJ_EMPTY_TOOLWINDOW : SonarLintIcons.SONARQUBE_FOR_INTELLIJ_TOOLWINDOW);
}
private void expandTree() {
diff --git a/src/main/java/org/sonarlint/intellij/ui/CurrentFileStatusPanel.java b/src/main/java/org/sonarlint/intellij/ui/CurrentFileStatusPanel.java
index ff16d02568..3b21a18b9e 100644
--- a/src/main/java/org/sonarlint/intellij/ui/CurrentFileStatusPanel.java
+++ b/src/main/java/org/sonarlint/intellij/ui/CurrentFileStatusPanel.java
@@ -34,7 +34,7 @@ public class CurrentFileStatusPanel extends JBPanel {
private final Project project;
- public static final String HELP_TEXT = "SonarLint analyzes in real-time the active file only, and reports any issues found in this view. ";
+ public static final String HELP_TEXT = "SonarQube for IntelliJ analyzes in real-time the active file only, and reports any issues found in this view. ";
CurrentFileStatusPanel(Project project) {
super(new BorderLayout());
diff --git a/src/main/java/org/sonarlint/intellij/ui/ReportPanel.java b/src/main/java/org/sonarlint/intellij/ui/ReportPanel.java
index 94e3f80f86..c421b51e17 100644
--- a/src/main/java/org/sonarlint/intellij/ui/ReportPanel.java
+++ b/src/main/java/org/sonarlint/intellij/ui/ReportPanel.java
@@ -76,7 +76,7 @@
public class ReportPanel extends SimpleToolWindowPanel implements Disposable {
private static final String SPLIT_PROPORTION_PROPERTY = "SONARLINT_ANALYSIS_RESULTS_SPLIT_PROPORTION";
- private static final String ID = "SonarLint";
+ private static final String ID = "SonarQube for IntelliJ";
protected final Project project;
private final LastAnalysisPanel lastAnalysisPanel;
private final ReportTabStatusPanel whatsNewPanel;
@@ -211,7 +211,7 @@ private void handleEmptyView() {
var backendIsAlive = getService(BackendService.class).isAlive();
if (!backendIsAlive) {
statusText.setText(SONARLINT_ERROR_MSG);
- statusText.appendLine("Restart SonarLint Service", SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES,
+ statusText.appendLine("Restart SonarQube for IntelliJ Service", SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES,
ignore -> ActionUtil.invokeAction(restartSonarLintAction, this, CurrentFilePanel.SONARLINT_TOOLWINDOW_ID, null, null));
} else {
var sonarLintActions = SonarLintActions.getInstance();
diff --git a/src/main/java/org/sonarlint/intellij/ui/SecurityHotspotsPanel.java b/src/main/java/org/sonarlint/intellij/ui/SecurityHotspotsPanel.java
index 8e5b89dcfa..d96689babd 100644
--- a/src/main/java/org/sonarlint/intellij/ui/SecurityHotspotsPanel.java
+++ b/src/main/java/org/sonarlint/intellij/ui/SecurityHotspotsPanel.java
@@ -128,7 +128,7 @@ private void initPanel() {
sonarConfigureProject = new SonarConfigureProject();
notSupportedPanel = centeredLabel("Security Hotspots are currently not supported", "Configure Binding", sonarConfigureProject);
- cardPanel.add(centeredLabel(SONARLINT_ERROR_MSG, "Restart SonarLint Service", new RestartBackendAction()), SONARLINT_ERROR_CARD_ID);
+ cardPanel.add(centeredLabel(SONARLINT_ERROR_MSG, "Restart SonarQube for IntelliJ Service", new RestartBackendAction()), SONARLINT_ERROR_CARD_ID);
cardPanel.add(notSupportedPanel, NOT_SUPPORTED_CARD_ID);
cardPanel.add(centeredLabel("No Security Hotspots found for currently opened files in the latest analysis", null, null), NO_SECURITY_HOTSPOT_CARD_ID);
cardPanel.add(centeredLabel("No Security Hotspots shown due to the current filtering", null, null), NO_SECURITY_HOTSPOT_FILTERED_CARD_ID);
@@ -145,7 +145,7 @@ private static DefaultActionGroup createActionGroup() {
actionGroup.add(sonarLintActions.filterSecurityHotspots());
actionGroup.add(sonarLintActions.includeResolvedHotspotAction());
actionGroup.add(sonarLintActions.configure());
- actionGroup.add(new OpenInBrowserAction("Learn More", "Learn more about Security Hotspots in SonarLint", SECURITY_HOTSPOTS_LINK, AllIcons.Actions.Help));
+ actionGroup.add(new OpenInBrowserAction("Learn More", "Learn more about Security Hotspots in SonarQube for IntelliJ", SECURITY_HOTSPOTS_LINK, AllIcons.Actions.Help));
return actionGroup;
}
diff --git a/src/main/java/org/sonarlint/intellij/ui/SonarLintLogPanel.java b/src/main/java/org/sonarlint/intellij/ui/SonarLintLogPanel.java
index 0289547364..249e824062 100644
--- a/src/main/java/org/sonarlint/intellij/ui/SonarLintLogPanel.java
+++ b/src/main/java/org/sonarlint/intellij/ui/SonarLintLogPanel.java
@@ -27,7 +27,6 @@
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.SimpleToolWindowPanel;
import com.intellij.openapi.wm.ToolWindow;
-import com.intellij.openapi.wm.ex.ToolWindowEx;
import javax.swing.Box;
import org.sonarlint.intellij.actions.ToolWindowLogAnalysisAction;
import org.sonarlint.intellij.actions.ToolWindowVerboseModeAction;
@@ -39,7 +38,7 @@
import static org.sonarlint.intellij.ui.UiUtils.runOnUiThread;
public class SonarLintLogPanel extends SimpleToolWindowPanel {
- private static final String ID = "SonarLint";
+ private static final String ID = "SonarQube for IntelliJ";
private final ToolWindow toolWindow;
private final Project project;
@@ -82,7 +81,7 @@ private void addLogActions() {
var group = new DefaultActionGroup();
group.add(new ToolWindowLogAnalysisAction());
group.add(new ToolWindowVerboseModeAction());
- ((ToolWindowEx) toolWindow).setAdditionalGearActions(group);
+ toolWindow.setAdditionalGearActions(group);
}
private void addConsole() {
diff --git a/src/main/java/org/sonarlint/intellij/ui/SonarLintToolWindowFactory.java b/src/main/java/org/sonarlint/intellij/ui/SonarLintToolWindowFactory.java
index ec39b31f61..5eec9467b7 100644
--- a/src/main/java/org/sonarlint/intellij/ui/SonarLintToolWindowFactory.java
+++ b/src/main/java/org/sonarlint/intellij/ui/SonarLintToolWindowFactory.java
@@ -46,7 +46,7 @@
* Nothing can be injected as it runs in the root pico container.
*/
public class SonarLintToolWindowFactory implements ToolWindowFactory {
- public static final String TOOL_WINDOW_ID = "SonarLint";
+ public static final String TOOL_WINDOW_ID = "SonarQube for IntelliJ";
public static final String LOG_TAB_TITLE = "Log";
public static final String CURRENT_FILE_TAB_TITLE = "Current File";
public static final String REPORT_TAB_TITLE = "Report";
diff --git a/src/main/java/org/sonarlint/intellij/ui/inlay/FixSuggestionInlayPanel.kt b/src/main/java/org/sonarlint/intellij/ui/inlay/FixSuggestionInlayPanel.kt
index 8257f58cc2..1c99af7c73 100644
--- a/src/main/java/org/sonarlint/intellij/ui/inlay/FixSuggestionInlayPanel.kt
+++ b/src/main/java/org/sonarlint/intellij/ui/inlay/FixSuggestionInlayPanel.kt
@@ -145,8 +145,8 @@ class FixSuggestionInlayPanel(
border = JBUI.Borders.empty(5)
add(
JBLabel(
- "SonarLint Fix Suggestion (fix ${suggestion.snippetIndex}/${suggestion.totalSnippets})",
- SonarLintIcons.SONARLINT, SwingConstants.LEFT
+ "SonarQube for IntelliJ Fix Suggestion (fix ${suggestion.snippetIndex}/${suggestion.totalSnippets})",
+ SonarLintIcons.SONARQUBE_FOR_INTELLIJ, SwingConstants.LEFT
), BorderLayout.WEST
)
add(titleRightSidePanel, BorderLayout.EAST)
diff --git a/src/main/java/org/sonarlint/intellij/ui/nodes/IssueNode.java b/src/main/java/org/sonarlint/intellij/ui/nodes/IssueNode.java
index 29f9c70627..528f2f16b3 100644
--- a/src/main/java/org/sonarlint/intellij/ui/nodes/IssueNode.java
+++ b/src/main/java/org/sonarlint/intellij/ui/nodes/IssueNode.java
@@ -83,7 +83,7 @@ private void doRender(TreeCellRenderer renderer) {
setIcon(renderer, new CompoundIcon(CompoundIcon.Axis.X_AXIS, gap, connection.getProductIcon(), impactIcon));
} else {
renderer.setIconToolTip(impactText + " impact on " + qualityText);
- var serverIconEmptySpace = SonarLintIcons.ICON_SONARQUBE_16.getIconWidth() + gap;
+ var serverIconEmptySpace = SonarLintIcons.ICON_SONARQUBE_SERVER_16.getIconWidth() + gap;
setIcon(renderer, new OffsetIcon(serverIconEmptySpace, new CompoundIcon(CompoundIcon.Axis.X_AXIS, gap, impactIcon)));
}
} else {
@@ -104,7 +104,7 @@ private void doRender(TreeCellRenderer renderer) {
setIcon(renderer, new CompoundIcon(CompoundIcon.Axis.X_AXIS, gap, connection.getProductIcon(), typeIcon));
} else {
renderer.setIconToolTip(severityText + " " + typeStr);
- var serverIconEmptySpace = SonarLintIcons.ICON_SONARQUBE_16.getIconWidth() + gap;
+ var serverIconEmptySpace = SonarLintIcons.ICON_SONARQUBE_SERVER_16.getIconWidth() + gap;
setIcon(renderer, new OffsetIcon(serverIconEmptySpace, new CompoundIcon(CompoundIcon.Axis.X_AXIS, gap, typeIcon)));
}
}
diff --git a/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintDashboardPanel.kt b/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintDashboardPanel.kt
index ada1959221..d79ad28718 100644
--- a/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintDashboardPanel.kt
+++ b/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintDashboardPanel.kt
@@ -173,9 +173,9 @@ class SonarLintDashboardPanel(private val editor: Editor) {
connectionHelp.isVisible = false
connectionIcon.isVisible = true
if (serverConnection.isSonarCloud) {
- connectionIcon.icon = SonarLintIcons.ICON_SONARCLOUD_16
+ connectionIcon.icon = SonarLintIcons.ICON_SONARQUBE_CLOUD_16
} else {
- connectionIcon.icon = SonarLintIcons.ICON_SONARQUBE_16
+ connectionIcon.icon = SonarLintIcons.ICON_SONARQUBE_SERVER_16
}
settings.projectKey?.let { projectKey ->
bindingLabel.isVisible = true
@@ -204,7 +204,7 @@ class SonarLintDashboardPanel(private val editor: Editor) {
val gc = GridBag().nextLine()
val constrains = gc.next()
- val noAccessLabel = HyperlinkLabel("Restart SonarLint Service").apply {
+ val noAccessLabel = HyperlinkLabel("Restart SonarQube for IntelliJ Service").apply {
addHyperlinkListener(object : HyperlinkAdapter() {
override fun hyperlinkActivated(e: HyperlinkEvent) {
getService(BackendService::class.java).restartBackendService()
diff --git a/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintTrafficLightWidget.kt b/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintTrafficLightWidget.kt
index 8ae74934ac..754d22d47d 100644
--- a/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintTrafficLightWidget.kt
+++ b/src/main/java/org/sonarlint/intellij/ui/traffic/light/SonarLintTrafficLightWidget.kt
@@ -144,13 +144,13 @@ class SonarLintTrafficLightWidget(
fun refresh(model: SonarLintDashboardModel) {
if (!model.isAlive) {
- iconAndFindingsCountLabel.icon = SonarLintIcons.SONARLINT_ACTION_ORANGE_12PX
+ iconAndFindingsCountLabel.icon = SonarLintIcons.SONARQUBE_FOR_INTELLIJ_ORANGE_13PX
iconAndFindingsCountLabel.text = model.findingsCount().toString()
} else if (model.hasFindings()) {
- iconAndFindingsCountLabel.icon = SonarLintIcons.SONARLINT_ACTION_12PX
+ iconAndFindingsCountLabel.icon = SonarLintIcons.SONARQUBE_FOR_INTELLIJ_RED_13PX
iconAndFindingsCountLabel.text = model.findingsCount().toString()
} else {
- iconAndFindingsCountLabel.icon = SonarLintIcons.SONARLINT_ACTION_GREEN_12PX
+ iconAndFindingsCountLabel.icon = SonarLintIcons.SONARQUBE_FOR_INTELLIJ_GREEN_13PX
iconAndFindingsCountLabel.text = null
}
dashboardPopup.refresh(model)
diff --git a/src/main/java/org/sonarlint/intellij/ui/vulnerabilities/TaintVulnerabilitiesPanel.kt b/src/main/java/org/sonarlint/intellij/ui/vulnerabilities/TaintVulnerabilitiesPanel.kt
index 8cd4c10abd..29bbe22682 100644
--- a/src/main/java/org/sonarlint/intellij/ui/vulnerabilities/TaintVulnerabilitiesPanel.kt
+++ b/src/main/java/org/sonarlint/intellij/ui/vulnerabilities/TaintVulnerabilitiesPanel.kt
@@ -117,10 +117,13 @@ class TaintVulnerabilitiesPanel(private val project: Project) : SimpleToolWindow
init {
val globalSettings = getGlobalSettings()
cards.add(
- centeredLabel(SONARLINT_ERROR_MSG, "Restart SonarLint Service", RestartBackendAction()),
+ centeredLabel(SONARLINT_ERROR_MSG, "Restart SonarQube for IntelliJ Service", RestartBackendAction()),
ERROR_CARD_ID
)
- cards.add(centeredLabel("The project is not bound to SonarCloud/SonarQube", "Configure Binding", SonarConfigureProject()), NO_BINDING_CARD_ID)
+ cards.add(
+ centeredLabel("The project is not bound to SonarQube (Server, Cloud)", "Configure Binding", SonarConfigureProject()),
+ NO_BINDING_CARD_ID
+ )
cards.add(centeredLabel("The project binding is invalid", "Edit Binding", SonarConfigureProject()), INVALID_BINDING_CARD_ID)
cards.add(centeredLabel("No taint vulnerabilities shown due to the current filtering", "Show Resolved Taint Vulnerabilities",
SonarLintActions.getInstance().includeResolvedTaintVulnerabilitiesAction()), NO_FILTERED_TAINT_VULNERABILITIES_CARD_ID)
@@ -151,7 +154,12 @@ class TaintVulnerabilitiesPanel(private val project: Project) : SimpleToolWindow
RefreshTaintVulnerabilitiesAction(),
sonarLintActions.includeResolvedTaintVulnerabilitiesAction(),
sonarLintActions.configure(),
- OpenInBrowserAction(LEARN_MORE, "Learn more about taint vulnerabilities in SonarLint", TAINT_VULNERABILITIES_LINK, AllIcons.Actions.Help)
+ OpenInBrowserAction(
+ LEARN_MORE,
+ "Learn more about taint vulnerabilities in SonarQube for IntelliJ",
+ TAINT_VULNERABILITIES_LINK,
+ AllIcons.Actions.Help
+ )
))
applyFocusOnNewCodeSettings()
}
@@ -191,8 +199,14 @@ class TaintVulnerabilitiesPanel(private val project: Project) : SimpleToolWindow
}
private fun createDisclaimer(): StripePanel {
- val stripePanel = StripePanel("This tab displays taint vulnerabilities detected by SonarCloud or SonarQube. SonarLint does not detect those issues locally.", Information)
- stripePanel.addAction(LEARN_MORE, OpenInBrowserAction(LEARN_MORE, "Learn more about taint vulnerabilities in SonarLint", TAINT_VULNERABILITIES_LINK))
+ val stripePanel = StripePanel(
+ "This tab displays taint vulnerabilities detected by SonarQube (Server, Cloud). SonarQube for IntelliJ does not detect those issues locally.",
+ Information
+ )
+ stripePanel.addAction(
+ LEARN_MORE,
+ OpenInBrowserAction(LEARN_MORE, "Learn more about taint vulnerabilities in SonarQube for IntelliJ", TAINT_VULNERABILITIES_LINK)
+ )
stripePanel.addAction("Dismiss", object : AbstractSonarAction() {
override fun actionPerformed(e: AnActionEvent) {
stripePanel.isVisible = false
@@ -360,7 +374,7 @@ class TaintVulnerabilitiesPanel(private val project: Project) : SimpleToolWindow
runOnPooledThread(project) {
if (showFinding.codeSnippet == null) {
SonarLintProjectNotifications.get(project)
- .notifyUnableToOpenFinding("The taint vulnerability could not be detected by SonarLint in the current code")
+ .notifyUnableToOpenFinding("The taint vulnerability could not be detected by SonarQube for IntelliJ in the current code")
return@runOnPooledThread
}
val matcher = TextRangeMatcher(project)
@@ -369,7 +383,7 @@ class TaintVulnerabilitiesPanel(private val project: Project) : SimpleToolWindow
}
if (rangeMarker == null) {
SonarLintProjectNotifications.get(project)
- .notifyUnableToOpenFinding("The taint vulnerability could not be detected by SonarLint in the current code")
+ .notifyUnableToOpenFinding("The taint vulnerability could not be detected by SonarQube for IntelliJ in the current code")
return@runOnPooledThread
}
diff --git a/src/main/java/org/sonarlint/intellij/util/HelpLabelUtils.kt b/src/main/java/org/sonarlint/intellij/util/HelpLabelUtils.kt
index a198562a15..967d33a16b 100644
--- a/src/main/java/org/sonarlint/intellij/util/HelpLabelUtils.kt
+++ b/src/main/java/org/sonarlint/intellij/util/HelpLabelUtils.kt
@@ -28,8 +28,9 @@ class HelpLabelUtils {
fun createHelpTextNotConnected(helpText: String) =
ContextHelpLabel.createWithLink(null,
helpText +
- "SonarCloud complements SonarLint by detecting more across the whole project.",
- "Try SonarCloud for free", true) {
+ "SonarQube Cloud complements SonarQube for IntelliJ by detecting more across the whole project.",
+ "Try SonarQube Cloud for free", true
+ ) {
LinkTelemetry.SONARCLOUD_SIGNUP_PAGE.browseWithTelemetry()
}
@@ -40,15 +41,15 @@ class HelpLabelUtils {
@JvmStatic
fun createCleanAsYouCode() =
ContextHelpLabel.create(
- "Use connected mode to benefit from an accurate new code definition based on your SonarQube or SonarCloud settings." +
+ "Use Connected Mode to benefit from an accurate new code definition based on your SonarQube (Server, Cloud) settings." +
" " +
- " Without connected mode, any code added or changed in the last 30 days is considered new code."
+ " Without Connected Mode, any code added or changed in the last 30 days is considered new code."
)
@JvmStatic
fun createConnectedMode() =
ContextHelpLabel.createWithLink(null,
- "Connected Mode links SonarLint with SonarCloud or SonarQube to analyze more languages, detect more issues, and receive notifications about the quality gate status.",
+ "Connected Mode links SonarQube for IntelliJ with SonarQube (Server, Cloud) to analyze more languages, detect more issues, and receive notifications about the quality gate status.",
"Learn more about Connected Mode", true) {
LinkTelemetry.CONNECTED_MODE_DOCS.browseWithTelemetry()
}
diff --git a/src/main/java/org/sonarlint/intellij/util/ProgressUtils.kt b/src/main/java/org/sonarlint/intellij/util/ProgressUtils.kt
index b124812c6a..1e989f4154 100644
--- a/src/main/java/org/sonarlint/intellij/util/ProgressUtils.kt
+++ b/src/main/java/org/sonarlint/intellij/util/ProgressUtils.kt
@@ -40,11 +40,11 @@ object ProgressUtils {
}
try {
return future.get(100, TimeUnit.MILLISECONDS)
- } catch (t: TimeoutException) {
+ } catch (_: TimeoutException) {
continue
- } catch (e: InterruptedException) {
+ } catch (_: InterruptedException) {
throw ProcessCanceledException()
- } catch (e: CancellationException) {
+ } catch (_: CancellationException) {
throw ProcessCanceledException()
} catch (e: ExecutionException) {
throw e.cause ?: e
diff --git a/src/main/java/org/sonarlint/intellij/util/SonarGotItTooltipsUtils.kt b/src/main/java/org/sonarlint/intellij/util/SonarGotItTooltipsUtils.kt
index a82a671cd5..80b6d84382 100644
--- a/src/main/java/org/sonarlint/intellij/util/SonarGotItTooltipsUtils.kt
+++ b/src/main/java/org/sonarlint/intellij/util/SonarGotItTooltipsUtils.kt
@@ -35,7 +35,7 @@ object SonarGotItTooltipsUtils {
fun showTrafficLightToolTip(component: JComponent, parent: Disposable) {
// we pick a random project service that is disposable
with(GotItTooltip(TRAFFIC_LIGHT_TOOLTIP_ID, TRAFFIC_LIGHT_TOOLTIP_TEXT, parent)) {
- withIcon(SonarLintIcons.SONARLINT)
+ withIcon(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
withPosition(Balloon.Position.above)
show(component) { it, _ -> Point(-5, it.height / 2) }
}
diff --git a/src/main/java/org/sonarlint/intellij/util/SonarLintActions.java b/src/main/java/org/sonarlint/intellij/util/SonarLintActions.java
index fac5579a31..568cd59ec1 100644
--- a/src/main/java/org/sonarlint/intellij/util/SonarLintActions.java
+++ b/src/main/java/org/sonarlint/intellij/util/SonarLintActions.java
@@ -83,16 +83,16 @@ public SonarLintActions() {
"Clear analysis results",
SonarLintIcons.CLEAN);
clearIssuesAction = new ClearCurrentFileIssuesAction("Clear SonarLint Issues",
- "Clear SonarLint issues",
+ "Clear SonarQube for IntelliJ issues",
SonarLintIcons.CLEAN);
cleanConsoleAction = new SonarCleanConsoleAction("Clear SonarLint Console",
- "Clear SonarLint console",
+ "Clear SonarQube for IntelliJ console",
SonarLintIcons.CLEAN);
analyzeAllFilesAction = new SonarAnalyzeAllFilesAction("Analyze All Project Files",
- "Run a SonarLint analysis on all project files",
+ "Run a SonarQube for IntelliJ analysis on all project files",
SonarLintIcons.PROJECT);
analyzeChangedFilesAction = new SonarAnalyzeChangedFilesAction("Analyze VCS Changed Files",
- "Run a SonarLint analysis on VCS changed files",
+ "Run a SonarQube for IntelliJ analysis on VCS changed files",
SonarLintIcons.SCM);
filterAction = new FilterSecurityHotspotActionGroup("Filter Security Hotspots",
"Filter Security Hotspots",
@@ -110,7 +110,7 @@ public SonarLintActions() {
SonarLintIcons.RESOLVED,
LocalTaintVulnerability.class);
analyzeCurrentFileAction = new SonarAnalyzeFilesAction("Analyze Current File",
- "Run SonarLint analysis on the current file",
+ "Run SonarQube for IntelliJ analysis on the current file",
SonarLintIcons.PLAY);
restartSonarLintAction = new RestartBackendAction();
}
diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml
index d991d26826..1ef7ad9aaf 100644
--- a/src/main/resources/META-INF/plugin.xml
+++ b/src/main/resources/META-INF/plugin.xml
@@ -21,40 +21,37 @@
-->
org.sonarlint.idea
- SonarLint
+ SonarQube for IDE${project.version}SonarSource
- SonarLint by Sonar is a free IDE extension to find and fix coding issues in real-time, flagging issues as you code, just like a spell-checker.
+ SonarQube for IDE by Sonar is a free IDE extension to find and fix coding issues in real-time, flagging issues as you code, just like a spell-checker.
More than a linter, it also delivers rich contextual guidance to help developers understand why there is an issue,
assess the risk and educate them on how to fix it. This helps improve their skills, enhance their productivity,
and take ownership of their code, taking linting to a different level.
- When paired with SonarQube or SonarCloud in connected mode,
- SonarLint forms a powerful end-to-end code quality platform to enrich the CI/CD pipeline, ensuring any code edits or additions are clean.
- In connected mode, your team can share common language rulesets, project analysis settings and more.
+ When paired with SonarQube Server or SonarQube Cloud in Connected Mode,
+ SonarQube for IDE forms a powerful end-to-end code quality platform to enrich the CI/CD pipeline, ensuring any code edits or additions are clean.
+ In Connected Mode, your team can share common language rulesets, project analysis settings and more.
- SonarLint is a powerful open-source tool for developers of all experience and skill levels, empowering them
+ SonarQube for IDE is a powerful open-source tool for developers of all experience and skill levels, empowering them
to deliver Clean Code - code fit for development and production. An essential linting tool for every developer.
- SonarLint integrates with most JetBrains IDEs including
- IntelliJ IDEA, CLion, GoLand, WebStorm, PHPStorm, PyCharm, Rider, Android Studio & RubyMine. Supported languages include
+ SonarQube for IDE integrates with most JetBrains IDEs including
+ IntelliJ IDEA, CLion, GoLand, WebStorm, PHPStorm, PyCharm, Rider, Aqua, AppCode, Android Studio & RubyMine. Supported languages include
C, C++, Java, Go, JavaScript, TypeScript, Python, C#, Kotlin, Ruby, HTML, CSS, PHP & PL/SQL.
The full list of supported languages and rules is available in our docs.
-
- Beginning in version 7.5, SonarLint can detect Security Hotspots when in Connected Mode with SonarQube 9.7+, or SonarCloud.
-
Get started by checking the Requirements and Installation pages.
@@ -202,8 +199,11 @@
-
-
+
+
@@ -251,27 +251,27 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -289,7 +289,8 @@
-
+
@@ -297,58 +298,59 @@
+ text="Analyze with SonarQube for IntelliJ"
+ description="Run SonarQube for IntelliJ analysis on selected file(s)"
+ icon="org.sonarlint.intellij.SonarLintIcons.SONARQUBE_FOR_INTELLIJ_13PX">
-
+
+ text="Exclude from SonarQube for IntelliJ Analysis"
+ description="Adds resources to the list exclusions in the SonarQube for IntelliJ project settings"
+ icon="org.sonarlint.intellij.SonarLintIcons.SONARQUBE_FOR_INTELLIJ_13PX">
+ text="Analyze VCS Changed Files with SonarQube for IntelliJ"
+ description="Run a SonarQube for IntelliJ analysis on VCS changed files"
+ icon="org.sonarlint.intellij.SonarLintIcons.SONARQUBE_FOR_INTELLIJ_13PX">
+ text="Analyze All Files with SonarQube for IntelliJ"
+ description="Run a SonarQube for IntelliJ analysis on all files in the project"
+ icon="org.sonarlint.intellij.SonarLintIcons.SONARQUBE_FOR_INTELLIJ_13PX">
diff --git a/src/main/resources/images/SonarCloud.png b/src/main/resources/images/SonarCloud.png
deleted file mode 100644
index 7970d2a0f2..0000000000
Binary files a/src/main/resources/images/SonarCloud.png and /dev/null differ
diff --git a/src/main/resources/images/SonarCloud_dark.png b/src/main/resources/images/SonarCloud_dark.png
deleted file mode 100644
index 5bfad2097b..0000000000
Binary files a/src/main/resources/images/SonarCloud_dark.png and /dev/null differ
diff --git a/src/main/resources/images/SonarQube.png b/src/main/resources/images/SonarQube.png
deleted file mode 100644
index e0ae7398e2..0000000000
Binary files a/src/main/resources/images/SonarQube.png and /dev/null differ
diff --git a/src/main/resources/images/SonarQube_dark.png b/src/main/resources/images/SonarQube_dark.png
deleted file mode 100644
index f058da8e7c..0000000000
Binary files a/src/main/resources/images/SonarQube_dark.png and /dev/null differ
diff --git a/src/main/resources/images/issue_annotation.png b/src/main/resources/images/issue_annotation.png
deleted file mode 100644
index f46bf66ece..0000000000
Binary files a/src/main/resources/images/issue_annotation.png and /dev/null differ
diff --git a/src/main/resources/images/onde-sonar-13.png b/src/main/resources/images/onde-sonar-13.png
deleted file mode 100644
index 9eade15d68..0000000000
Binary files a/src/main/resources/images/onde-sonar-13.png and /dev/null differ
diff --git a/src/main/resources/images/onde-sonar-16-execute.png b/src/main/resources/images/onde-sonar-16-execute.png
deleted file mode 100644
index 8e261ce968..0000000000
Binary files a/src/main/resources/images/onde-sonar-16-execute.png and /dev/null differ
diff --git a/src/main/resources/images/onde-sonar-16.png b/src/main/resources/images/onde-sonar-16.png
deleted file mode 100644
index da84646430..0000000000
Binary files a/src/main/resources/images/onde-sonar-16.png and /dev/null differ
diff --git a/src/main/resources/images/remove.png b/src/main/resources/images/remove.png
deleted file mode 100644
index c6ff278b55..0000000000
Binary files a/src/main/resources/images/remove.png and /dev/null differ
diff --git a/src/main/resources/images/resolved.svg b/src/main/resources/images/resolved.svg
index eb3de76b51..4924de22b7 100644
--- a/src/main/resources/images/resolved.svg
+++ b/src/main/resources/images/resolved.svg
@@ -1,4 +1,4 @@
-
+
-
-
\ No newline at end of file
diff --git a/src/main/resources/images/resolved_dark.svg b/src/main/resources/images/resolved_dark.svg
index 6bcc50da99..9dd855acc8 100644
--- a/src/main/resources/images/resolved_dark.svg
+++ b/src/main/resources/images/resolved_dark.svg
@@ -1,4 +1,3 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarcloud-16.png b/src/main/resources/images/sonarcloud-16.png
deleted file mode 100644
index 7abe416f20..0000000000
Binary files a/src/main/resources/images/sonarcloud-16.png and /dev/null differ
diff --git a/src/main/resources/images/sonarlint.png b/src/main/resources/images/sonarlint.png
deleted file mode 100644
index 799485612e..0000000000
Binary files a/src/main/resources/images/sonarlint.png and /dev/null differ
diff --git a/src/main/resources/images/sonarlint@2x.png b/src/main/resources/images/sonarlint@2x.png
deleted file mode 100644
index d69dc112b9..0000000000
Binary files a/src/main/resources/images/sonarlint@2x.png and /dev/null differ
diff --git a/src/main/resources/images/sonarlintAction.svg b/src/main/resources/images/sonarlintAction.svg
deleted file mode 100644
index cfe9a5ab99..0000000000
--- a/src/main/resources/images/sonarlintAction.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
diff --git a/src/main/resources/images/sonarlintAction_12px.svg b/src/main/resources/images/sonarlintAction_12px.svg
deleted file mode 100644
index 4fffe58f47..0000000000
--- a/src/main/resources/images/sonarlintAction_12px.svg
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/main/resources/images/sonarlintAction_green_12px.svg b/src/main/resources/images/sonarlintAction_green_12px.svg
deleted file mode 100644
index 93ef400359..0000000000
--- a/src/main/resources/images/sonarlintAction_green_12px.svg
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/main/resources/images/sonarlintAction_orange_12px.svg b/src/main/resources/images/sonarlintAction_orange_12px.svg
deleted file mode 100644
index 7311202c68..0000000000
--- a/src/main/resources/images/sonarlintAction_orange_12px.svg
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/main/resources/images/sonarlintToolWindow.svg b/src/main/resources/images/sonarlintToolWindow.svg
deleted file mode 100644
index 6d7e3cfbc2..0000000000
--- a/src/main/resources/images/sonarlintToolWindow.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
diff --git a/src/main/resources/images/sonarlintToolWindowEmpty.svg b/src/main/resources/images/sonarlintToolWindowEmpty.svg
deleted file mode 100644
index 6f30f7a2ee..0000000000
--- a/src/main/resources/images/sonarlintToolWindowEmpty.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
diff --git a/src/main/resources/images/sonarlintToolWindowEmpty_dark.svg b/src/main/resources/images/sonarlintToolWindowEmpty_dark.svg
deleted file mode 100644
index 68d9edc4e2..0000000000
--- a/src/main/resources/images/sonarlintToolWindowEmpty_dark.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
diff --git a/src/main/resources/images/sonarlintToolWindow_dark.svg b/src/main/resources/images/sonarlintToolWindow_dark.svg
deleted file mode 100644
index 30ec16ce2e..0000000000
--- a/src/main/resources/images/sonarlintToolWindow_dark.svg
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
diff --git a/src/main/resources/images/sonarqube-48x200.png b/src/main/resources/images/sonarqube-48x200.png
deleted file mode 100644
index fa45b5ff6f..0000000000
Binary files a/src/main/resources/images/sonarqube-48x200.png and /dev/null differ
diff --git a/src/main/resources/images/sonarqube_cloud.png b/src/main/resources/images/sonarqube_cloud.png
new file mode 100644
index 0000000000..6e87011cf8
Binary files /dev/null and b/src/main/resources/images/sonarqube_cloud.png differ
diff --git a/src/main/resources/images/sonarqube_cloud_16px.svg b/src/main/resources/images/sonarqube_cloud_16px.svg
new file mode 100644
index 0000000000..fb86854b8f
--- /dev/null
+++ b/src/main/resources/images/sonarqube_cloud_16px.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_cloud_16px_dark.svg b/src/main/resources/images/sonarqube_cloud_16px_dark.svg
new file mode 100644
index 0000000000..5a200bc10a
--- /dev/null
+++ b/src/main/resources/images/sonarqube_cloud_16px_dark.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_cloud_dark.png b/src/main/resources/images/sonarqube_cloud_dark.png
new file mode 100644
index 0000000000..3eb7d82d61
Binary files /dev/null and b/src/main/resources/images/sonarqube_cloud_dark.png differ
diff --git a/src/main/resources/images/sonarqube_for_intellij.svg b/src/main/resources/images/sonarqube_for_intellij.svg
new file mode 100644
index 0000000000..9d4c385826
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij@2px_dark.svg b/src/main/resources/images/sonarqube_for_intellij@2px_dark.svg
new file mode 100644
index 0000000000..0d794ff7b3
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij@2px_dark.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij@2x.svg b/src/main/resources/images/sonarqube_for_intellij@2x.svg
new file mode 100644
index 0000000000..de4ec26d7b
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij@2x.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_13px.svg b/src/main/resources/images/sonarqube_for_intellij_13px.svg
new file mode 100644
index 0000000000..27ed3497c0
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_13px.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_13px_dark.svg b/src/main/resources/images/sonarqube_for_intellij_13px_dark.svg
new file mode 100644
index 0000000000..3f430f2236
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_13px_dark.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_32px.svg b/src/main/resources/images/sonarqube_for_intellij_32px.svg
new file mode 100644
index 0000000000..de4ec26d7b
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_32px.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_32px_dark.svg b/src/main/resources/images/sonarqube_for_intellij_32px_dark.svg
new file mode 100644
index 0000000000..0d794ff7b3
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_32px_dark.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_dark.svg b/src/main/resources/images/sonarqube_for_intellij_dark.svg
new file mode 100644
index 0000000000..ea00134356
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_dark.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_empty_toolwindow.svg b/src/main/resources/images/sonarqube_for_intellij_empty_toolwindow.svg
new file mode 100644
index 0000000000..3f430f2236
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_empty_toolwindow.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_green_13px.svg b/src/main/resources/images/sonarqube_for_intellij_green_13px.svg
new file mode 100644
index 0000000000..8297ca91b8
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_green_13px.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_green_13px_dark.svg b/src/main/resources/images/sonarqube_for_intellij_green_13px_dark.svg
new file mode 100644
index 0000000000..6a3cb46174
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_green_13px_dark.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_orange_13px.svg b/src/main/resources/images/sonarqube_for_intellij_orange_13px.svg
new file mode 100644
index 0000000000..fcb4eccd86
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_orange_13px.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_orange_13px_dark.svg b/src/main/resources/images/sonarqube_for_intellij_orange_13px_dark.svg
new file mode 100644
index 0000000000..af0dbcbe9e
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_orange_13px_dark.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_red_13px.svg b/src/main/resources/images/sonarqube_for_intellij_red_13px.svg
new file mode 100644
index 0000000000..f9ebe97fb7
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_red_13px.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_red_13px_dark.svg b/src/main/resources/images/sonarqube_for_intellij_red_13px_dark.svg
new file mode 100644
index 0000000000..a0e4eceaf2
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_red_13px_dark.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_toolwindow.svg b/src/main/resources/images/sonarqube_for_intellij_toolwindow.svg
new file mode 100644
index 0000000000..aaa605a253
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_toolwindow.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_for_intellij_toolwindow_dark.svg b/src/main/resources/images/sonarqube_for_intellij_toolwindow_dark.svg
new file mode 100644
index 0000000000..92096cd34f
--- /dev/null
+++ b/src/main/resources/images/sonarqube_for_intellij_toolwindow_dark.svg
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_server.png b/src/main/resources/images/sonarqube_server.png
new file mode 100644
index 0000000000..68186ce3a9
Binary files /dev/null and b/src/main/resources/images/sonarqube_server.png differ
diff --git a/src/main/resources/images/sonarqube_server_16px.svg b/src/main/resources/images/sonarqube_server_16px.svg
new file mode 100644
index 0000000000..27feac2807
--- /dev/null
+++ b/src/main/resources/images/sonarqube_server_16px.svg
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_server_16px_dark.svg b/src/main/resources/images/sonarqube_server_16px_dark.svg
new file mode 100644
index 0000000000..3842e76bfb
--- /dev/null
+++ b/src/main/resources/images/sonarqube_server_16px_dark.svg
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/images/sonarqube_server_dark.png b/src/main/resources/images/sonarqube_server_dark.png
new file mode 100644
index 0000000000..22dd2a6438
Binary files /dev/null and b/src/main/resources/images/sonarqube_server_dark.png differ
diff --git a/src/main/resources/images/tip.png b/src/main/resources/images/tip.png
deleted file mode 100644
index 2b62f2ac9b..0000000000
Binary files a/src/main/resources/images/tip.png and /dev/null differ
diff --git a/src/test/java/org/sonarlint/intellij/SonarLintIconsTest.kt b/src/test/java/org/sonarlint/intellij/SonarLintIconsTest.kt
index b9d4e6b2a0..1c3f06ae89 100644
--- a/src/test/java/org/sonarlint/intellij/SonarLintIconsTest.kt
+++ b/src/test/java/org/sonarlint/intellij/SonarLintIconsTest.kt
@@ -61,14 +61,29 @@ class SonarLintIconsTest {
@Test
fun testIcons() {
- assertThat(SonarLintIcons.CLEAN).isNotNull
- assertThat(SonarLintIcons.ICON_SONARQUBE_16).isNotNull
- assertThat(SonarLintIcons.INFO).isNotNull
+ assertThat(SonarLintIcons.ICON_SONARQUBE_SERVER).isNotNull
+ assertThat(SonarLintIcons.ICON_SONARQUBE_CLOUD).isNotNull
+ assertThat(SonarLintIcons.ICON_SONARQUBE_SERVER_16).isNotNull
+ assertThat(SonarLintIcons.ICON_SONARQUBE_CLOUD_16).isNotNull
+ assertThat(SonarLintIcons.SONARQUBE_FOR_INTELLIJ_13PX).isNotNull
+ assertThat(SonarLintIcons.SONARQUBE_FOR_INTELLIJ_RED_13PX).isNotNull
+ assertThat(SonarLintIcons.SONARQUBE_FOR_INTELLIJ_GREEN_13PX).isNotNull
+ assertThat(SonarLintIcons.SONARQUBE_FOR_INTELLIJ_ORANGE_13PX).isNotNull
+ assertThat(SonarLintIcons.SONARQUBE_FOR_INTELLIJ).isNotNull
+ assertThat(SonarLintIcons.SONARQUBE_FOR_INTELLIJ_32PX).isNotNull
assertThat(SonarLintIcons.PLAY).isNotNull
- assertThat(SonarLintIcons.SONARLINT).isNotNull
- assertThat(SonarLintIcons.SUSPEND).isNotNull
+ assertThat(SonarLintIcons.CLEAN).isNotNull
assertThat(SonarLintIcons.TOOLS).isNotNull
+ assertThat(SonarLintIcons.SUSPEND).isNotNull
+ assertThat(SonarLintIcons.INFO).isNotNull
assertThat(SonarLintIcons.WARN).isNotNull
+ assertThat(SonarLintIcons.SCM).isNotNull
+ assertThat(SonarLintIcons.PROJECT).isNotNull
+ assertThat(SonarLintIcons.NOT_CONNECTED).isNotNull
+ assertThat(SonarLintIcons.CONNECTED).isNotNull
+ assertThat(SonarLintIcons.CONNECTION_ERROR).isNotNull
+ assertThat(SonarLintIcons.RESOLVED).isNotNull
+ assertThat(SonarLintIcons.FOCUS).isNotNull
}
@Test
diff --git a/src/test/java/org/sonarlint/intellij/SonarLintIntelliJClientTests.kt b/src/test/java/org/sonarlint/intellij/SonarLintIntelliJClientTests.kt
index 45013aa93d..11ee8d65a1 100644
--- a/src/test/java/org/sonarlint/intellij/SonarLintIntelliJClientTests.kt
+++ b/src/test/java/org/sonarlint/intellij/SonarLintIntelliJClientTests.kt
@@ -108,7 +108,7 @@ class SonarLintIntelliJClientTests : AbstractSonarLintLightTests() {
assertThat(projectNotifications).extracting("title", "content").containsExactly(
tuple(
- "SonarLint suggestions", "Bind this project to 'projectName' on 'connectionId'?"
+ "SonarQube for IntelliJ suggestions", "Bind this project to 'projectName' on 'connectionId'?"
)
)
}
@@ -121,8 +121,8 @@ class SonarLintIntelliJClientTests : AbstractSonarLintLightTests() {
assertThat(projectNotifications).extracting("title", "content").containsExactly(
tuple(
- "SonarLint suggestions",
- "Bind this project to SonarCloud or SonarQube?"
+ "SonarQube for IntelliJ suggestions",
+ "Bind this project to SonarQube (Server, Cloud)?"
)
)
}
@@ -142,8 +142,8 @@ class SonarLintIntelliJClientTests : AbstractSonarLintLightTests() {
assertThat(projectNotifications).extracting("title", "content").containsExactly(
tuple(
- "SonarLint suggestions",
- "Bind this project to SonarCloud or SonarQube?"
+ "SonarQube for IntelliJ suggestions",
+ "Bind this project to SonarQube (Server, Cloud)?"
)
)
}
diff --git a/src/test/java/org/sonarlint/intellij/analysis/LocalFileExclusionsTests.java b/src/test/java/org/sonarlint/intellij/analysis/LocalFileExclusionsTests.java
index 44eda1c152..73a76839d5 100644
--- a/src/test/java/org/sonarlint/intellij/analysis/LocalFileExclusionsTests.java
+++ b/src/test/java/org/sonarlint/intellij/analysis/LocalFileExclusionsTests.java
@@ -93,7 +93,7 @@ void should_exclude_if_file_excluded_in_project_config() {
setProjectLevelExclusions(List.of("GLOB:foo.php"));
var nonExcludedFilesByModule = underTest.retainNonExcludedFilesByModules(List.of(file), false, excludeReasons::put);
- assertIsExcluded(file, nonExcludedFilesByModule, "file matches exclusions defined in the SonarLint Project Settings");
+ assertIsExcluded(file, nonExcludedFilesByModule, "file matches exclusions defined in the SonarQube for IntelliJ Project Settings");
}
@Test
@@ -113,7 +113,7 @@ void should_exclude_if_file_excluded_in_global_config() {
triggerFileExclusions("foo.php");
var nonExcludedFilesByModule = underTest.retainNonExcludedFilesByModules(List.of(file), false, excludeReasons::put);
- assertIsExcluded(file, nonExcludedFilesByModule, "file matches exclusions defined in the SonarLint Global Settings");
+ assertIsExcluded(file, nonExcludedFilesByModule, "file matches exclusions defined in the SonarQube for IntelliJ Global Settings");
}
@Test
diff --git a/src/test/java/org/sonarlint/intellij/config/SonarLintColorSettingsPageTests.java b/src/test/java/org/sonarlint/intellij/config/SonarLintColorSettingsPageTests.java
index 45248c1c91..b77313435c 100644
--- a/src/test/java/org/sonarlint/intellij/config/SonarLintColorSettingsPageTests.java
+++ b/src/test/java/org/sonarlint/intellij/config/SonarLintColorSettingsPageTests.java
@@ -38,7 +38,7 @@ void setUp() {
void testGetters() {
assertThat(colorSettingsPage).isNotNull();
assertThat(colorSettingsPage.getColorDescriptors()).isEmpty();
- assertThat(colorSettingsPage.getDisplayName()).isEqualTo("SonarLint");
+ assertThat(colorSettingsPage.getDisplayName()).isEqualTo("SonarQube for IntelliJ");
assertThat(colorSettingsPage.getHighlighter()).isInstanceOf(PlainSyntaxHighlighter.class);
}
diff --git a/src/test/java/org/sonarlint/intellij/editor/DisableRuleIntentionActionTests.java b/src/test/java/org/sonarlint/intellij/editor/DisableRuleIntentionActionTests.java
index edefafbb15..83baf9920d 100644
--- a/src/test/java/org/sonarlint/intellij/editor/DisableRuleIntentionActionTests.java
+++ b/src/test/java/org/sonarlint/intellij/editor/DisableRuleIntentionActionTests.java
@@ -45,13 +45,13 @@ void prepare() {
@Test
void text_should_mention_rule_key() {
- assertThat(quickFix.getText()).isEqualTo("SonarLint: Disable rule 'rule'");
+ assertThat(quickFix.getText()).isEqualTo("SonarQube: Disable rule 'rule'");
}
@Test
void check_getters() {
assertThat(quickFix.getIcon(0)).isEqualTo(AllIcons.Actions.Cancel);
- assertThat(quickFix.getFamilyName()).isEqualTo("SonarLint disable rule");
+ assertThat(quickFix.getFamilyName()).isEqualTo("SonarQube disable rule");
assertThat(quickFix.startInWriteAction()).isFalse();
}
diff --git a/src/test/java/org/sonarlint/intellij/errorsubmitter/BlameSonarSourceTests.java b/src/test/java/org/sonarlint/intellij/errorsubmitter/BlameSonarSourceTests.java
index aa86aaba7c..3eaa04df91 100644
--- a/src/test/java/org/sonarlint/intellij/errorsubmitter/BlameSonarSourceTests.java
+++ b/src/test/java/org/sonarlint/intellij/errorsubmitter/BlameSonarSourceTests.java
@@ -33,20 +33,22 @@ class BlameSonarSourceTests {
@Test
void testShortDescription() {
var url = underTest.getReportWithBodyUrl("a");
- assertThat(url).hasSizeLessThanOrEqualTo(BlameSonarSource.MAX_URI_LENGTH).isEqualTo("https://community.sonarsource.com/new-topic?title=Error+in+SonarLint+for+IntelliJ&category_id=6&tags=sonarlint,intellij&body=a");
+ assertThat(url).hasSizeLessThanOrEqualTo(BlameSonarSource.MAX_URI_LENGTH)
+ .isEqualTo("https://community.sonarsource.com/new-topic?title=Error+in+SonarQube+for+IntelliJ&category_id=6&tags=sonarlint,intellij&body=a");
}
@Test
void emptyBodyIfSingleLineTooLong() {
var url = underTest.getReportWithBodyUrl(StringUtil.repeat("a", 5000));
- assertThat(url).hasSizeLessThanOrEqualTo(BlameSonarSource.MAX_URI_LENGTH).isEqualTo("https://community.sonarsource.com/new-topic?title=Error+in+SonarLint+for+IntelliJ&category_id=6&tags=sonarlint,intellij&body=");
+ assertThat(url).hasSizeLessThanOrEqualTo(BlameSonarSource.MAX_URI_LENGTH)
+ .isEqualTo("https://community.sonarsource.com/new-topic?title=Error+in+SonarQube+for+IntelliJ&category_id=6&tags=sonarlint,intellij&body=");
}
@Test
void truncateOnNewLineIfDescriptionTooLong() {
var url = underTest.getReportWithBodyUrl(StringUtil.repeat("1234567\n", 400));
assertThat(url).hasSizeLessThanOrEqualTo(BlameSonarSource.MAX_URI_LENGTH)
- .isEqualTo("https://community.sonarsource.com/new-topic?title=Error+in+SonarLint+for+IntelliJ&category_id=6&tags=sonarlint,intellij&body="
+ .isEqualTo("https://community.sonarsource.com/new-topic?title=Error+in+SonarQube+for+IntelliJ&category_id=6&tags=sonarlint,intellij&body="
+ StringUtil.repeat("1234567%0A", 391) + "1234567");
}
diff --git a/src/test/java/org/sonarlint/intellij/mediumtests/StandaloneModeMediumTests.kt b/src/test/java/org/sonarlint/intellij/mediumtests/StandaloneModeMediumTests.kt
index e31d9ce1a7..1d05f74308 100644
--- a/src/test/java/org/sonarlint/intellij/mediumtests/StandaloneModeMediumTests.kt
+++ b/src/test/java/org/sonarlint/intellij/mediumtests/StandaloneModeMediumTests.kt
@@ -58,7 +58,7 @@ import org.sonarlint.intellij.util.getDocument
import org.sonarsource.sonarlint.plugin.api.module.file.ModuleFileEvent
class StandaloneModeMediumTests : AbstractSonarLintLightTests() {
- private val diamondQuickFix = "SonarLint: Replace with <>"
+ private val diamondQuickFix = "SonarQube: Replace with <>"
@BeforeEach
fun notifyProjectOpened() {
@@ -422,9 +422,9 @@ class StandaloneModeMediumTests : AbstractSonarLintLightTests() {
val file = myFixture.configureByFile("src/quick_fixes/overlapping_quick_fixes.input.java")
analyze(file.virtualFile)
- myFixture.launchAction(myFixture.findSingleIntention("SonarLint: Use \"Arrays.toString(array)\" instead"))
+ myFixture.launchAction(myFixture.findSingleIntention("SonarQube: Use \"Arrays.toString(array)\" instead"))
myFixture.editor.caretModel.currentCaret.moveToOffset(180)
- myFixture.launchAction(myFixture.findSingleIntention("SonarLint: Merge this if statement with the enclosing one"))
+ myFixture.launchAction(myFixture.findSingleIntention("SonarQube: Merge this if statement with the enclosing one"))
//Their stripTrailingSpaces function don't work
myFixture.checkResult(expectedFile.getDocument()!!.text.trim(), true)
}
diff --git a/src/test/java/org/sonarlint/intellij/notifications/AnalysisRequirementNotificationsTests.java b/src/test/java/org/sonarlint/intellij/notifications/AnalysisRequirementNotificationsTests.java
index 5c1529eabc..cd48667cc8 100644
--- a/src/test/java/org/sonarlint/intellij/notifications/AnalysisRequirementNotificationsTests.java
+++ b/src/test/java/org/sonarlint/intellij/notifications/AnalysisRequirementNotificationsTests.java
@@ -85,7 +85,7 @@ void notifyIfSkippedLanguage_JRE() {
AnalysisRequirementNotifications.notifyOnceForSkippedPlugins(getProject(), Language.JAVA, DidSkipLoadingPluginParams.SkipReason.UNSATISFIED_JRE,
"11", "1.8");
assertThat(notifications).hasSize(1);
- assertThat(notifications.get(0).getContent()).isEqualTo("SonarLint requires Java runtime version 11 or later to analyze Java code. Current version is 1.8.");
+ assertThat(notifications.get(0).getContent()).isEqualTo("SonarQube for IntelliJ requires Java runtime version 11 or later to analyze Java code. Current version is 1.8.");
}
@Test
@@ -93,9 +93,10 @@ void notifyIfSkippedLanguage_Node() {
AnalysisRequirementNotifications.notifyOnceForSkippedPlugins(getProject(), Language.JS, DidSkipLoadingPluginParams.SkipReason.UNSATISFIED_NODE_JS,
"8.0", "7.2");
assertThat(notifications).hasSize(1);
- assertThat(notifications.get(0).getContent()).isEqualTo("SonarLint requires Node.js runtime version 8.0 or later to analyze JavaScript code. Current version is 7.2. Please configure the Node.js path in the SonarLint settings.");
+ assertThat(notifications.get(0).getContent()).isEqualTo(
+ "SonarQube for IntelliJ requires Node.js runtime version 8.0 or later to analyze JavaScript code. Current version is 7.2. Please configure the Node.js path in the SonarQube for IntelliJ settings.");
assertThat(notifications.get(0).getActions()).hasSize(1);
- assertThat(notifications.get(0).getActions().get(0).getTemplatePresentation().getText()).isEqualTo("Open SonarLint Settings");
+ assertThat(notifications.get(0).getActions().get(0).getTemplatePresentation().getText()).isEqualTo("Open SonarQube for IntelliJ Settings");
}
}
diff --git a/src/test/java/org/sonarlint/intellij/notifications/SonarLintProjectNotificationsTests.kt b/src/test/java/org/sonarlint/intellij/notifications/SonarLintProjectNotificationsTests.kt
index aa8a64a1b7..58616ab5e3 100644
--- a/src/test/java/org/sonarlint/intellij/notifications/SonarLintProjectNotificationsTests.kt
+++ b/src/test/java/org/sonarlint/intellij/notifications/SonarLintProjectNotificationsTests.kt
@@ -70,11 +70,11 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
sonarLintProjectNotifications.notifyProjectBindingInvalidAndUnbound()
Assertions.assertThat(notifications).hasSize(1)
- Assertions.assertThat(notifications[0].title).isEqualTo("SonarLint - Invalid binding")
+ Assertions.assertThat(notifications[0].title).isEqualTo("SonarQube for IntelliJ - Invalid binding")
Assertions.assertThat(notifications[0].content)
.isEqualTo("Project binding is invalid and has been removed, the connection has probably been deleted previously.")
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.WARNING)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(1)
}
@@ -85,10 +85,10 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
sonarLintProjectNotifications.notifyLanguagePromotion(content)
Assertions.assertThat(notifications).hasSize(1)
- Assertions.assertThat(notifications[0].title).isEqualTo("SonarLint suggestions")
+ Assertions.assertThat(notifications[0].title).isEqualTo("SonarQube for IntelliJ suggestions")
Assertions.assertThat(notifications[0].content).isEqualTo(content)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.INFORMATION)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(4)
}
@@ -103,7 +103,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].content).isEqualTo(message)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.INFORMATION)
Assertions.assertThat(notifications[0].isExpired).isEqualTo(false)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions).isEmpty()
}
@@ -134,10 +134,10 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
sonarLintProjectNotifications.handle(param)
Assertions.assertThat(notifications).hasSize(1)
- Assertions.assertThat(notifications[0].title).isEqualTo("SonarQube Notification")
+ Assertions.assertThat(notifications[0].title).isEqualTo("SonarQube Server Notification")
Assertions.assertThat(notifications[0].content).isEqualTo("text")
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.INFORMATION)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.ICON_SONARQUBE_16)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.ICON_SONARQUBE_SERVER_16)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(2)
}
@@ -157,10 +157,10 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
sonarLintProjectNotifications.handle(param)
Assertions.assertThat(notifications).hasSize(1)
- Assertions.assertThat(notifications[0].title).isEqualTo("SonarCloud Notification")
+ Assertions.assertThat(notifications[0].title).isEqualTo("SonarQube Cloud Notification")
Assertions.assertThat(notifications[0].content).isEqualTo("text")
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.INFORMATION)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.ICON_SONARCLOUD_16)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.ICON_SONARQUBE_CLOUD_16)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(2)
}
@@ -175,7 +175,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].title).isBlank()
Assertions.assertThat(notifications[0].content).isEqualTo(content)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.INFORMATION)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions).isEmpty()
}
@@ -191,7 +191,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].title).isEqualTo(title)
Assertions.assertThat(notifications[0].content).isEqualTo(content)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.ERROR)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(1)
}
@@ -206,7 +206,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].title).isBlank()
Assertions.assertThat(notifications[0].content).isEqualTo(content)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.WARNING)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(1)
}
@@ -215,14 +215,14 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
sonarLintProjectNotifications.sendNotification()
Assertions.assertThat(notifications).hasSize(1)
- Assertions.assertThat(notifications[0].title).isEqualTo("SonarLint: secret(s) detected")
+ Assertions.assertThat(notifications[0].title).isEqualTo("SonarQube for IntelliJ: secret(s) detected")
Assertions.assertThat(notifications[0].content).isEqualTo(
- "SonarLint detected some secrets in one of the open files. " +
+ "SonarQube for IntelliJ detected some secrets in one of the open files. " +
"We strongly advise you to review those secrets and ensure they are not committed into repositories. " +
- "Please refer to the SonarLint tool window for more information."
+ "Please refer to the SonarQube for IntelliJ tool window for more information."
)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.WARNING)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions).isEmpty()
}
@@ -237,7 +237,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].title).isBlank()
Assertions.assertThat(notifications[0].content).isEqualTo(message)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.WARNING)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(1)
}
@@ -253,7 +253,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].title).isEqualTo(title)
Assertions.assertThat(notifications[0].content).isEqualTo(message)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.WARNING)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(2)
}
@@ -269,7 +269,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].title).isEqualTo(title)
Assertions.assertThat(notifications[0].content).isEqualTo(message)
Assertions.assertThat(notifications[0].type).isEqualTo(NotificationType.INFORMATION)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions.size).isEqualTo(1)
}
@@ -285,7 +285,7 @@ class SonarLintProjectNotificationsTests : AbstractSonarLintLightTests() {
Assertions.assertThat(notifications[0].title).isEqualTo(title)
Assertions.assertThat(notifications[0].content).isEqualTo(message)
Assertions.assertThat(notifications[0].type).isEqualTo(type)
- Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARLINT)
+ Assertions.assertThat(notifications[0].icon).isEqualTo(SonarLintIcons.SONARQUBE_FOR_INTELLIJ)
Assertions.assertThat(notifications[0].actions).isEmpty()
}
diff --git a/src/test/java/org/sonarlint/intellij/trigger/SonarLintCheckinHandlerTests.java b/src/test/java/org/sonarlint/intellij/trigger/SonarLintCheckinHandlerTests.java
index 518f7c06df..d6b6eb2e59 100644
--- a/src/test/java/org/sonarlint/intellij/trigger/SonarLintCheckinHandlerTests.java
+++ b/src/test/java/org/sonarlint/intellij/trigger/SonarLintCheckinHandlerTests.java
@@ -116,7 +116,7 @@ void testIssues() {
var result = handler.beforeCheckin(null, null);
assertThat(result).isEqualTo(CheckinHandler.ReturnResult.CLOSE_WINDOW);
- assertThat(messages).containsExactly("SonarLint analysis on 1 file found 1 issue");
+ assertThat(messages).containsExactly("SonarQube for IntelliJ analysis on 1 file found 1 issue");
ArgumentCaptor analysisResultCaptor = ArgumentCaptor.forClass(AnalysisResult.class);
verify(toolWindow, timeout(1000)).openReportTab(analysisResultCaptor.capture());
var analysisResult = analysisResultCaptor.getValue();
@@ -148,9 +148,10 @@ void testSecretsIssues() {
var result = handler.beforeCheckin(null, null);
assertThat(result).isEqualTo(CheckinHandler.ReturnResult.CLOSE_WINDOW);
- assertThat(messages).containsExactly("SonarLint analysis on 1 file found 1 issue\n" +
- "\n" +
- "SonarLint analysis found 1 secret. Committed secrets may lead to unauthorized system access.");
+ assertThat(messages).containsExactly("""
+ SonarQube for IntelliJ analysis on 1 file found 1 issue
+
+ SonarQube for IntelliJ analysis found 1 secret. Committed secrets may lead to unauthorized system access.""");
ArgumentCaptor analysisResultCaptor = ArgumentCaptor.forClass(AnalysisResult.class);
verify(toolWindow, timeout(1000)).openReportTab(analysisResultCaptor.capture());
var analysisResult = analysisResultCaptor.getValue();