);
}
diff --git a/server/sonar-web/src/main/js/apps/about/components/__tests__/AboutScanners-test.tsx b/server/sonar-web/src/main/js/apps/about/components/__tests__/AboutScanners-test.tsx
new file mode 100644
index 00000000000..52245dbbc7f
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/about/components/__tests__/AboutScanners-test.tsx
@@ -0,0 +1,32 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2020 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import { shallow } from 'enzyme';
+import * as React from 'react';
+import AboutScanners from '../AboutScanners';
+
+it('should render correctly', () => {
+ const wrapper = shallowRender();
+ expect(wrapper).toMatchSnapshot();
+});
+
+function shallowRender() {
+ return shallow();
+}
diff --git a/server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutScanners-test.tsx.snap b/server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutScanners-test.tsx.snap
new file mode 100644
index 00000000000..ad4dd1080e0
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutScanners-test.tsx.snap
@@ -0,0 +1,108 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`should render correctly 1`] = `
+
+
+ about_page.scanners
+
+
+
+ about_page.scanners.text
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`;
diff --git a/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionForm.tsx b/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionForm.tsx
index b3448b76492..a36c8bc80b8 100644
--- a/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionForm.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/encryption/EncryptionForm.tsx
@@ -19,6 +19,7 @@
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
+import { Link } from 'react-router';
import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
import { ClipboardButton } from 'sonar-ui-common/components/controls/clipboard';
import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
@@ -128,12 +129,9 @@ export default class EncryptionForm extends React.PureComponent {
id="encryption.form_note"
values={{
moreInformationLink: (
-
+
{translate('more_information')}
-
+
)
}}
/>
diff --git a/server/sonar-web/src/main/js/apps/settings/encryption/GenerateSecretKeyForm.tsx b/server/sonar-web/src/main/js/apps/settings/encryption/GenerateSecretKeyForm.tsx
index 0853dc4494c..b8d229d6a98 100644
--- a/server/sonar-web/src/main/js/apps/settings/encryption/GenerateSecretKeyForm.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/encryption/GenerateSecretKeyForm.tsx
@@ -19,6 +19,7 @@
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
+import { Link } from 'react-router';
import { SubmitButton } from 'sonar-ui-common/components/controls/buttons';
import { ClipboardButton } from 'sonar-ui-common/components/controls/clipboard';
import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner';
@@ -111,12 +112,9 @@ export default class GenerateSecretKeyForm extends React.PureComponent
+
{translate('more_information')}
-
+
)
}}
/>
diff --git a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap
index c61cdf87c6d..ca902a240e6 100644
--- a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap
@@ -51,13 +51,14 @@ exports[`should render correctly 1`] = `
id="encryption.form_note"
values={
Object {
- "moreInformationLink":
more_information
- ,
+ ,
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap
index 664a3d0e7dc..5671ceec700 100644
--- a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap
@@ -16,13 +16,14 @@ exports[`should render correctly 1`] = `
id="encryption.secret_key_description"
values={
Object {
- "moreInformationLink":
more_information
- ,
+ ,
}
}
/>
diff --git a/server/sonar-web/src/main/js/components/tutorials/manual/commands/DotNet.tsx b/server/sonar-web/src/main/js/components/tutorials/manual/commands/DotNet.tsx
index e33ea195efa..cb69448c200 100644
--- a/server/sonar-web/src/main/js/components/tutorials/manual/commands/DotNet.tsx
+++ b/server/sonar-web/src/main/js/components/tutorials/manual/commands/DotNet.tsx
@@ -19,6 +19,7 @@
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
+import { Link } from 'react-router';
import { translate } from 'sonar-ui-common/helpers/l10n';
import CodeSnippet from '../../../common/CodeSnippet';
import InstanceMessage from '../../../common/InstanceMessage';
@@ -64,12 +65,9 @@ export default function DotNet(props: Props) {
id="onboarding.analysis.docs"
values={{
link: (
-
+
{translate('onboarding.analysis.msbuild.docs_link')}
-
+
)
}}
/>
diff --git a/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaGradle.tsx b/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaGradle.tsx
index 8a3be3f0034..8358364358d 100644
--- a/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaGradle.tsx
+++ b/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaGradle.tsx
@@ -19,6 +19,7 @@
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
+import { Link } from 'react-router';
import { translate } from 'sonar-ui-common/helpers/l10n';
import CodeSnippet from '../../../common/CodeSnippet';
import InstanceMessage from '../../../common/InstanceMessage';
@@ -69,12 +70,9 @@ export default function JavaGradle(props: Props) {
id="onboarding.analysis.docs"
values={{
link: (
-
+
{translate('onboarding.analysis.java.gradle.docs_link')}
-
+
)
}}
/>
diff --git a/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaMaven.tsx b/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaMaven.tsx
index 488fb76aa72..060b0d3863e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaMaven.tsx
+++ b/server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaMaven.tsx
@@ -19,6 +19,7 @@
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
+import { Link } from 'react-router';
import { translate } from 'sonar-ui-common/helpers/l10n';
import CodeSnippet from '../../../common/CodeSnippet';
import InstanceMessage from '../../../common/InstanceMessage';
@@ -52,12 +53,9 @@ export default function JavaMaven(props: Props) {
id="onboarding.analysis.docs"
values={{
link: (
-
+
{translate('onboarding.analysis.java.maven.docs_link')}
-
+
)
}}
/>
diff --git a/server/sonar-web/src/main/js/components/tutorials/manual/commands/MSBuildScanner.tsx b/server/sonar-web/src/main/js/components/tutorials/manual/commands/MSBuildScanner.tsx
index 9ff8c9a4be2..f4f4195fd1e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/manual/commands/MSBuildScanner.tsx
+++ b/server/sonar-web/src/main/js/components/tutorials/manual/commands/MSBuildScanner.tsx
@@ -19,6 +19,7 @@
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
+import { Link } from 'react-router';
import { translate } from 'sonar-ui-common/helpers/l10n';
interface Props {
@@ -37,13 +38,12 @@ export default function MSBuildScanner(props: Props) {
/>
`;
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index 82a366f2f12..2a9fe575fa3 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -3278,7 +3278,6 @@ onboarding.analysis.java.maven.text.custom=Run the following command in your pro
onboarding.analysis.java.maven.text.custom.ci=Run the following command in the project's folder.
onboarding.analysis.java.maven.header.sonarcloud=Execute the Scanner for Maven from Travis
onboarding.analysis.java.maven.text.sonarcloud=Add the following lines to your .travis.yml file:
-onboarding.analysis.java.maven.docs.sonarcloud=Please visit the official documentation of the Scanner for Maven for more details, and the live Maven-based example project to know more about this use case.
onboarding.analysis.java.gradle.header=Execute the Scanner for Gradle from your computer
onboarding.analysis.java.gradle.header.ci=Execute the Scanner for Gradle from your CI
@@ -3298,7 +3297,6 @@ onboarding.analysis.msbuild.header.sonarcloud=Download and unzip the Scanner for
onboarding.analysis.msbuild.text.sonarcloud=And add the executable's directory to the %PATH% environment variable
onboarding.analysis.msbuild.execute.sonarcloud=Execute the Scanner for MSBuild from your computer
onboarding.analysis.msbuild.execute.text.sonarcloud=Execute the following commands at the root of your solution.
-onboarding.analysis.msbuild.docs.sonarcloud=Please visit the official documentation of the Scanner for MSBuild for more details.
onboarding.analysis.sq_scanner.header.linux=Download and unzip the Scanner for Linux
onboarding.analysis.sq_scanner.header.win=Download and unzip the Scanner for Windows
@@ -3315,7 +3313,6 @@ onboarding.analysis.sq_scanner.execute.text.custom=Run the following commands in
onboarding.analysis.sq_scanner.docs=Please visit the {link} for more details.
onboarding.analysis.sq_scanner.docs_use_case=Please visit the {link} for more details, and the {useCaseLink} to know more about this use case.
onboarding.analysis.sq_scanner.docs_link=official documentation of the Scanner
-onboarding.analysis.standard.docs=Please visit the official documentation of the Scanner for more details, and the live standard example project to know more about this use case.
onboarding.analysis.sqscanner.docs.gradle.title=official documentation of the Scanner for Gradle
onboarding.analysis.sqscanner.docs.gradle.example_project.title=live Gradle-based example project
--
2.39.5