difference between sonar and sonarqube - eclipse

Can anybody explain me what is the difference between sonar and sonarQube as i have said to integrate the sonar with eclipse i am using eclipse Luna but when i tried to search sonar using
Help----> Eclipse Marketplace ---->search (sonar)
i am getting sonarQube not sonar
Therefore my question is that are they same or different if same i can go ahead to install in the eclipse if not then from where to install sonar as it is my requirement.please anybody suggest

SonarQube (formerly just "Sonar") is a server-based system. Of course you can install it on your local machine (the hardware requirements are minimal). But it is a central server with a database.
Analyses are performed by some Sonar "client" software, which could be the sonar runner, the sonar ant task, the sonar Eclipse plugin etc. The analysis results can be automatically uploaded to the server, where they can be accessed via the sonar Web application.
In an environment with many developers, you should run a build server (e.g. Hudson or Jenkins), which performs automatic sonar analyses as part of the nightly build. Other schedules are possible, but the developers should know when they can expect updates of the server-side analysis results. The results of the automated analysis can be displayed in the individual developer's Eclipse editor by way of the sonar Eclipse plugin.

Same software. The name changed last year, from Sonar to SonarQube
http://www.sonarqube.org/sonar-becomes-the-sonarqube-platform/

From SonarQube
SonarQube (formerly Sonar) is an open source platform for continuous inspection of code quality.
From http://www.sonarqube.org/
SonarQube™ software (previously known as “Sonar”) is an open source project hosted at Codehaus.

Related

sonarqube 4.0 preview analysis (local)

I want to throw preview analysis (local) with eclipse sonar plugin and remote sonarqube 4.0.
What information transfer between eclipse and remote sonarqube 4.0? That preview or local analysis could be pass only profile rules and process is only local?
Thank you,
Regards,
In preview mode the code violations (or issues) won't be updated in the remote SonarQube server. It only creates a JSON report into the SonarQube working directory (.sonar as default). The Eclipse plugin always connects to the remote, so you cannot see the preview results in Eclipse.
But you can make a report from the JSON with the SonarQube Isse Report plugin.
You can use the SonarLint tool to preview analysis.
SonarLint is an extension to your favorite IDE that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.
http://www.sonarlint.org

Configure SonarQube Eclipse plugin to visualize the results of analysis from Sonar plugin on Jenkins

I have a question regarding the setup and configuration of SonarQube plugin in Eclipse . We have Sonar plugin version 2.1 installed in Jenkins. It runs analysis every day and I want to configure the Eclipse plugin so that it displays the result from the Jenkins analysis. I don't know if this is possible because I can't find any information about this, the only hope comes from the first answer of this question.
PS. I apologize if there already is an answer to my question, I couldn't find it.
The Sonarqube eclipse plugin is able to present to you the results of your analysis you run with jenkins. The results your are looking for however, are stored in the sonarqube database. So you need to to configure the sonarqube eclipse plugin to connect to the sonarqube-server, not the jenkins-server.
Here is how you do the configuration:
http://docs.codehaus.org/display/SONAR/Configuring+SonarQube+in+Eclipse

How to add custom Findbugs rule to Jenkins SonarQube build

I have a project which is built by Jenkins. I have installed the Jenkins SonarQube plugin, and added a build step to run the Sonar analysis.
This works fine, and issues are appearing in my Sonar dashboard correctly.
I have written some custom Findbugs rules, and I would like to add them to this analysis. I have written a Findbugs plugin (which I have tested using the Findbugs standalone runner), and I have written a Sonar plugin which wraps the Findbugs plugin (based on the fb-contrib sonar plugin).
I have installed my Sonar plugin on my Sonar server (at /opt/sonar/extensions/plugins), but it does not affect the Jenkins build.
I have looked at the Jenkins configuration for the Jenkins SonarQube plugin, and one of the options is where Sonar should be installed from. It is currently set to install Sonar from "maven". There are no options which appear to affect which Sonar plugins will be used.
How can I get my custom Findbugs rules into this toolchain?
Make sure that you have added your custom FindBugs rules to your quality profile. If you can't add them to the profile, then the plugin is not loading correctly. But maybe you just need to activate the new rules in the quality profile.

SONAR Integrated with Eclipse

Am working on sonar integrated with eclipse using ant
But when i go "right click project-->configure-->associate with sonar" nothing happens!!
My ant version is 1.7.1
Eclipse is Helios(3.6)
sonar version is 3.4.1
Welcome all your favours..........
Sonar Eclipse has nothing to do with Ant, it's really independendent.
You should follow the different steps listed in the documentation page. Most notably, you need to have a Sonar server up and running somewhere (on your local computer or elsewhere) and you must make sure that you already launched an analysis of your project, which you can browse on Sonar Web application. If not, you'll never be able to associate your project in Eclipse.
Once you have a first analysis of your project on the Sonar server, then you need to configure the URL of your server in the Eclipse settings. Only after this, you'll be able to associate your project with Sonar.
This might have to do with your plugin version. As described in the docs Version 3.0 is only compatible with Eclipse 3.7 and up.
I would suggest you either upgrade your eclipse or you downgrade your plugin.

Using SonarQube in Eclipse

I just installed SonarQube in Eclipse, but I don't know how to use it :
Here It said:
Link projects to Sonar server
What is the server? Should we create another project somewhere else with the same name as the project in Eclipse?
It's really confusing, I will appreciate if someone could help by a small example.
To be able to use Sonar Eclipse, you first need to install a Sonar server 5.1 or older as described here: http://docs.sonarqube.org/display/SONAR/SonarQube+in+Eclipse
Then, you will have to run a first analysis (out of Eclipse) of your project to have it referenced in the Sonar server. See http://docs.sonarqube.org/display/SONAR/Analyzing+Source+Code
After those 2 steps, then you'll be able to run analyses directly within Eclipse once you have associated your local project with the Sonar server.
UPDATE:
Sonar 5.2+ is no longer supporting sonar eclipse plugin in favor of sonarlint. Unfortunately sonarlint has no customization options.
We will make this feature available in upcoming versions, probably by
requiring to "connect" SonarLint with an existing SonarQube server
instance.
Sonar can be run now localy to analyse the java project
for more information visit sonar eclipse
Eclipse update site
Installation guide
Eclipse marketplace
Also you can visit DZONE for step by step installation procedure