Extending sonar xml plugin

xml
sonarqube

(sudhakar) #1

I would like to add few custom rules for the xml language.
Is there any document on how to create new rules/custom rules for xml.?


(G Ann Campbell) #2

Hi,

All we currently support for XML is the XPath template rule.

 
:slightly_frowning_face:
Ann


(Alexandre Gigleux) #3

Hello,

Here is the XPath Rule Template you should instanciate to create your own rule: RSPEC-140 and the related (limited, sorry about that) documentation:

https://docs.sonarqube.org/display/DEV/Adding+Coding+Rules+using+XPath > Adding your Rule to the Server