On Sonarqube 6.7.6 (build 38781) community/opensource
I’m working with a product called Sailpoint IIQ which uses Beanshell (basically interpreted Java) which is stored inside XML documents. Since Beanshell is interpreted, it is never compiled during the build process, the XML files are only copied into the resulting WAR file.
When I run Sonar scanner against the source code, the XML files only get checked against XML rules defined in Sonarqube, but I would like it to check by applying Java rules on the Beanshell inside instead.
Is there a way to configure Sonar scanner to do the following on XML files:
- Find all tags in the XML file
- Extract/read the Beanshell code from a <[CDATA]> section inside the tag
- Apply Java rules on the extracted Beanshell
(I think Java rules have to suffice since I did not find a Beanshell ruleset for Sonar).