I am trying to write a custom rule for the below xaml file . The rule works properly in external tools available to validate Xpath .However , it is not flagging in SonarQube. My xaml file
New Text Document.txt (5.4 KB)
xpath query : count(Activity/Sequence//ui:SendOutlookMail/ui:SendOutlookMail.Files/scg:List/InArgument[not(contains(text(),"["))]) > 0
Removing namespaces from the xpath fixed the problem: count(Activity/Sequence/SendOutlookMail/SendOutlookMail.Files/List/InArgument[not(contains(text(),"["))]) > 0
Not sure why it does not work with the namespaces.