Kaynağa Gözat

SONAR-19761 Change documentation URL

tags/10.2.0.77647
Wouter Admiraal 8 ay önce
ebeveyn
işleme
c2b021b216
31 değiştirilmiş dosya ile 40 ekleme ve 40 silme
  1. 2
    2
      README.md
  2. 1
    1
      server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentProperty.java
  3. 1
    1
      server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentPropertyTest.java
  4. 2
    2
      server/sonar-web/src/main/js/app/components/__tests__/DocumentationRedirect-test.tsx
  5. 1
    1
      server/sonar-web/src/main/js/app/components/app-state/AppStateContext.tsx
  6. 1
    1
      server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap
  7. 1
    1
      server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx
  8. 1
    1
      server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap
  9. 1
    1
      server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap
  10. 1
    1
      server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx
  11. 1
    1
      server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotDisabledFilterTooltip-test.tsx.snap
  12. 1
    1
      server/sonar-web/src/main/js/helpers/mocks/definitions-list.ts
  13. 1
    1
      server/sonar-web/src/main/js/helpers/testMocks.ts
  14. 1
    1
      server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java
  15. 2
    2
      server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java
  16. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ListActionIT.java
  17. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/SetActionIT.java
  18. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ShowActionIT.java
  19. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/UnsetActionIT.java
  20. 1
    1
      server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/activity-example.json
  21. 1
    1
      server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/task-example.json
  22. 1
    1
      server/sonar-webserver-webapi/src/test/java/org/sonar/server/ui/ws/GlobalActionTest.java
  23. 1
    1
      server/sonar-webserver/src/main/java/org/sonar/server/platform/PlatformImpl.java
  24. 1
    1
      sonar-application/src/main/assembly/conf/sonar.properties
  25. 1
    1
      sonar-application/src/main/assembly/extensions/jdbc-driver/oracle/README.txt
  26. 1
    1
      sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
  27. 1
    1
      sonar-core/src/main/java/org/sonar/core/documentation/DefaultDocumentationLinkGenerator.java
  28. 2
    2
      sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java
  29. 2
    2
      sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
  30. 1
    1
      sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java
  31. 1
    1
      sonar-scanner-engine/src/test/java/org/sonar/scanner/rule/DefaultActiveRulesLoaderTest.java

+ 2
- 2
README.md Dosyayı Görüntüle

@@ -8,7 +8,7 @@ SonarQube provides the capability to not only show health of an application but

- [Website](https://www.sonarqube.org)
- [Download](https://www.sonarqube.org/downloads/)
- [Documentation](https://docs.sonarqube.org)
- [Documentation](https://docs.sonarsource.com/sonarqube)
- [Twitter](https://twitter.com/SonarQube)
- [SonarSource](https://www.sonarsource.com), author of SonarQube
- [Issue tracking](https://jira.sonarsource.com/browse/SONAR/), read-only. Only SonarSourcers can create tickets.
@@ -17,7 +17,7 @@ SonarQube provides the capability to not only show health of an application but

## Have Question or Feedback?

For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarqube.org) and then head to the [SonarSource Community](https://community.sonarsource.com/c/help/sq/10). The answer to your question has likely already been answered! 🤓
For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarsource.com/sonarqube) and then head to the [SonarSource Community](https://community.sonarsource.com/c/help/sq/10). The answer to your question has likely already been answered! 🤓

Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. 😄


+ 1
- 1
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentProperty.java Dosyayı Görüntüle

@@ -29,7 +29,7 @@ public class LogMessageIfSonarScimEnabledPresentProperty extends DataChange {

private static final Logger LOG = LoggerFactory.getLogger(LogMessageIfSonarScimEnabledPresentProperty.class);
public static final String SONAR_SCIM_ENABLED = "sonar.scim.enabled";
private static final String SCIM_DOC_URL = "https://docs.sonarqube.org/10.1/instance-administration/authentication/saml/scim/overview/";
private static final String SCIM_DOC_URL = "https://docs.sonarsource.com/sonarqube/10.1/instance-administration/authentication/saml/scim/overview/";

public LogMessageIfSonarScimEnabledPresentProperty(Database db) {
super(db);

+ 1
- 1
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentPropertyTest.java Dosyayı Görüntüle

@@ -62,7 +62,7 @@ public class LogMessageIfSonarScimEnabledPresentPropertyTest {
.containsExactly("'" + SONAR_SCIM_ENABLED + "' property is defined but not read anymore. Please read the upgrade notes" +
" for the instruction to upgrade. User provisioning is deactivated until reactivated from the SonarQube" +
" Administration Interface (\"General->Authentication\"). "
+ "See documentation: https://docs.sonarqube.org/10.1/instance-administration/authentication/saml/scim/overview/");
+ "See documentation: https://docs.sonarsource.com/sonarqube/10.1/instance-administration/authentication/saml/scim/overview/");
}

@Test

+ 2
- 2
server/sonar-web/src/main/js/app/components/__tests__/DocumentationRedirect-test.tsx Dosyayı Görüntüle

@@ -29,7 +29,7 @@ it('should redirect to static doc for specific version', async () => {

expect(await screen.findByRole('link')).toHaveAttribute(
'href',
'https://docs.sonarqube.org/10.0/land'
'https://docs.sonarsource.com/sonarqube/10.0/land'
);
});

@@ -38,7 +38,7 @@ it('should redirect to static doc for latest version', async () => {

expect(await screen.findByRole('link')).toHaveAttribute(
'href',
'https://docs.sonarqube.org/latest/land'
'https://docs.sonarsource.com/sonarqube/latest/land'
);
});


+ 1
- 1
server/sonar-web/src/main/js/app/components/app-state/AppStateContext.tsx Dosyayı Görüntüle

@@ -28,6 +28,6 @@ export const DEFAULT_APP_STATE = {
qualifiers: [],
settings: {},
version: '',
documentationUrl: 'https://docs.sonarqube.org/latest',
documentationUrl: 'https://docs.sonarsource.com/sonarqube/latest',
};
export const AppStateContext = React.createContext<AppState>(DEFAULT_APP_STATE);

+ 1
- 1
server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap Dosyayı Görüntüle

@@ -4,7 +4,7 @@ exports[`should set value correctly 1`] = `
<AppStateContextProvider
appState={
{
"documentationUrl": "https://docs.sonarqube.org/10.0",
"documentationUrl": "https://docs.sonarsource.com/sonarqube/10.0",
"edition": "community",
"productionDatabase": true,
"qualifiers": [

+ 1
- 1
server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx Dosyayı Görüntüle

@@ -50,7 +50,7 @@ export class PageUnavailableDueToIndexation extends React.PureComponent<WithInde
id="indexation.page_unavailable.description.additional_information"
values={{
link: (
<Link to="https://docs.sonarqube.org/latest/instance-administration/reindexing/">
<Link to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/">
{translate('learn_more')}
</Link>
),

+ 1
- 1
server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap Dosyayı Görüntüle

@@ -4,7 +4,7 @@ exports[`should render correctly and start polling if issue sync is needed 1`] =
<IndexationContextProvider
appState={
{
"documentationUrl": "https://docs.sonarqube.org/10.0",
"documentationUrl": "https://docs.sonarsource.com/sonarqube/10.0",
"edition": "community",
"needIssueSync": true,
"productionDatabase": true,

+ 1
- 1
server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap Dosyayı Görüntüle

@@ -21,7 +21,7 @@ exports[`should render correctly 1`] = `
values={
{
"link": <StandoutLink
to="https://docs.sonarqube.org/latest/instance-administration/reindexing/"
to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/"
>
learn_more
</StandoutLink>,

+ 1
- 1
server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx Dosyayı Görüntüle

@@ -425,7 +425,7 @@ export class SidebarClass extends React.PureComponent<Props> {
id="indexation.filters_unavailable"
values={{
link: (
<Link to="https://docs.sonarqube.org/latest/instance-administration/reindexing/">
<Link to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/">
{translate('learn_more')}
</Link>
),

+ 1
- 1
server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotDisabledFilterTooltip-test.tsx.snap Dosyayı Görüntüle

@@ -20,7 +20,7 @@ exports[`should render correctly and stop event propagation 1`] = `
</span>
<a
class="sw-ml-1"
href="https://docs.sonarqube.org/latest/instance-administration/reindexing/"
href="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/"
rel="noopener noreferrer"
target="_blank"
>

+ 1
- 1
server/sonar-web/src/main/js/helpers/mocks/definitions-list.ts Dosyayı Görüntüle

@@ -554,7 +554,7 @@ export const definitions: ExtendedSettingDefinition[] = [
key: 'sonar.cobol.aucobol.preprocessor.directives.default',
name: 'AcuCobol preprocessor default directives',
description:
'This property allows to set preprocessor directives used to compile every COBOL program. See the \'ACUCOBOL-GT Source Code Control directives\' section in the <a target="_blank" href="http://docs.sonarqube.org/display/PLUG/COBOL+Plugin+Advanced+Configuration">documentation of the plugin</a>.',
'This property allows to set preprocessor directives used to compile every COBOL program. See the \'ACUCOBOL-GT Source Code Control directives\' section in the <a target="_blank" href="http://docs.sonarsource.com/sonarqube/display/PLUG/COBOL+Plugin+Advanced+Configuration">documentation of the plugin</a>.',
category: 'COBOL',
subCategory: 'Preprocessor',
options: [],

+ 1
- 1
server/sonar-web/src/main/js/helpers/testMocks.ts Dosyayı Görüntüle

@@ -82,7 +82,7 @@ export function mockAppState(overrides: Partial<AppState> = {}): AppState {
qualifiers: ['TRK'],
settings: {},
version: '1.0',
documentationUrl: 'https://docs.sonarqube.org/10.0',
documentationUrl: 'https://docs.sonarsource.com/sonarqube/10.0',
...overrides,
};
}

+ 1
- 1
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java Dosyayı Görüntüle

@@ -52,7 +52,7 @@ public class DatabaseServerCompatibility implements Startable {
}

String msg = "The database must be manually upgraded. Please backup the database and browse /setup. "
+ "For more information: https://docs.sonarqube.org/latest/setup/upgrading";
+ "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading";
LoggerFactory.getLogger(DatabaseServerCompatibility.class).warn(msg);
Logger logger = LoggerFactory.getLogger(STARTUP_LOGGER_NAME);
logger.warn(HIGHLIGHTER);

+ 2
- 2
server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java Dosyayı Görüntüle

@@ -69,10 +69,10 @@ public class DatabaseServerCompatibilityTest {
assertThat(logTester.logs()).hasSize(4);
assertThat(logTester.logs(Level.WARN)).contains(
"The database must be manually upgraded. Please backup the database and browse /setup. "
+ "For more information: https://docs.sonarqube.org/latest/setup/upgrading",
+ "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading",
"################################################################################",
"The database must be manually upgraded. Please backup the database and browse /setup. "
+ "For more information: https://docs.sonarqube.org/latest/setup/upgrading",
+ "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading",
"################################################################################");
}


+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ListActionIT.java Dosyayı Görüntüle

@@ -93,7 +93,7 @@ public class ListActionIT {

@Before
public void setup() {
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
ws = new WsActionTester(new ListAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
}

@@ -102,7 +102,7 @@ public class ListActionIT {

WebService.Action definition = ws.getDef();

assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");

assertThat(definition.key()).isEqualTo("list");
assertThat(definition.isInternal()).isFalse();

+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/SetActionIT.java Dosyayı Görüntüle

@@ -79,7 +79,7 @@ public class SetActionIT {

@Before
public void setup() {
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
ws = new WsActionTester(new SetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
}

@@ -87,7 +87,7 @@ public class SetActionIT {
public void test_definition() {
WebService.Action definition = ws.getDef();

assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");

assertThat(definition.key()).isEqualTo("set");
assertThat(definition.isInternal()).isFalse();

+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ShowActionIT.java Dosyayı Görüntüle

@@ -65,7 +65,7 @@ public class ShowActionIT {

@Before
public void setup() {
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/latest/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");
ws = new WsActionTester(new ShowAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
}

@@ -73,7 +73,7 @@ public class ShowActionIT {
public void test_definition() {
WebService.Action definition = ws.getDef();

assertThat(definition.description()).contains("https://docs.sonarqube.org/latest/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");

assertThat(definition.key()).isEqualTo("show");
assertThat(definition.isInternal()).isFalse();

+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/UnsetActionIT.java Dosyayı Görüntüle

@@ -69,7 +69,7 @@ public class UnsetActionIT {

@Before
public void setup(){
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
ws = new WsActionTester(new UnsetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
}

@@ -77,7 +77,7 @@ public class UnsetActionIT {
public void test_definition() {
WebService.Action definition = ws.getDef();

assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");

assertThat(definition.key()).isEqualTo("unset");
assertThat(definition.isInternal()).isFalse();

+ 1
- 1
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/activity-example.json Dosyayı Görüntüle

@@ -18,7 +18,7 @@
"warningCount": 2,
"warnings": [
"The properties \u0027sonar.login\u0027 and \u0027sonar.password\u0027 are deprecated and will be removed in the future. Please pass a token with the \u0027sonar.token\u0027 property instead.",
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to \u003ca href\u003d\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel\u003d\"noopener noreferrer\" target\u003d\"_blank\"\u003ethe documentation\u003c/a\u003e."
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to \u003ca href\u003d\"https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scm-integration/\" rel\u003d\"noopener noreferrer\" target\u003d\"_blank\"\u003ethe documentation\u003c/a\u003e."
]
},
{

+ 1
- 1
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/task-example.json Dosyayı Görüntüle

@@ -17,7 +17,7 @@
"warningCount": 2,
"warnings": [
"The properties 'sonar.login' and 'sonar.password' are deprecated and will be removed in the future. Please pass a token with the 'sonar.token' property instead.",
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href=\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel=\"noopener noreferrer\" target=\"_blank\">the documentation</a>."
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href=\"https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scm-integration/\" rel=\"noopener noreferrer\" target=\"_blank\">the documentation</a>."
]
}
}

+ 1
- 1
server/sonar-webserver-webapi/src/test/java/org/sonar/server/ui/ws/GlobalActionTest.java Dosyayı Görüntüle

@@ -330,7 +330,7 @@ public class GlobalActionTest {
@Test
public void call_shouldReturnDocumentationUrl() {
init();
String url = "https://docs.sonarqube.org/10.0";
String url = "https://docs.sonarsource.com/sonarqube/10.0";
when(documentationLinkGenerator.getDocumentationLink(null)).thenReturn(url);

String json = call();

+ 1
- 1
server/sonar-webserver/src/main/java/org/sonar/server/platform/PlatformImpl.java Dosyayı Görüntüle

@@ -100,7 +100,7 @@ public class PlatformImpl implements Platform {

// if AutoDbMigration kicked in or no DB migration was required, startup can be resumed in another thread
if (dbRequiresMigration()) {
LOGGER.info("Database needs to be migrated. Please refer to https://docs.sonarqube.org/latest/setup/upgrading");
LOGGER.info("Database needs to be migrated. Please refer to https://docs.sonarsource.com/sonarqube/latest/setup/upgrading");
} else {
this.autoStarter = createAutoStarter();


+ 1
- 1
sonar-application/src/main/assembly/conf/sonar.properties Dosyayı Görüntüle

@@ -10,7 +10,7 @@
# - be overridden by environment variables. The name of the corresponding environment variable is the
# upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by
# underscores ('_'). For example, to override 'sonar.web.systemPasscode' use 'SONAR_WEB_SYSTEMPASSCODE'.
# - be encrypted. See https://docs.sonarqube.org/latest/instance-administration/security/#settings-encryption
# - be encrypted. See https://docs.sonarsource.com/sonarqube/latest/instance-administration/security/#settings-encryption

#--------------------------------------------------------------------------------------------------
# DATABASE

+ 1
- 1
sonar-application/src/main/assembly/extensions/jdbc-driver/oracle/README.txt Dosyayı Görüntüle

@@ -1,2 +1,2 @@
Please copy an Oracle JDBC driver in this directory. See compatible versions at https://docs.sonarqube.org/latest/requirements/prerequisites-and-overview/.
Please copy an Oracle JDBC driver in this directory. See compatible versions at https://docs.sonarsource.com/sonarqube/latest/requirements/prerequisites-and-overview/.
Note that only a single JAR file is accepted. A failure is raised at startup if multiple JAR files are available.

+ 1
- 1
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java Dosyayı Görüntüle

@@ -124,7 +124,7 @@ public class CorePropertyDefinitions {
.build(),
PropertyDefinition.builder(DOCUMENTATION_BASE_URL)
.name("Base URL of the documentation")
.description("Base URL to be used in SonarQube documentation links, such as <i>https://docs.sonarqube.org/</i>")
.description("Base URL to be used in SonarQube documentation links, such as <i>https://docs.sonarsource.com/sonarqube/</i>")
.defaultValue(DefaultDocumentationLinkGenerator.DOCUMENTATION_PUBLIC_URL)
.hidden()
.type(STRING)

+ 1
- 1
sonar-core/src/main/java/org/sonar/core/documentation/DefaultDocumentationLinkGenerator.java Dosyayı Görüntüle

@@ -27,7 +27,7 @@ import org.sonar.core.config.CorePropertyDefinitions;
import org.sonar.core.platform.SonarQubeVersion;

public class DefaultDocumentationLinkGenerator implements DocumentationLinkGenerator {
public static final String DOCUMENTATION_PUBLIC_URL = "https://docs.sonarqube.org/";
public static final String DOCUMENTATION_PUBLIC_URL = "https://docs.sonarsource.com/sonarqube/";

private final String documentationBaseUrl;


+ 2
- 2
sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java Dosyayı Görüntüle

@@ -27,8 +27,8 @@ import java.util.regex.Pattern;
/**
* Markdown interprets text in brackets followed by text in parentheses to generate documented links.
*
* E.g., the input [See documentation](http://docs.sonarqube.org/display/SONAR) will produce
* {@literal<a href="http://docs.sonarqube.org/display/SONAR">}See documentation{@literal</a>}
* E.g., the input [See documentation](http://docs.sonarsource.com/sonarqube/display/SONAR) will produce
* {@literal<a href="http://docs.sonarsource.com/sonarqube/display/SONAR">}See documentation{@literal</a>}
*/
class HtmlLinkChannel extends RegexChannel<MarkdownOutput> {


+ 2
- 2
sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java Dosyayı Görüntüle

@@ -39,8 +39,8 @@ public class MarkdownTest {

@Test
public void shouldDecorateDocumentedLink() {
assertThat(Markdown.convertToHtml("For more details, please [check online documentation](http://docs.sonarqube.org/display/SONAR)."))
.isEqualTo("For more details, please <a href=\"http://docs.sonarqube.org/display/SONAR\" target=\"_blank\" rel=\"noopener noreferrer\">check online documentation</a>.");
assertThat(Markdown.convertToHtml("For more details, please [check online documentation](http://docs.sonarsource.com/sonarqube/display/SONAR)."))
.isEqualTo("For more details, please <a href=\"http://docs.sonarsource.com/sonarqube/display/SONAR\" target=\"_blank\" rel=\"noopener noreferrer\">check online documentation</a>.");
}



+ 1
- 1
sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java Dosyayı Görüntüle

@@ -103,7 +103,7 @@ public class DefaultActiveRulesLoader implements ActiveRulesLoader {
ActiveList activeList = actives.get(r.getKey());
if (activeList == null) {
throw MessageException.of("Elasticsearch indices have become inconsistent. Consider re-indexing. " +
"Check documentation for more information https://docs.sonarqube.org/latest/setup/troubleshooting");
"Check documentation for more information https://docs.sonarsource.com/sonarqube/latest/setup/troubleshooting");
}
Active active = activeList.getActiveList(0);


+ 1
- 1
sonar-scanner-engine/src/test/java/org/sonar/scanner/rule/DefaultActiveRulesLoaderTest.java Dosyayı Görüntüle

@@ -98,7 +98,7 @@ public class DefaultActiveRulesLoaderTest {
assertThatThrownBy(() -> loader.load("c+-test_c+-values-17445"))
.isInstanceOf(MessageException.class)
.hasMessage("Elasticsearch indices have become inconsistent. Consider re-indexing. " +
"Check documentation for more information https://docs.sonarqube.org/latest/setup/troubleshooting");
"Check documentation for more information https://docs.sonarsource.com/sonarqube/latest/setup/troubleshooting");
}

private String urlOfPage(int page) {

Loading…
İptal
Kaydet