]> source.dussan.org Git - sonarqube.git/commitdiff
SC-833 Update text about external PR analysis in AutoScan (#1907)
authorSiegfried Ehret <siegfried.ehret@sonarsource.com>
Wed, 10 Jul 2019 11:53:04 +0000 (13:53 +0200)
committerSonarTech <sonartech@sonarsource.com>
Wed, 10 Jul 2019 15:22:54 +0000 (17:22 +0200)
server/sonar-docs/src/pages/sonarcloud/autoscan.md
server/sonar-docs/src/tooltips/autoscan/caveats.md [new file with mode: 0644]
server/sonar-docs/src/tooltips/autoscan/limited-scope.md [new file with mode: 0644]
server/sonar-web/src/main/js/apps/tutorials/analyzeProject/configurations/AutoScanAlert.tsx

index 69b3c990709420b9fc11907f1856985fdc8b2814..e4171f9dc0dec907fd267763ac7cb2dcd4f7228f 100644 (file)
@@ -19,7 +19,7 @@ SonarCloud can autonomously scan your code, by simply reading it from your repos
 
 Once activated, SonarCloud will automatically analyze: 
 * the default branch of the repository
-* the pull requests (PR) on that default branch
+* the pull requests (PR)
 
 It will take care of doing it whenever you push on your repository.
 
diff --git a/server/sonar-docs/src/tooltips/autoscan/caveats.md b/server/sonar-docs/src/tooltips/autoscan/caveats.md
new file mode 100644 (file)
index 0000000..2006fc1
--- /dev/null
@@ -0,0 +1,6 @@
+No visual feedback (yet) in the UI.  
+Not supported: code coverage, import of external rule engine reports.
+
+---
+
+[Read more](https://sonarcloud.io/documentation/autoscan/) and join [the forum](https://community.sonarsource.com/tags/c/help/sc/autoscan) to ask your questions
diff --git a/server/sonar-docs/src/tooltips/autoscan/limited-scope.md b/server/sonar-docs/src/tooltips/autoscan/limited-scope.md
new file mode 100644 (file)
index 0000000..dcb88ca
--- /dev/null
@@ -0,0 +1,3 @@
+The following languages are currently supported:
+
+ABAP, Apex, CSS, Flex, Go, HTML, JS, Kotlin, PHP, Python, Ruby, Scala, Swift, TypeScript, TSQL, XML.
index 73616bc80d44fe5870f23026ac5699db6453d759..67a27489673f1385777719ad6339e5c831e0d6be 100644 (file)
@@ -23,26 +23,6 @@ import { Alert } from '../../../../components/ui/Alert';
 import DocTooltip from '../../../../components/docs/DocTooltip';
 import { translate } from '../../../../helpers/l10n';
 
-const caveats = {
-  default: `
-No visual feedback (yet) in the UI.  
-Only Pull Requests from the same repository are analyzed.  
-Not supported: code coverage, import of external rule engine reports.
-
----
-
-[Read more](https://sonarcloud.io/documentation/autoscan/) and join [the forum](https://community.sonarsource.com/tags/c/help/sc/autoscan) to ask your questions
-`
-};
-
-const limitedScope = {
-  default: `
-The following languages are currently supported:
-
-ABAP, Apex, CSS, Flex, Go, HTML, JS, Kotlin, PHP, Python, Ruby, Scala, Swift, TypeScript, TSQL, XML.
-`
-};
-
 export function AutoScanAlert() {
   return (
     <Alert className="big-spacer-top" variant="info">
@@ -54,13 +34,17 @@ export function AutoScanAlert() {
             caveats: (
               <>
                 <strong>{translate('onboarding.analysis.with.autoscan.alert.caveats')}</strong>{' '}
-                <DocTooltip doc={Promise.resolve(caveats)} />
+                <DocTooltip
+                  doc={import(/* webpackMode: "eager" */ 'Docs/tooltips/autoscan/caveats.md')}
+                />
               </>
             ),
             scopes: (
               <>
                 <strong>{translate('onboarding.analysis.with.autoscan.alert.scopes')}</strong>{' '}
-                <DocTooltip doc={Promise.resolve(limitedScope)} />
+                <DocTooltip
+                  doc={import(/* webpackMode: "eager" */ 'Docs/tooltips/autoscan/limited-scope.md')}
+                />
               </>
             )
           }}