I have a similar problem, I use a custom rule set, but not on sonarlint in Eclipse
Hi,
Before anything I would suggest you make sure to refresh all project bindings (in SonarLint) after you modified the Quality Profile. That way you ensure that SonarLint is in synch with latest state on SonarQube side.
Then if any issue remains, you should review the detailed logs of the analysis (available in the SonarLint console) and double-check the data being fetched/applied.
hi,
My problem is that the default rules are available on sonarlint, but the jar packages I upload myself are not
That was going to be my next question, i.e. which rule are we talking about specifically. I confirm that SonarLint does not support custom analyzers.
This means that sonarqube supports upload custom jar packages, but sonarlint does not support upload custom jar packages?
Hi,
in case you’ve created custom Java rules and wonder why they don’t appear in Sonarlint.
You have to explicitely activate Sonarlint support in your pom.xml:
[...] <build> <plugins> <plugin> <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId> <artifactId>sonar-packaging-maven-plugin</artifactId> <version>1.17</version> <extensions>true</extensions> <configuration> <pluginClass>com.foobar.java.JavaRulesPlugin</pluginClass> <sonarLintSupported>true</sonarLintSupported> <sonarQubeMinVersion>5.6</sonarQubeMinVersion> </configuration> </plugin> [...]
sonarLintSupported has to be set true.
Regards,
Gilbert
Please don’t bump 3 year old threads. I suggest you open a new thread with a full description of what you’ve done so far, what you observe and what you expect.