sonarqube 4.0 preview analysis (local) - eclipse

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

Related

Sonar Lint Eclipse Issue

I'm using Eclipse Neon and SonarQube 5.6.6(LTS). I've install sonarLint version 3.1.0. Following are my question.
In SonarLint whether there is an option to analyze the entire project? I can't able to find such option.
The issue showing in Eclipse reported by sonar lint is different from reported on server. When I'm wantedly creating the sonar issues(based on the rule) in eclipse but SonarLint is not recognizing . why?
From Eclipse I've made the connection to the SonarQube server and the connection was success, Whether it is using the activated quality profile rule?
After resolving the issues, how the issues will be reflected to the sonarQube server ? In case of Maven whether I need to add the sonar properties and sonar-maven plugin and trigger the build?
1. Select your project and in Eclipse's Quick Access, select Analyze - Analyze with SonarLint. You can also assign a keyboard shortcut to this action by going to Window -> Preferences -> General -> Keys.
2. It seems as if you are not running in connected mode. Connecting a SonarQube server is not enough, you also have to bind individual projects. To do this, right click on your project in Eclipse, and select SonarLint -> Bind to a SonarQube project... Search for the name of your project on the server by typing in the box under SonarQube project, as show in the following screenshot:
Once connected, a SonarQube symbol should appear on your project's icon in Eclipse.
3. Once connected, the quality profile of your SonarQube server project will be used.
4. SonarLint only provides on the fly feedback, but does not trigger any analysis server side. Personally I have a clean verify sonar:sonar Maven run configuration for my projects, and run it every now and again within Eclipse.
I recommend reading the SonarLint documentation for more information.
I personally recommend either to change your version or to be sure which configuration really applies to your machine. I had similar problem when i tried to associate my local project with the project name on Sonarqube Server . I was using Eclipse IDE for C/C++ Developers Version: Luna Service Release 2 (4.4.2) with Sonarlint version 4.0 . I uninstalled it(sonarlint) and installed the Sonarlint 3.6 version. After this i could associate my project with Sonarqube Server.
Hope it Helps the main question.

SonarQube Plugin and TI Code Composer 5

I am currently working on a TI Microcontroller platform using Code Composer 5.5 as the IDE. Our code baseline is analyzed by SonarQube to produce metrics and issue identification against a set of rules and standards.
SonarQube website mention support for Eclipse via a plugin. Since Code Composer 5 is Eclipse based I was able to install it but I cannot finish the configuration by linking the project as described. When I right click on the project in the Project Explorer there is no option to Configure then Associate with SonarQube.
Is there a way to make this menu option show or a command line method to make this association?
If I recall correctly, only projects with the following 'nature' can be associated with SonarQube:
Java (JDT) Project
C/C++ (CDT) Project
Pydev Project
If your TI Code Composer projects do not have one of these natures, you won't be able to associate them (at least with the current version of the Eclipse SonarQube Plugin).
Got help from our friends at TI E2E forums on this topic.
The reason I was unable to see the Configure and Associate menu options was due to the selected perspective. Code Composer 5 uses TI's default CCS Edit perspective which hides the expected menu options. If you change to the default Eclipse C/C++ perspective then the menu option shows up and configuration of the project to use SonarQube can be completed.

difference between sonar and sonarqube

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.

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

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