I have bind my sonarlint to my sonarqube server. Is there any other configuration?
I read some topics which has same problem but I still have not get answer. Please help. Thank you
my version
sonarqube 7.1
—plugins :sonar-java-plugin-5.14.0.18788.jar(default version is sonar-java-plugin-5.2 if use this version sonarlint can’t find any issues)。
sonarlint 4.11.0.20867
Your project in IntelliJ is bound to the correct project on server (same project key)
Your server binding is up-to-date
Additionally, could you please check whether file exclusion patterns are defined on the server? For performance reasons, these won’t be applied when the analysis is triggered from the “Project > Right Click > SonarLint > Analyze with SonarLint” action, which can result in differences between the issues detected by SonarQube and SonarLint.
One possible problem is that my java project is built by maven, the project name is example, and the project name I created in sonarqube is develop. Does it have anything to do with this?
I have to admit I am a bit lost: in your initial post you mentioned 96 issues, and the SonarLint log says Found 0 issues
I notice that your server seems to have a quite old version of the Java analyzer - 5.14.0.18788 is more than one year old, so I would advise that you update your plugins on the server, if possible.
However, I don’t think this is the root cause for the difference you observe between SonarQube and SonarLint.
Could you please send a log of your SonarQube analysis (e.g extracted from your CI system) and the full verbose log of your SonarLint analysis? You can send them to me using the private messaging system of this forum, for confidentiality. Maybe there is something odd in the way the project is imported in the IDE, and the Java analyzer has issues resolving some types - this is a common cause of discrepancy between SonarQube and SonarLint.