Hi,
I’m trying to create an XPATH rule for xml files but when I run sonar-scanner it does not seem that the custom rule is evaluated.
I’ve created a simple XML fle and a simple XPATH and a quality gate and activated that custom rule with the quality gate.
The XPATH expression is the sample given:
//td[@nowrap]
And the XML file is containing that.
I’ve installed sonarqube 7.9.1 on postgreSQL and using sonar-scanner-4.0.0.1744-windows.
Is there a tutorial step by step which can help me?
I am also facing same kind of issue, I am trying to validate if a file name weblogic.xml, If the file doesn’t have declared the attribute names as page-check-seconds then report violation.
filePattern: weblogic.xml
The XPath query = not(//jsp-descriptor/jsp-param/param-name[text()=‘page-check-seconds’])
Message : Page check seconds are not mentioned