Custom rules in SonarLint

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