Prompt SONAR to analyse code

Actually in our project, we are planning to start developing code (with SONAR to analyze from beginning only) , So we are making use of sonar plugin in eclipse. We know how to analyze code by configuring project to SONARQUEBE and making use of maven build tool as well as using sonarrunner. Instead of building maven for every code changes and analysing , is there any way that prompts (as well as show error lines ) sonar to immediately analyze just after saving the java file ?

Help will be appreciated..... Thanks in advance

Answers


There is currently no way to tie an sonar analysis to a save action.

However, you do not need to run the maven based analysis. Assuming you use a recent version of SonarQube and SonarQube ide (4+ and 3.3), you can simply run the analysis using the shortcut (ALT-Ctrl-Q, by default).

Using incremental mode with SonarQube 4+, this is actually really fast, because it analyzes only the changed files as compared to the last successful SonarQube run.

Of course, you need make sure that your buildserver regularily runs your full SonarQube builds as well.


Need Your Help

Error: dlopen() Library not loaded Reason: image not found

macos error-handling ipython dlopen

I am a newbie in this field. My laptop is Macbook air, Software: OS X 10.8.5 (12F45). I am running a code which gives me the following error:

Partial View error object reference not set don't understand why

c# asp.net asp.net-mvc view

I got this error after I hit the Delete from Cart, Object reference not set to an instance of an object. This is happening in my partial View. Any idea on how to resolve this ?