Create new custom rule for all languages in SonarQube 6

时间:2016-10-20 13:04:10

标签: plugins sonarqube rules sonarqube-web

I need to add a new custom rule which will check if email is written anywhere in code. It should work for all languages but specially for PHP. I'm confused if I've to create a plugin for it or has to create a custom rule template. Any lead can be helpful. Thanks!

1 个答案:

答案 0 :(得分:1)

支持自定义规则的语言列表为here。通常,您无法为“所有语言”强制执行此操作,但您应该能够通过创建插件并在Java中实现规则来实现此目的。