hmvictor / radar-netbeans

A SonarQube plugin for Netbeans
Other
33 stars 22 forks source link

Incremental mode not working (SonarQube 4.0+) #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Software:
NetBeans 8.0.1
SonarQube Server 4.4

What steps will reproduce the problem?
1. Install radar-netbeans from NetBeans Plugin Portal 
(http://plugins.netbeans.org/plugin/51532/radar-netbeans)
2. Modify analysis mode from Preview to Incremental
3. Right click on project and select "Get Issues with Sonar Runner"
4. Output shows the following:
        Starting sonar-runner
        INFO: SonarQube Server 4.4
        12:43:19.973 WARN  - Property sonar.dryRun is deprecated. Please  use sonar.analysis.mode instead.
        12:43:19.975 INFO  - Preview mode

Based on the warning and this post 
(http://www.sonarqube.org/analysis-vs-preview-vs-incremental-preview-in-sonarqub
e/), which states "preview – this was previously known as the dryRun mode. It 
performs a full analysis, but doesn’t store the results in the database." I 
suspected when sonar.dryRun is set, sonar.analysis.mode is ignored

By disabling out sonar.dryRun property in SonarRunnerProcess.java, I was able 
to re-run the analysis in incremental mode:

        Starting sonar-runner
        INFO: SonarQube Server 4.4
        13:17:25.544 INFO  - Incremental mode

Original issue reported on code.google.com by charles....@gmail.com on 24 Sep 2014 at 8:41

Attachments:

GoogleCodeExporter commented 9 years ago
Check the SonarQube server version to set the proper analysis mode. This fix 
will be included in Radar 2.1.

Original comment by hmvic...@gmail.com on 30 Sep 2014 at 4:06

GoogleCodeExporter commented 9 years ago
Great solution! Thanks.

Original comment by charles....@gmail.com on 30 Sep 2014 at 2:30

GoogleCodeExporter commented 9 years ago
Verified feature is working in the following revision:
https://code.google.com/p/radar-netbeans/source/detail?r=7ae8d1471198ba76fadafe1
c082a5ab6e91b7703

Thanks!

Original comment by charles....@gmail.com on 6 Oct 2014 at 8:49

GoogleCodeExporter commented 9 years ago
You're welcome. Thank you for your useful feedback. Hope version 2.1 will be 
released soon.

Original comment by hmvic...@gmail.com on 7 Oct 2014 at 4:33

GoogleCodeExporter commented 9 years ago

Original comment by hmvic...@gmail.com on 19 Oct 2014 at 3:45