# Adding rules from custom plugin to sonar lint

**URL:** <https://community.sonarsource.com/t/adding-rules-from-custom-plugin-to-sonar-lint/41404>\
**Category:** Writing rules\
**Tags:** custom\_plugin, maven, sonarqube, sonarqube-ide, java\
**Created:** [April 9, 2021, 9:47am UTC](https://community.sonarsource.com/t/adding-rules-from-custom-plugin-to-sonar-lint/41404 "2021-04-09T09:47:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Dubey](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rahul_dubey/32/5453_2.png) [@Rahul\_Dubey](https://community.sonarsource.com/u/Rahul_Dubey)\
**Post date:** [April 9, 2021, 9:47am UTC](https://community.sonarsource.com/t/adding-rules-from-custom-plugin-to-sonar-lint/41404/1 "2021-04-09T09:47:38Z")

</div>

Hi, while generating custom rules through the maven plugin I am able to get the custom rules in the SonarQube server while scanning any project. But while analyzing the same project through sonarlint those custom rules are not reflected in the sonar report. Although have set the sonarLintSupported tag to true in the plugin config.  
Here is my sonar plugin configuration :

> ```
> <plugin>
> <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
> <artifactId>sonar-packaging-maven-plugin</artifactId>
> <version>1.18.0.372</version>
> <extensions>true</extensions>
> <configuration>
> <pluginKey>customrules</pluginKey>
> <!-- the entry-point class that extends org.sonar.api.SonarPlugin -->
> <pluginClass>com.company.CustomPlugin</pluginClass>
> <pluginDescription> Demo Custom plugin for Sonar </pluginDescription>
> <sonarLintSupported>true</sonarLintSupported>
> </configuration>
> </plugin>
> 
> ```

Am I missing something here?

---

<div class="post-metadata">

**Author:** ![JBL\_SonarSource](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jbl_sonarsource/32/64_2.png) [@JBL\_SonarSource](https://community.sonarsource.com/u/JBL_SonarSource)\
**Post date:** [April 20, 2021, 8:41am UTC](https://community.sonarsource.com/t/adding-rules-from-custom-plugin-to-sonar-lint/41404/2 "2021-04-20T08:41:23Z")

</div>

Hello, thank you for your question.

As stated in the [FAQ post](https://community.sonarsource.com/t/frequently-asked-questions/7204):

> Third party analyzers are not executed in SonarLint
> 
> Some issues may be reported in SonarQube by a plugin leveraging a third party analyzer (PMD, Checkstyle, ESLint, PyLint, …). SonarLint will only run [rules from SonarSource analyzers](https://rules.sonarsource.com/) including [custom rules extending SonarSource analyzers](https://docs.sonarqube.org/display/DEV/Adding+Coding+Rules+using+Java). Third party analyzers usually have their own IDE integration, so we have no plan to run them in SonarLint.

So even with the `sonarLintSupported` flag, your custom plugin will only be executed by SonarLint if it extends one of the official analyzers, and only in connected mode.
