--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/fe7a3216-0829-4b28-93a9-96d56ff6eece%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ahmed,SonarLint rules are provided by SonarSource code analyzers (SonarJS, SonarTS, SonarPHP and SonarPython). All are open source projects :)But let me suggest to start discussing here your plans before starting coding, especially if you expect your modifications to be mainstreamed. This will allow us to guide you. And if your rule suggestions are good enough, we can even implement them for you :)Regards,
2018-03-09 15:04 GMT+01:00 <ahmed.ibrahi...@gmail.com>:
Hi all,I added SonarLint VSCode plugin to my visual studio code and it works well.As I know SonarLint is an opensource application so I want to add/update some features to the plugin like add new rules and improve some descriptions.I need to know the all steps to make that.Thanks in advance.Ahmed Ibrahim
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/e6e9a6b3-2840-4849-8303-2af5d05c5427%40googlegroups.com.
In case you are interested, there is a Java API to create custom rules for PHP, based on our own parser. I let you read:You can of course write your own analyzer from scratch, but then we won't accept it in the official SonarLint distribution (just to avoid any deception later).++
Julien Henry | SonarSource
Developer
https://sonarsource.com


Thanks Julien.Ahmed Ibrahim
On Fri, Mar 9, 2018 at 5:43 PM, Julien HENRY <julien...@sonarsource.com> wrote:
The Java API will expose you an AST of the PHP program + an API to report issues. Once you are happy with your rule, you can package it in a SonarQube plugin, that you will deploy in a SonarQube server (that you can run locally, it's also free/OSS) together with SonarPHP. And then you'll be able to analyze code (using a command line SonarQube scanner).While developing your rule, I suggest to use the unit test framework to speed up the loop.See this example, and look at SonarQube documentation, and then feel free to come with more specific questions:++
Julien Henry | SonarSource
Developer
https://sonarsource.com