2

I have created a sonarqube custom rule for Java. It seems to be working when I check it in the sonarqube server UI.

I have configured sonarlint with my eclipse but sonarlint is not reporting any error for my custom rule. How shall I add that, so that the sonarlint displays the error for my custom rule after analysis.

I am using:

javaFileScannerContext.addIssue(importTree, this, "Avoid imports (3rd party imports)");

to add the issue. How can this issue be reported on eclipse side?

Termininja
  • 6,620
  • 12
  • 48
  • 49

1 Answers1

3

SonarLint does not yet support rules from custom plugins, see MMF-248 .

Nicolas B.
  • 7,245
  • 17
  • 29
  • I am using sonarqube server 5.4, with sonarlint 2.0. If i use sonarqube eclipse plugin it gives me "Synchronization error". please see my another post :: http://stackoverflow.com/questions/36685596/sonarqube-synchronization-error?noredirect=1#comment60975266_36685596 – user1682132 Apr 19 '16 at 09:49
  • You will have to wait for the feature to be implemented in SonarLint before you can use custom plugins/rules with SonarLint. – Nicolas B. Apr 19 '16 at 10:02
  • If thats the case, i tried sonarqube eclipse plugin, where is get "Synchronization error". I have written the error here : http://stackoverflow.com/questions/36685596/sonarqube-synchronization-error/36706474?noredirect=1#comment61015746_36706474 can you please give a look to it and let me know how shall i fix it – user1682132 Apr 21 '16 at 02:34