From f16c3a1f8dfab8ade4df0af546a0dc2a9d976a4d Mon Sep 17 00:00:00 2001 From: Vasileios Naskos Date: Tue, 3 Dec 2024 16:10:46 +0100 Subject: [PATCH] SLVS-1599 Update documentation links to match the rebranding --- src/Core/DocumentationLinks.cs | 30 +++++++++---------- .../XamlGenerator/XamlGeneratorHelperTests.cs | 5 +--- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/Core/DocumentationLinks.cs b/src/Core/DocumentationLinks.cs index 44f562ce7..1d51fc90e 100644 --- a/src/Core/DocumentationLinks.cs +++ b/src/Core/DocumentationLinks.cs @@ -25,21 +25,21 @@ namespace SonarLint.VisualStudio.Core /// public static class DocumentationLinks { - public const string HomePage = "https://docs.sonarsource.com/sonarlint/visual-studio/"; - public const string LanguageSpecificRequirements = "https://docs.sonarsource.com/sonarlint/visual-studio/getting-started/requirements/#language-specific-requirements"; - public const string LanguageSpecificRequirements_JsTs = "https://docs.sonarsource.com/sonarlint/visual-studio/getting-started/requirements/#nodejs-prerequisites-for-js-and-ts"; - public const string MigrateToConnectedModeV7 = "https://docs.sonarsource.com/sonarlint/visual-studio/team-features/migrate-connected-mode-to-v7/"; - public const string MigrateToConnectedModeV7_NotesForTfvcUsers = "https://docs.sonarsource.com/sonarlint/visual-studio/team-features/migrate-connected-mode-to-v7/#notes-for-tfvc-users"; - public const string ConnectedMode = "https://docs.sonarsource.com/sonarlint/visual-studio/team-features/connected-mode/"; - public const string TaintVulnerabilities = "https://docs.sonarsource.com/sonarlint/visual-studio/using-sonarlint/taint-vulnerabilities/"; - public const string DisablingARule = "https://docs.sonarsource.com/sonarlint/visual-studio/using-sonarlint/rules/#disabling-a-rule"; - public const string UseSharedBinding = "https://docs.sonarsource.com/sonarlint/visual-studio/team-features/connected-mode-setup/#bind-using-shared-configuration"; - public const string SetupSharedBinding = "https://docs.sonarsource.com/sonarlint/visual-studio/team-features/connected-mode-setup/#save-the-connection-binding"; - public const string CleanCode = "https://docs.sonarsource.com/sonarlint/visual-studio/concepts/clean-code/introduction"; - public const string OpenInIdeIssueLocation = "https://docs.sonarsource.com/sonarlint/visual-studio/troubleshooting/#no-matching-issue-found"; - public const string OpenInIdeBindingSetup = "https://docs.sonarsource.com/sonarlint/visual-studio/troubleshooting/#no-matching-project-found"; - public const string UnbindingProject = "https://docs.sonarsource.com/sonarlint/visual-studio/team-features/connected-mode-setup/#unbinding-a-project"; - + public const string HomePage = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/"; + public const string LanguageSpecificRequirements = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/getting-started/requirements/#language-specific-requirements"; + public const string LanguageSpecificRequirements_JsTs = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/getting-started/requirements/#nodejs-prerequisites-for-js-and-ts"; + public const string MigrateToConnectedModeV7 = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/team-features/migrate-connected-mode-to-v7/"; + public const string MigrateToConnectedModeV7_NotesForTfvcUsers = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/team-features/migrate-connected-mode-to-v7/#notes-for-tfvc-users"; + public const string ConnectedMode = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/team-features/connected-mode/"; + public const string TaintVulnerabilities = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/using-sonarlint/taint-vulnerabilities/"; + public const string DisablingARule = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/using-sonarlint/rules/#disabling-a-rule"; + public const string UseSharedBinding = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/team-features/connected-mode-setup/#bind-using-shared-configuration"; + public const string SetupSharedBinding = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/team-features/connected-mode-setup/#save-the-connection-binding"; + public const string CleanCode = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/concepts/clean-code/introduction"; + public const string OpenInIdeIssueLocation = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/troubleshooting/#no-matching-issue-found"; + public const string OpenInIdeBindingSetup = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/troubleshooting/#no-matching-project-found"; + public const string UnbindingProject = "https://docs.sonarsource.com/sonarqube-for-ide/visual-studio/team-features/connected-mode-setup/#unbinding-a-project"; + public static readonly Uri UnbindingProjectUri = new(UnbindingProject); public static readonly Uri ConnectedModeUri = new(ConnectedMode); } diff --git a/src/Education.UnitTests/XamlGenerator/XamlGeneratorHelperTests.cs b/src/Education.UnitTests/XamlGenerator/XamlGeneratorHelperTests.cs index 61e08e061..e2b5c3c8b 100644 --- a/src/Education.UnitTests/XamlGenerator/XamlGeneratorHelperTests.cs +++ b/src/Education.UnitTests/XamlGenerator/XamlGeneratorHelperTests.cs @@ -18,11 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -using System.Collections.Generic; using System.Text; using System.Xml; -using FluentAssertions; -using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using SonarLint.VisualStudio.Core.Analysis; using SonarLint.VisualStudio.Education.Rule; @@ -132,7 +129,7 @@ public void WriteDocumentHeaderAndEndDocument_ProduceCorrectStructure_NewCCT() - Learn more about Clean Code + Learn more about Clean Code