我在sonarqube服务器4.5.6(Windows 7-32位)上使用sonar-runner-2.4。
我正在对示例c ++代码运行分析。 奇怪的是,控制台的输出仍然显示分析已完成。
但是.sonar文件夹中没有生成问题报告文件夹。
以下是运行sonar-runner
后控制台输出的片段 14:35:58.160 INFO - Store results in database
14:35:58.160 DEBUG - Execute org.sonar.batch.index.MeasurePersister
14:35:58.255 DEBUG - Execute org.sonar.batch.index.DuplicationPersister
14:35:58.260 DEBUG - Execute org.sonar.batch.index.ComponentDataPersister
14:35:58.280 DEBUG - Execute org.sonar.batch.issue.IssuePersister
14:35:58.285 DEBUG - Execute org.sonar.batch.phases.GraphPersister
14:35:58.350 INFO - ANALYSIS SUCCESSFUL, you can browse http://x.x.x.x:9000/dashboard/index/test_dummy
14:35:58.350 DEBUG - Evict preview database
14:35:58.350 DEBUG - Download: http://x.x.x.x:9000/batch_bootstrap/evict?project=1725 (no proxy)
14:35:58.425 DEBUG - Post-jobs : org.sonar.issuesreport.ReportJob@d718c1 -> org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob@19a2e83 -> org.sonar.plugins.core.batch.IndexProjectPostJob@163c13b -> org.sonar.plu
14:35:58.425 INFO - Executing post-job class org.sonar.issuesreport.ReportJob
14:35:58.425 INFO - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
14:35:58.425 INFO - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
14:35:58.450 INFO - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
14:35:58.460 INFO - -> Keep one snapshot per day between 2016-02-05 and 2016-03-03
14:35:58.460 INFO - -> Keep one snapshot per week between 2015-03-06 and 2016-02-05
14:35:58.460 INFO - -> Keep one snapshot per month between 2011-03-11 and 2015-03-06
14:35:58.465 INFO - -> Delete data prior to: 2011-03-11
14:35:58.470 DEBUG - ==> Preparing: select * from projects p where p.id=?
14:35:58.480 DEBUG - ==> Parameters: 1725(Long)
14:35:58.485 DEBUG - <== Total: 1
14:35:58.485 DEBUG - ==> Preparing: select * from projects where scope='PRJ' and root_id=?
14:35:58.485 DEBUG - ==> Parameters: 1725(Long)
14:35:58.490 DEBUG - <== Total: 0
14:35:58.490 INFO - -> Clean test_dummy [id=1725]
14:35:58.490 INFO - <- Clean snapshot 16948
14:35:58.640 DEBUG - Release semaphore on project : org.sonar.api.resources.Project@1e187ff[id=1725,key=test_dummy,qualifier=TRK], with key batch-test_dummy
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
Total time: 5.940s
Final Memory: 11M/109M
INFO: ------------------------------------------------------------------------
Sonar-project.properties文件
sonar.projectKey=test_dummy
sonar.projectName=test_dummy
sonar.projectVersion=1.0
sonar.sources=.
sonar.sourceEncoding=UTF-8
sonar.language=c++
在配置或一般情况下,我还有什么遗漏吗?
提前致谢...
答案 0 :(得分:0)
根据问题报告插件documentation:
要获取HTML报告,请将
func cycleSearch(adjacentNodes, node, visited): if (visited[node]): if (node == start): "found a path" return; visited[node]=YES; for child in adjacentNodes[node]: call cycleSearch(adjacentNodes,child,visited) visited[node]=NO;
属性设置为true
您也可以在SonarQube常规设置(“问题报告”部分)中默认启用此功能。