SonarQube在仪表板中不显示XQuery分析报告

时间:2019-03-26 12:05:42

标签: sonarqube xquery sonarscanner

我正在使用SonarQube服务器测试XQuery代码。我希望分析报告将显示在SonarQube仪表板中,在那里我可以清楚地看到问题,错误/重复等内容。

我正在使用以下工具: 1)SOnarQube-5.6.7 2)声纳扫描仪-sonar-scanner-3.3.0.1492-windows 3)Sonar XQuery插件-2.0 4)使用maven创建插件。

我已经创建了XQuery声纳插件,如以下链接所述:https://github.com/malteseduck/sonar-xquery-plugin

我已将此插件添加到“ SonarQube server 5.6 / extensions / plugins”文件夹中。

已使用-sonar.host.url = {http://localhost:9000

将sonar-scanner.propeties文件更改为指向SonrQube。

已将sonar-project.properties更改为以下值:

sonar.projectKey = xray sonar.projectName = XQuery单元测试sonar.projectVersion = 2.0 sonar.sources = xquery / sonar.tests = target / sonar.language = xquery

启动SonarQube并使用以下声纳扫描仪的以下命令从主测试文件夹运行测试。

在扫描仪控制台上获取以下输出-

D:\Shweta Mohite\SonarQube_Xquery_Code_Test>sonar-scanner
INFO: Scanner configuration file: D:\Shweta Mohite\sonar-scanner-3.3.0.1492-windows\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\Shweta Mohite\SonarQube_Xquery_Code_Test\sonar-project.properties
INFO: SonarQube Scanner 3.3.0.1492
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Windows Server 2008 R2 6.1 amd64
INFO: User cache: C:\Users\shweta.mohite\.sonar\cache
INFO: SonarQube server 5.6.7
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Load global repositories
INFO: Load global repositories (done) | time=286ms
INFO: User cache: C:\Users\shweta.mohite\.sonar\cache
INFO: Load plugins index
INFO: Load plugins index (done) | time=14ms
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=281ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=157ms
INFO: Load active rules
INFO: Load active rules (done) | time=1003ms
INFO: Publish mode
INFO: -------------  Scan Xquery Test 2
INFO: Language is forced to xquery
INFO: Load server rules
INFO: Load server rules (done) | time=158ms
INFO: Base dir: D:\Shweta Mohite\SonarQube_Xquery_Code_Test
INFO: Working dir: D:\Shweta Mohite\SonarQube_Xquery_Code_Test\.scannerwork
INFO: Source paths: xquery
INFO: Test paths: target
INFO: Source encoding: UTF-8, default locale: en_US
INFO: Index files
INFO: 1 files indexed
INFO: Quality profile for xquery: Default Profile
INFO: JaCoCoSensor: JaCoCo report not found : D:\Shweta Mohite\SonarQube_Xquery_Code_Test\target\jacoco.exec
INFO: JaCoCoItSensor: JaCoCo IT report not found: D:\Shweta Mohite\SonarQube_Xquery_Code_Test\target\jacoco-it.exec
INFO: Sensor Lines Sensor
INFO: Sensor Lines Sensor (done) | time=47ms
INFO: Sensor org.sonar.plugins.xquery.XQuerySensor
Mar 26, 2019 10:00:04 AM org.sonar.plugins.xquery.XQuerySensor analyse
INFO: Scanning all files to map dependencies
 - line 142: 4 - no viable alternative at input '(\n    (: Check for existence of expected EBM message. :)\n    if (fn:exists($ebm)) then ()\n    else\n
 - line 139: 179 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM")'
 - line 144: 166 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM/EBMHeader/EBMID")'
 - line 148: 162 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM/EBMHeader/RequestEBMID")'
 - line 153: 212 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM/DataArea/ProcessFulfillmentOrderUpdate/Identification/BusinessCompo
 - line 156: 38 - mismatched input '(' expecting {'=', '!=', '[', '}', '*', '+', '-', ',', '/', '//', '|', '||', '!', '<', '>', '=>', 'and', 'cast', 'ca
 - line 518: 161 - no viable alternative at input '(\n        (:arathi.purohit Fix for Poison order start:)\n        for $orderLine in $orderHeader/*:Sa
estamp := fn:timezone-from-dateTime(xs:dateTime(fn:normalize-space($line/salesord:SalesOrderSchedule/salesord:PurchaseDate/text())))\n                re
 - line 347: 108 - no viable alternative at input '"Malformed Orders from Siebel")'
 - line 386: 46 - mismatched input '(' expecting {'=', '!=', '[', '}', '*', '+', '-', ',', '/', '//', '|', '||', '!', '<', '>', '=>', 'and', 'cast', 'ca
Mar 26, 2019 10:00:05 AM org.sonar.plugins.xquery.XQuerySensor analyse
INFO: Scanning all files and gathering metrics
 - line 142: 4 - no viable alternative at input '(\n    (: Check for existence of expected EBM message. :)\n    if (fn:exists($ebm)) then ()\n    else\n
 - line 139: 179 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM")'
 - line 144: 166 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM/EBMHeader/EBMID")'
 - line 148: 162 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM/EBMHeader/RequestEBMID")'
 - line 153: 212 - no viable alternative at input '"ProcessFulfillmentOrderUpdateEBM/DataArea/ProcessFulfillmentOrderUpdate/Identification/BusinessCompo
 - line 156: 38 - mismatched input '(' expecting {'=', '!=', '[', '}', '*', '+', '-', ',', '/', '//', '|', '||', '!', '<', '>', '=>', 'and', 'cast', 'ca
 - line 518: 161 - no viable alternative at input '(\n        (:arathi.purohit Fix for Poison order start:)\n        for $orderLine in $orderHeader/*:Sa
estamp := fn:timezone-from-dateTime(xs:dateTime(fn:normalize-space($line/salesord:SalesOrderSchedule/salesord:PurchaseDate/text())))\n                re
 - line 347: 108 - no viable alternative at input '"Malformed Orders from Siebel")'
 - line 386: 46 - mismatched input '(' expecting {'=', '!=', '[', '}', '*', '+', '-', ',', '/', '//', '|', '||', '!', '<', '>', '=>', 'and', 'cast', 'ca
INFO: Sensor org.sonar.plugins.xquery.XQuerySensor (done) | time=1614ms
INFO: Sensor XQueryTestSensor
INFO: parsing target\xqtest-reports
INFO: Sensor XQueryTestSensor (done) | time=1ms
INFO: Sensor SCM Sensor
INFO: SCM Publisher is disabled
INFO: Sensor SCM Sensor (done) | time=0ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=11msa
INFO: Sensor Code Colorizer Sensor
INFO: Sensor Code Colorizer Sensor (done) | time=90ms
INFO: Sensor CPD Block Indexer
INFO: DefaultCpdBlockIndexer is used for xquery
INFO: Sensor CPD Block Indexer (done) | time=1ms
INFO: Calculating CPD for 0 files
INFO: CPD calculation finished
INFO: Analysis report generated in 92ms, dir size=92 KB
INFO: Analysis reports compressed in 25ms, zip size=18 KB
INFO: Analysis report uploaded in 154ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/my:xquerytest2
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWm5cVZyw2B_cH2zwsRU
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 10.135s
INFO: Final Memory: 10M/361M

我希望输出显示在SonarQube仪表板上。但是分析输出在声纳扫描仪控制台上显示为INFO级别。

我需要帮助以防万一,或者需要通过进行一些设置将分析报告发送到SonarQube?

0 个答案:

没有答案