0

Need help, please write me some example custom rules sonarqube in php project. I want to use this tool, but I can't find the detailed manual. Thank you!

Mykyta Dudariev
  • 462
  • 5
  • 17

1 Answers1

1
  • The best source of rule examples is SonarPHP itself
  • Then see example of custom rule project here
  • Overall documentation on custom rules for SonarPHP is here

And finally if you have any questions or feedback, you can write to sonarqube@googlegroups.com

Elena Vilchik
  • 1,085
  • 6
  • 11
  • Can you give me please simple example for php? Thank you! – Mykyta Dudariev Jun 16 '17 at 11:27
  • Elena Vilchik gave you the path of a custom rule project. Look at this file, it's quite informative: https://github.com/SonarSource/sonar-custom-rules-examples/blob/master/php-custom-rules/src/main/java/org/sonar/samples/php/checks/ForbiddenFunctionUseCheck.java – Zoette Jun 17 '17 at 09:59