Intellij sonarlint with soanrQube for java code complexity analysis

884 views
Skip to first unread message

nobin....@gmail.com

unread,
Feb 6, 2018, 10:22:39 PM2/6/18
to SonarLint
Hi,

I am completely new to sonar ecossytem.

I am trying to measure the code complexity of my patch, for that I installed v3.2.0.2350 of sonarlInt intellij plugin, sonarQube Version 7.0 (build 36138) and intellij 2016.2.4.
I am able to setup the SonarQube server and it is running in http://localhost:9000, then I configured that that in intellij project settings.

Ran sonarlint with "Anylyze VCS changed files with SonarLint", and results are visible in intellij sonarlint window.

The problem I am facing is I am not able to see this analysis data in SonarQube GUI.

In the project setttings page in Intellij I enabled "enable bind to remote sonarqube server", and selected the project I created in sonarqube interface.

IN analysis properties:
sonar.login    admin
sonar.password    admin
sonar.projectKey    abc
sonar.projectName    E_genius

I assuming that Sonarlint will analyze code and send it to sonarqube, when intellij will push those analysis data to sonarqube?, why it is not happening here?

-Nobin






Duarte Meneses

unread,
Feb 7, 2018, 3:22:23 AM2/7/18
to nobin....@gmail.com, SonarLint
Hi Nobin,

SonarLint won't push the result of the analysis to SonarQube. 
To push analysis results to SonarQube and use all features of SonarQube, you should use one of the scanners. This is usually automated to be done on commit.

SonarLint is a developer's personal tool to spot issues while coding and it complements SonarQube. 
There is the option to connect SonarLint to SonarQube so that SonarLint can use the same analyzers and rules as the ones configured in SonarQube and can check the current situation of known issues (such as whether it is marked as resolved).
You can find more information in the 'how to'.




--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/6c0e1335-70fa-4730-866a-acb097b84f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Duarte Meneses | SonarSource
Software Engineer

Are you using SonarLint in your IDE?

Reply all
Reply to author
Forward
0 new messages